MagicMirrorOrg/MagicMirror

Weather module Met Office API Gateway migration

mattcd216 opened this issue · 0 comments

Enhancement request.

The Met Office (UK weather) has issued notice of a gateway migration project they’re doing. I think there will be changes needed to both the module code and account changes by magicmirror users.

The new gateway is now available (as of Jan 2024). Migration by 30th April 2024 is the deadline.

As I understand so far, the following (high-level) changes are required:

User

  • In Met Office Datahub subscriptions, user will need to migrate their ‘legacy’ application to the new gateway
  • user will then get new API key

Module

“You will need to update your client code to use our new APIs”. Changes include:

  • base URL (this is set in the config, so may just be a documentation update)
  • request headers
  • ensure you are using URL encoding

Docs for reference: https://datahub.metoffice.gov.uk/support/api-gateway-migration