Hi folks,
I hope you can help me. I’m testing the Openweathermap binding, to see if it can share the alerts for my region. Unfortunately, in facts, Meteoalarm changed in the last few months, so my previous solution with http binding is not working anymore.
Everything’s working fine, except the Weather Warnings apparently
here my items:
String OpenWeatherMap_Alerts1_Event "[%s]" (gWeather) { channel="openweathermap:onecall:api:local:alerts1#event" }
String OpenWeatherMap_Alerts1_Description "[%s]" (gWeather) { channel="openweathermap:onecall:api:local:alerts1#description" }
DateTime OpenWeatherMap_Alerts1_Onset "[%1$td/%1$tm - %1$tH:%1$tM]" (gWeather) { channel="openweathermap:onecall:api:local:alerts1#onset" }
DateTime OpenWeatherMap_Alerts1_Expires "[%1$td/%1$tm - %1$tH:%1$tM]" (gWeather) { channel="openweathermap:onecall:api:local:alerts1#expires" }
String OpenWeatherMap_Alerts1_Source "[%s]" (gWeather) { channel="openweathermap:onecall:api:local:alerts1#source" }
and here my things file:
Bridge openweathermap:weather-api:api "OpenWeatherMap Account" @ "Accounts" [apikey="xxxxxxxxxxxxxxxxxxxxx", refreshInterval=10, language="en"] {
Thing onecall local "Weather And Forecast - Local" @ "Outdoor" [location="xx.465051,xx.094615", forecastHours=24, forecastDays=6, numberOfAlerts=5]
}
Not sure what I’m missing but I have always a UNDEF value for each item. But if I try to check via a normal http request (like: https://api.openweathermap.org/data/2.5/onecall?lat=xx.465051&lon=xx.094615&&appid=xxxxxxxxxx) I can see data in eg. alerts.0.event
questions:
-
where is my mistake? it seems I’m following correctly what is stated in OpenWeatherMap - Bindings | openHAB
-
I see the “event” is reporting something like “Yellow Thunderstorm Warning”. What about split the info coming from that field in two fields, one the event “Thunderstorm” and the second the level of warning “yellow/2”?
Thanks for your support on this.
Not sure who is the maintainer of this fantastic binding, but thanks for everything
Andrea
edit: @cweitkamp Christoph are you the maintainer of openweathermap?