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/
438 stars 65 forks source link

Met Office Datahub API is legacy/broken, needs migrating to new format #83

Closed mendhak closed 1 month ago

mendhak commented 1 month ago

The original URL, https://api-metoffice.apiconnect.ibmcloud.com/... no longer works.

The dashboard shows that the site specific API, which is what this project uses, is 'legacy'.

image

The new API key format is a single JWT instead of a client ID and a secret.

mendhak commented 1 month ago

The new HTTP request format is:

curl -X GET "https://data.hub.api.metoffice.gov.uk/sitespecific/v0/point/daily?latitude=xxx&longitude=xxx" \
 -H "accept: application/json"\
 -H "apikey: xxxxx"
mendhak commented 1 month ago

https://github.com/mendhak/waveshare-epaper-display/pull/84