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/
452 stars 67 forks source link

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

Closed mendhak closed 6 months ago

mendhak commented 6 months 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 6 months 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 6 months ago

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