PiWeatherRock icon indicating copy to clipboard operation
PiWeatherRock copied to clipboard

Replace Dark Sky API

Open genebean opened this issue 5 years ago • 48 comments

According to https://blog.darksky.net, Apple has purchased Dark Sky and will shut down the api at the end of 2021. Thus, we need a new data source.

genebean avatar Mar 31 '20 22:03 genebean

@genebean - potentially weather.gov? They have an open API.

I discovered that the original project died when piwapi stopped working due to weather.com, so I'm following any replacement pretty closely.

MarticusH avatar Apr 01 '20 13:04 MarticusH

@genebean - potentially weather.gov? They have an open API.

I looked at that last night but it looked to only have weather for the US

genebean avatar Apr 01 '20 15:04 genebean

Perhaps OpenWeatherMap? Seems the free tier is limited to 1 API call / sec, which is (in my opinion) way more than necessary - my own weatherpi was querying once per 5min.

Looks like they have current forecast API and 5-day forecast API that would likely emulate the previous functionality, and looks like it supports a lot of different localization capabilities.

I'm currently waiting on the API key to get activated (apparently it takes a few hours) to try some testing with those two endpoints:

Within the next couple of hours, it will be activated and ready to use.

I am also apparently very impatient 😆

MarticusH avatar Apr 01 '20 16:04 MarticusH

Alright, API key got activated, looks like we also have the ability to use icons from their site itself (or write something to use the existing icons); example output is below from their site: https://samples.openweathermap.org/data/2.5/forecast?id=524901&appid=b6907d289e10d714a6e88b30761fae22

Icon info is here.

So far, looks pretty reasonable - thoughts?

MarticusH avatar Apr 01 '20 16:04 MarticusH

Please do let us know if you can get that API working. I literally bought a screen in a case for this to wall mount it on the 28th, arrived today. I checked on here to start working at setting up my new weather display! To my dismay its over with...

fraser386 avatar Apr 01 '20 23:04 fraser386

That really sucks @fraser386! I'll absolutely get it working and will keep this issue updated with progress. I am certainly considering Open Weather Map @MarticusH. I am also checking with two other sources that look like they may have more to offer too in hopes that one of them will pan out.

genebean avatar Apr 02 '20 01:04 genebean

Thank you @genebean!

fraser386 avatar Apr 02 '20 01:04 fraser386

Cool cool, thank you @genebean - let us know what you decide on!

MarticusH avatar Apr 02 '20 13:04 MarticusH

I contacted Foreca at a users suggestion but it seems they don’t currently offer anything free or near-free. I have a meeting scheduled for today though that I’m hoping pans out.🤞More info soon.

genebean avatar Apr 03 '20 10:04 genebean

image

Just had a great call with Climacell and found out that in a matter of days they will have a free tier for their weather api that has limits similar to what Apply just killed off for Dark Sky. This is what I plan to move us to. They directed me at the right set of api docs and are checking to see if there will be free air quality info available too. I hope to get this turned around pretty quickly but want to do it in conjunction with merging in some contributions from @metaMMA as that work will make this work easier.

genebean avatar Apr 03 '20 13:04 genebean

Just a quick update to say I haven’t forgotten about this. I’m still working with @metaMMA to get their enhancements merged in. Hopefully I’ll have more news soon.

genebean avatar Apr 25 '20 05:04 genebean

Thanks!

Sent from my iPhone

On Apr 25, 2020, at 1:23 AM, Gene Liverman [email protected] wrote:

 Just a quick update to say I haven’t forgotten about this. I’m still working with @metaMMA to get their enhancements merged in. Hopefully I’ll have more news soon.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

fraser386 avatar Apr 25 '20 13:04 fraser386

Tonight I started writing the actual Python module to pull forecast data from ClimaCell. Prior to this I’ve been wrapped up in other improvements and some unrelated work. It feels good to start interacting with the new api. 👋 Darksky

Sent with GitHawk

genebean avatar Apr 28 '20 03:04 genebean

@genebean - Thank you for this! Is this work on a branch somewhere that one could preview/test?

jmertic avatar Jun 20 '20 13:06 jmertic

It makes me really happy to see this integration happening. Such a good project. Keeping my eye out for anything I can help with.

Stone-Hedge avatar Jul 02 '20 12:07 Stone-Hedge

Also very interested in this work. If there is a testable branch I would be happy to take it for a spin.

bkolin avatar Oct 04 '20 04:10 bkolin

@genebean still no updates on the ClimaCell version of the weather app?

canibalimao avatar Oct 30 '20 08:10 canibalimao

Did you get any further with the API over the last 6 months?

AubreyKloppers avatar Nov 02 '20 12:11 AubreyKloppers

Hi Everyone. I just installed bolt 1.4.0 version but dont know about the API Key. Is it still running with Dark Sky service? is it ready for the ClimaCell API? Thanks for this contribution!!

carloshm avatar Mar 07 '21 10:03 carloshm

Hi Folks,

Perhaps https://openweathermap.org/api can also be a good alternative? Thanks for this.

leunamekram avatar May 06 '21 02:05 leunamekram

love the project! has it been updated with the new api?

LuxStatera avatar May 12 '21 19:05 LuxStatera

I guess author @genebean has been too busy, probably given the COVID situation. I'll try weather.com, since that works for my RAINMETER app...

jagganath69 avatar Nov 28 '21 03:11 jagganath69

I guess author @genebean has been too busy, probably given the COVID situation.

I'll try weather.com, since that works for my RAINMETER app...

I have. I recently started looking at this again and have come up with a plan. It's going to take some time as I don't have a lot of time to work on things, but this is going to be addressed as I still use PiWeatherRock every day.

genebean avatar Nov 28 '21 04:11 genebean

If you have time, why not set out your plan in Projects and maybe some of us can help with tasks?

Stone-Hedge avatar Nov 28 '21 09:11 Stone-Hedge

Any updates?

Rockstar22 avatar Jun 09 '22 19:06 Rockstar22

Another one here wondering about updates, this looks like a great project to work on with a couple of kids who love sciency stuff.

MrHappymoose avatar Jul 03 '22 09:07 MrHappymoose

I’m hoping to dive back in this week. I’ve now got the extras motivation of my own setup not working well because the code doesn’t currently handle api errors well and, instead, spams the api with requests causing rate limits to be exceeded. All that to say I think my motivation has returned (finally).

genebean avatar Jul 03 '22 11:07 genebean

FYI: I started working on this yesterday and plan to work more later today.

genebean avatar Jul 16 '22 17:07 genebean

After hours of work today I have discovered I left a spaghetti like mess of intertwined code for myself 😞 I'm now working to refactor some of the current code to facilitate replacing Darksky. The upside: I think I see where things are screwy and overly complicated.

genebean avatar Jul 17 '22 00:07 genebean

Awesome to see you working on this again, sorry to see it's being a pain!

MrHappymoose avatar Jul 17 '22 07:07 MrHappymoose