[SOLVED] Openweathermap: forecastDays is to 5 but value in Things is 0

I just removed that part as I really didn’t want or need the info.

OK,
localDailyForecastTodayMinApprentTemperature
and
localDailyForecastTodayMaxApprentTemperature

look also undefined, should I remove them too?

Those are undefined for me as well but I haven’t removed them yet. Was waiting to see if anything would change but looks like I may go ahead and delete them.

1 Like

OK, at least I did not mess things up if you have this too!
Thank you!

Your welcome. :smiley:

If this solves your weather issue please click the square box on post that provided the solution to mark topic solved.

Thanks

This line

Number localCurrentUVIndex "Current precipitation probability [%d]" <none> { channel="darksky:weather-and-forecast:api:local:current#uvindex" }

has to be changed to

Number localCurrentUVIndex "Current UV index [%d]" <none> { channel="darksky:weather-and-forecast:api:local:current#uvindex" }
1 Like

and in sitemap:

        Text item=localDailyForecastTodayMinApprentTemperature
        Text item=localDailyForecastTodayMaxApprentTemperature

to

        Text item=localDailyForecastTodayMinApparentTemperature
        Text item=localDailyForecastTodayMaxApparentTemperature

Should I edit the page https://www.openhab.org/addons/bindings/darksky/ to correct these?

So only

        Text item=localStationId
        Text item=localStationName
        Mapview item=localStationLocation

are undefined. Any idea how we could fix that?

1 Like

Nice catch on the spelling. :+1:

Yes, it’s allway’s good to have the correct info in docs. :wink:

@hariskar: Here’s a link you may like if you want to customize your sitemap. https://darksky.net/widgets

Haven’t tried it yet but looks nice.

1 Like

I can’t edit the page, github gives 404 error for that page.

Gotta go here and submit the change:

Also, see this tutorial:

I did that: https://github.com/openhab/openhab-docs/issues/1136

1 Like

Hi,
I think the original problem from @hariskar is not solved in openwethermap. I run OWM for 1,5 year without problem and used habpanel widget to show the data.

Now I started with OH3 from scratch and have this problem: I changed the config of OWM to
forecastDays = 5

After change the thing chance to status “unknown”. After restarting the my RPI or only the thing, in the config it is changed to default
forecastDays = 0
again. And then only the hourly data is requested, but not the daily forecast.

Any Idea?

From the OWM binding docs -

Attention : The daily forecast is only available for paid accounts (opens new window). The binding tries to request daily forecast data from the OpenWeatherMap API. If the request fails, all daily forecast channel groups will be removed from the thing and further request will be omitted.

Yes, I Read this. But on OH 2.5 same Account was working and here (Pricing - OpenWeatherMap) is written, that 7 days is for free.

May we see your OH2.5 Thing settings? (weather, not account)
May we see your OH3 Thing settings?

OK, now I’m suprised, because in oh2.5 config “number of days” is 0, too, but I receive the data for condition0 - condition3 and it is show in habpanel widget.

In OH3 today I receive condition3 too, but it is not shown in habpanel:

OH2.5:


Log:
Line 23891: 2021-01-20 19:00:14.411 [vent.ItemStateChangedEvent] - Weather_OWM_Condition changed from NULL to Klarer Himmel
Line 23892: 2021-01-20 19:00:14.416 [vent.ItemStateChangedEvent] - Weather_OWM_ConditionId changed from NULL to 800
Line 23893: 2021-01-20 19:00:14.420 [vent.ItemStateChangedEvent] - Weather_OWM_ConditionIcon changed from NULL to raw type (image/png): 2817 bytes
Line 23898: 2021-01-20 19:00:14.631 [vent.ItemStateChangedEvent] - Weather_OWM_Condition0 changed from NULL to Mäßig bewölkt
Line 23899: 2021-01-20 19:00:14.656 [vent.ItemStateChangedEvent] - Weather_OWM_ConditionId0 changed from NULL to Mäßig bewölkt
Line 23900: 2021-01-20 19:00:14.705 [vent.ItemStateChangedEvent] - Weather_OWM_ConditionId0 changed from Mäßig bewölkt to 802
Line 23901: 2021-01-20 19:00:14.774 [vent.ItemStateChangedEvent] - Weather_OWM_ConditionIcon0 changed from NULL to raw type (image/png): 2565 bytes
Line 23904: 2021-01-20 19:00:14.814 [vent.ItemStateChangedEvent] - Weather_OWM_Condition1 changed from NULL to Bedeckt
Line 23905: 2021-01-20 19:00:14.844 [vent.ItemStateChangedEvent] - Weather_OWM_ConditionId1 changed from NULL to Bedeckt
Line 23906: 2021-01-20 19:00:14.850 [vent.ItemStateChangedEvent] - Weather_OWM_ConditionId1 changed from Bedeckt to 804
Line 23907: 2021-01-20 19:00:14.857 [vent.ItemStateChangedEvent] - Weather_OWM_ConditionIcon1 changed from NULL to raw type (image/png): 2773 bytes
Line 23912: 2021-01-20 19:00:14.899 [vent.ItemStateChangedEvent] - Weather_OWM_ConditionId2 changed from NULL to Bedeckt
Line 23913: 2021-01-20 19:00:14.903 [vent.ItemStateChangedEvent] - Weather_OWM_Condition2 changed from NULL to Bedeckt
Line 23914: 2021-01-20 19:00:14.908 [vent.ItemStateChangedEvent] - Weather_OWM_ConditionId2 changed from Bedeckt to 804
Line 23915: 2021-01-20 19:00:14.912 [vent.ItemStateChangedEvent] - Weather_OWM_ConditionIcon2 changed from NULL to raw type (image/png): 2773 bytes
Line 23918: 2021-01-20 19:00:14.926 [vent.ItemStateChangedEvent] - Weather_OWM_Condition3 changed from NULL to Bedeckt
Line 23919: 2021-01-20 19:00:14.931 [vent.ItemStateChangedEvent] - Weather_OWM_ConditionId3 changed from NULL to Bedeckt
Line 23920: 2021-01-20 19:00:14.935 [vent.ItemStateChangedEvent] - Weather_OWM_ConditionId3 changed from Bedeckt to 804
Line 23921: 2021-01-20 19:00:14.940 [vent.ItemStateChangedEvent] - Weather_OWM_ConditionIcon3 changed from NULL to raw type (image/png): 2773 bytes
Line 23923: 2021-01-20 19:00:16.163 [vent.ItemStateChangedEvent] - Weather_OWM_ConditionId0 changed from 802 to Mäßig bewölkt
Line 23924: 2021-01-20 19:00:16.184 [vent.ItemStateChangedEvent] - Weather_OWM_ConditionId0 changed from Mäßig bewölkt to 802
Line 23925: 2021-01-20 19:00:16.189 [vent.ItemStateChangedEvent] - Weather_OWM_ConditionId1 changed from 804 to Bedeckt
Line 23926: 2021-01-20 19:00:16.193 [vent.ItemStateChangedEvent] - Weather_OWM_ConditionId1 changed from Bedeckt to 804
Line 23927: 2021-01-20 19:00:16.198 [vent.ItemStateChangedEvent] - Weather_OWM_ConditionId2 changed from 804 to Bedeckt
Line 23928: 2021-01-20 19:00:16.202 [vent.ItemStateChangedEvent] - Weather_OWM_ConditionId2 changed from Bedeckt to 804
Line 23929: 2021-01-20 19:00:16.207 [vent.ItemStateChangedEvent] - Weather_OWM_ConditionId3 changed from 804 to Bedeckt
Line 23930: 2021-01-20 19:00:16.211 [vent.ItemStateChangedEvent] - Weather_OWM_ConditionId3 changed from Bedeckt to 804

OH3:

Log:

	Line 3386: 2021-01-20 18:24:44.144 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Weather_OWM_ConditionId0' changed from 804 to 802
Line 3614: 2021-01-20 18:58:38.779 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Weather_OWM_Condition' changed from NULL to Klarer Himmel
Line 3615: 2021-01-20 18:58:38.783 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Weather_OWM_ConditionId' changed from NULL to 800
Line 3616: 2021-01-20 18:58:38.793 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Weather_OWM_ConditionIcon' changed from NULL to raw type (image/png): 2817 bytes
Line 3617: 2021-01-20 18:58:38.798 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Weather_OWM_ConditionIconId' changed from NULL to 01n
Line 3621: 2021-01-20 18:58:38.846 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Weather_OWM_Condition0' changed from NULL to Mäßig bewölkt
Line 3622: 2021-01-20 18:58:38.848 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Weather_OWM_ConditionId0' changed from NULL to 802
Line 3625: 2021-01-20 18:58:38.870 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Weather_OWM_Condition1' changed from NULL to Bedeckt
Line 3626: 2021-01-20 18:58:38.872 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Weather_OWM_ConditionId1' changed from NULL to 804
Line 3629: 2021-01-20 18:58:38.897 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Weather_OWM_Condition2' changed from NULL to Bedeckt
Line 3632: 2021-01-20 18:58:38.912 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Weather_OWM_ConditionId2' changed from NULL to 804
Line 3634: 2021-01-20 18:58:38.919 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Weather_OWM_Condition3' changed from NULL to Bedeckt
Line 3635: 2021-01-20 18:58:38.921 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Weather_OWM_ConditionId3' changed from NULL to 804

I find it very confusing too. In OH2 with free account, you could get several days worth of hourly reports, but no daily reports.
OWM may well have changed the rules, but I think some limits are hardcoded into the binding.

Now. all that is using OWMs original “Current and forecast weather data” API. You choose the API the binding willuse when you select the Thing type.

If you are setting up a new OH3 install, you might prefer to use the newer “One Call” API by OWM, which offers a different combination of stuff.

Don’t know what those are linked to.

OK, but the HabPanel Widget is not working with the “One Call” API. I think I will test DarkSky

I’m using the openweathermap Binding with a free Account in OH3. The “ForecastDay” Feature is always 0 with the free Account. What I did is setting the “forecastHours” to 96 (= 5 Days ahead) so I have these values.

I followed this guide GitHub - BasvanH/habpanel-widget-openweathermap: OpenWeatherMap widget for HABPanel (OpenHAB) to automatically fill the Items with the right values (rolling Days ahaed). Just for those looking for a solution working with the openweathermap Binding.