mendhak / waveshare-epaper-display

At-a-glance dashboard for Raspberry Pi with a Waveshare ePaper 7.5 Inch HAT. Date/Time, Weather, Alerts, Google/Outlook Calendar
https://code.mendhak.com/raspberrypi-epaper-dashboard/
449 stars 66 forks source link

Remove DarkSky, use a replacement API #3

Closed mendhak closed 3 years ago

mendhak commented 4 years ago

DarkSky will be shutting down in a few months.

Use an alternative API.

Example:

https://weatherstack.com/product

https://openweathermap.org/api/one-call-api

https://www.climacell.co/weather-api/

mendhak commented 4 years ago

I used Climacell and removed darksky.

Not sure if it's the best replacement but seems OK so far. It doesn't have severe weather warnings - I'll have to look for another API for that.

I've added a bit of logic to show a few 'nighttime' icons if it's dark at the current lat-long.