Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get weather data using an alternative API #51

Open
SamR1 opened this issue Jun 1, 2020 · 8 comments
Open

Get weather data using an alternative API #51

SamR1 opened this issue Jun 1, 2020 · 8 comments

Comments

@SamR1
Copy link
Owner

SamR1 commented Jun 1, 2020

Since DarkSky joins Apple (see blog post), new registrations are no longer accepted and the API will be deprecated by the end of 2021 support for the Dark Sky API will end on March 31st, 2023.


Features provided by DarkSky used by FitTrackee:

  • 1,000 free calls per day (no credit card)
  • Following weather data:
    • temperature
    • humidity
    • wind (speed and direction)
    • icon label
  • Historical data (it's possible to get data for dates in the past)

2 calls are made for a workout (at start and end gpx points)


Some alternatives:
(not exhaustive)

DarkSky Meteostat OpenWeather (One Call API 3.0) Open-Meteo Visual Crossing
Free calls 1,000/day 500/month 1,000/day fair use 1,000/day
Temperature ✔️ ✔️ ✔️ ✔️ ✔️
Humidity ✔️ ✔️ ✔️ ✔️ ✔️
Wind (speed & direction) ✔️ ✔️ ✔️ ✔️ ✔️
Icon label ✔️ ✔️ ✔️
Historical data by a timestamp ✔️ ✔️ ✅ (on hour period)
Data Licence CC BY-NC 4.0 CC BY-NC 4.0 CC BY-NC 4.0
Misc EOL : March 2023 Historical data only on hourly period Matches parameters of Dark Sky API.
Payment info required.
Matches parameters of Dark Sky API.
No credit card required.

Links:

Other API to be considered:

@SamR1
Copy link
Owner Author

SamR1 commented Aug 25, 2021

It looks like support is extended:

By Adam Grossman on June 7, 2021.

Update: Support for the Dark Sky API service for existing customers will continue until the end of 2022. The iOS app and Dark Sky website will also be available until the end of 2022.

@SamR1 SamR1 mentioned this issue Jan 8, 2022
@SamR1
Copy link
Owner Author

SamR1 commented Jun 11, 2022

last update:

By Adam Grossman on June 6, 2022.

Update: As previously announced, the Dark Sky iOS app will no longer be available beginning on December 31st, 2022 and, as of this date, already purchased versions of the app will no longer provide weather data. The Dark Sky API and website will continue to function until March 31st, 2023.

@gorgobacka
Copy link
Contributor

How about: https://dev.meteostat.net/ ? I think, only a specific number of requests is free. But maybe it's enough.

@jat255
Copy link
Contributor

jat255 commented Nov 1, 2022

Looks like meteostat allows 500 requests monthly; that seems like it would be enough for most users unless you're running a service for many different users.

image

I think this is important because DarkSky is no longer allowing sign ups for new API keys

I may start playing with this a little bit to see if I can get something working.

@SamR1
Copy link
Owner Author

SamR1 commented Nov 1, 2022

I updated the issue about features used be FitTrackee.

One of features provided by DarkSky is that it provides historical data over long periods (it's useful when importing "old" files).

@jat255
Copy link
Contributor

jat255 commented Nov 6, 2022

@jat255
Copy link
Contributor

jat255 commented Nov 7, 2022

Some research results:

  • OpenMeteo seems ideal, since it's free for non-commercial uses and there are no API keys. Their "historical API" is delayed by 5-7 days, however, which is not great. The "forcecast API" only goes back ~6 months. I suppose it would be possible to choose which one to use depending on the activity date, but that's not super simple
  • Visual Crossing (from the link I posted previously) has (I believe) the same terms as DarkSky; 1000 requests per day and no credit card required. They claim to have 50 years of global coverage history at hourly resolution. They also claim to support open source projects
  • Meteostat's 500/month limit might be limiting if people have a lot of back-dated workouts they want to get weather data for. Given others have no limits or higher limits, I'm leaning against it

@SamR1
Copy link
Owner Author

SamR1 commented Dec 31, 2022

Visual Crossing is now available in FitTrackee v0.7.11, thanks @jat255 for the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants