-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Description
Hi!
Using default weather module with provider 'yr' on MM v2.25.00
Is it just me or is there a problem with the api for 'sunrise'?
In the MM all 3 of my weather modules are stuck on 'Loading ...' since yesterday.
In the Console I can see the following errors:
Could not load weather data. SyntaxError: Unexpected non-whitespace character after JSON at position 4 (line 1 column 5) at JSON.parse (<anonymous>) at performWebRequest (utils.js:27:29)
Digging a bit deeper into the Chrome Console I find that the request for:
https://api.met.no/weatherapi/sunrise/2.3/sun?lat=<XX.XXXX>&lon=<YY.YYYY>&date=2023-10-11&offset=%2B02%3A00
Gives a response of:
404 Not Found
The specified version number is not supported by this product
I get the same error when trying the above with curl in a terminal on the MM server.
Apparently the api for 'locationforecast' still works.
Running this with curl in a terminal produces nice json output:
https://api.met.no/weatherapi/locationforecast/2.0/complete?&altitude=1&lat=<XX.XXXX>&lon=<YY.YYYY>
*) Yes, I have exchanged my 'lat' and 'lon' with placeholders.
Regards,
/Jonas...