openweather plugin ?
-
I also update openLuup for the latest "development" version
-
It's working but the data I got, is not very useful as I was having back with DarkSky Weather
-
Yeah, DarkSky was providing more data indeed. I'll have a look at the error message.
-
Yes, I was surprised. It turns out that there’s far fewer stations which record hourly data, which is what you need. I can’t remember now how I found the one I use, I’m not in front of my development system at this time.
The device panel on openLuup should give a nice brief text summary of current conditions.
-
Yes. Struggling to find one that's close. They seem to fail silently and I can't see much in the details to indicate which ones might work
I'll crack on. Thanks for the pointer
C
-
Did you find what you needed in the end?
This query: (along with your API key)
datapoint.metoffice.gov.uk/public/data/val/wxobs/all/T/sitelist?key=...
Gives the relatively short list of stations (140 or so, IIRC) with hourly data, from which it's easy to pick the nearest.
I should build this link directly into the app...
-
Ooooh thanks!
C
-
-
OpenWeatherMap's API changes: Some time back OpenWeatherMap decided to change their API billing practices. The old "One Call API" arrangements (1,000 API calls per day free) have now ended.
You now have to provide your credit card details, so if you exceed the free 1,000 API calls per day you can be charged. The provided API keys don't work unless you provide these details. Returned error message:
{ "cod": 401, "message": "Invalid API key. Please see https://openweathermap.org/faq#error401 for more info." }
However, if you just want current weather with no forecasts, you can use the "weather" call:
https://api.openweathermap.org/data/2.5/weather?lat=%s&lon=%s&units=%s&lang=%s&appid=%s
It's possible the Multi Station Weather plugin could be modified to fall back to this call, if it fails on the first call. As suggested here.
In my case, I've hacked the MultiStationWeather plugin code to use the "weather" URL at all times, as I don't use forecasts.
-
Hi, it is on my to-do list to make the change. Might be this week, no promises.
-
I’ve transitioned to https://open-meteo.com/.
It’s free and it have been reliable for me in the latest 5 months. -
Hi, I have updated the plugin code. You will have to install it manually as the MIOS App Market nor the ALTUI App Store are working. Get the file from github at https://github.com/reneboer/MultiStationWeather/blob/main/src/L_MsWeather.lua
Note that you will need to get a One Call 3.0 API key. The old one will not work.
Cheers Rene
-
akbooerreplied to mrFarmer on Aug 8, 2024, 2:28 PM last edited by akbooer Aug 8, 2024, 10:29 AM
@mrFarmer said in openweather plugin ?:
Hi, I have updated the plugin code. You will have to install it manually as the MIOS App Market nor the ALTUI App Store are working. Get the file from github at https://github.com/reneboer/MultiStationWeather/blob/main/src/L_MsWeather.lua
I can put that in the AltAppStore for you.
AK
-
-
Thanks Ak, the Google token refresh does not work unless you run AltUI on a Vera and I do not have those up and running anymore. We did find that before. The token refresh gets stuck in some loop and a luup reload is needed to stop that. It is too deep in ALTUI and some google scripts for me to figure out and @amg0 does not seem to be around any more.
I am on openLuup 23.01.06. When not using MTTQ, Shelly, Zwave stick, any reason for an update to the latest?
Cheers Rene