SpoturDeal / MMM-rain-forecast

Magic Mirror module
MIT License
9 stars 4 forks source link

Not working for Swedish location #6

Closed alexbergsland closed 8 months ago

alexbergsland commented 2 years ago

Hi. Is this service limited to the Netherlands? When I check the website (https://www.buienradar.nl/weer/sundby/se/2670883) I get the local forecast, but when I enter coordinates in the config I get a json response on my MM: 2022-07-08

When I use default coordinates I get a forecast in text (something like "Until 12:15 no rain", meaning the problem is the coordinates.

The coordinates I used where:

                lat: 59.4,
                lon: 17.0,

I also tried:

                lat: 59.388589,
                lon: 17.049531,

Also, when I read about their API there is a checkbox for Nederland/België or Europa, could that be that the API is limited to one of them? https://www.buienradar.nl/overbuienradar/gratis-weerdata

SpoturDeal commented 2 years ago

Buienradar is a Dutch rain expectation provider. If you visit www.buienradar.nl and you find a location in the Netherlands, it will show when it is raining. As far as I know it has a range of about 200km around De Bilt (Utrecht) So most likely Sweden is out of reach.

Maybe in the future they expect a larger area.

alexbergsland commented 2 years ago

Thank you for your quick reply. Maybe I was not clear enough but their service do cover Sweden as I can get a local forecast on their site (check this link), close enough to those coordinates I tried in the config.

I will check your code tonight and see if there is anything I can do.

SpoturDeal commented 2 years ago

Thanks again for your message you are right the weather is showing. The MMM app is only rain forecast that works withe there 250km radar, and Stockholm or Sundby is over 700km.

You should check their website when rain is expected you can see the range of the radar, (try Next Monday or Wednesday)

check without setting a location then it is centered on the radar center