Closed nesys closed 2 years ago
This issue has been mentioned on openHAB Community. There might be relevant details there:
https://community.openhab.org/t/new-warn-in-log-since-fresh-3-0-1/119012/34
Hi @clinique it works at the beginning (cleaned cache, restarted the system), but after a while the values in SafeExposure items disappear, and the value is back to 'NULL'. Tested on 3.3.0 M5
I will take time to investigate further then...
perhaps can help: when I restart everything, it works like a charm, and I receive the right values in minutes for each SafeExposure channel. At the second update received, the values become 'NULL'.
Unfortunately, I do not reproduce, everything seems to run smoothly on my side after some update rounds :
> 18:41:51.424 [INFO ] [rulesupport.loader.ScriptFileWatcher] - Loading script '/home/sysadmin/openhab-main2/git/openhab-distro/launch/app/runtime/conf/automation/jsr223/demo.js'
> 18:41:53.313 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_CouleurAlerte' changed from NULL to 95,66,54
> 18:41:53.314 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_IndiceUVMaximal' changed from NULL to 6.8872
> 18:41:53.315 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_HeurePicUV' changed from NULL to 2022-05-08T13:49:21.610+0200
> 18:41:53.349 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_Ozone' changed from NULL to 337.7 DU
> 18:41:53.359 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_HorodatageMesureOzone' changed from NULL to 2022-05-08T17:05:00.751+0200
> 18:41:53.359 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_HorodatageRapport' changed from NULL to 2022-05-08T18:41:42.179+0200
> 18:41:53.361 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_DureeExpositionSansRisque' changed from NULL to 159 min
> 18:41:53.368 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_seb' changed from NULL to 191 min
> 18:41:53.369 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_sebc' changed from NULL to 254 min
> 18:41:53.378 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_sebm' changed from NULL to 318 min
> 18:41:53.381 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'openuv:uvreport:06faba4e09:54d2ad0ace' changed from UNKNOWN to ONLINE
> 18:41:53.383 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_sebf' changed from NULL to 508 min
> 18:41:53.384 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_sen' changed from NULL to 953 min
> 18:55:28.000 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_IndiceUV' changed from 1.0498 to 0.9516
> 18:55:28.012 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_HorodatageRapport' changed from 2022-05-08T18:41:42.179+0200 to 2022-05-08T18:51:54.384+0200
> 18:55:28.013 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_DureeExpositionSansRisque' changed from 159 min to 175 min
> 18:55:28.014 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_seb' changed from 191 min to 210 min
> 18:55:28.016 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_sebc' changed from 254 min to 280 min
> 18:55:28.016 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_sebm' changed from 318 min to 350 min
> 18:55:28.017 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_sebf' changed from 508 min to 560 min
> 18:55:28.017 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_sen' changed from 953 min to 1051 min
> 19:05:35.232 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_IndiceUV' changed from 0.9516 to 0.7064
> 19:05:35.239 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_HorodatageRapport' changed from 2022-05-08T18:51:54.384+0200 to 2022-05-08T19:05:35.126+0200
> 19:05:35.240 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_DureeExpositionSansRisque' changed from 175 min to 236 min
> 19:05:35.240 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_seb' changed from 210 min to 283 min
> 19:05:35.241 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_sebc' changed from 280 min to 378 min
> 19:05:35.243 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_sebm' changed from 350 min to 472 min
> 19:05:35.244 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_sebf' changed from 560 min to 755 min
> 19:05:35.245 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_sen' changed from 1051 min to 1416 min
> 19:15:35.700 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_IndiceUV' changed from 0.7064 to 0.6279
> 19:15:35.723 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_HorodatageRapport' changed from 2022-05-08T19:05:35.126+0200 to 2022-05-08T19:15:35.626+0200
> 19:15:35.726 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_DureeExpositionSansRisque' changed from 236 min to 265 min
> 19:15:35.726 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_seb' changed from 283 min to 319 min
> 19:15:35.727 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_sebc' changed from 378 min to 425 min
> 19:15:35.727 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_sebm' changed from 472 min to 531 min
> 19:15:35.728 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_sebf' changed from 755 min to 849 min
> 19:15:35.728 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_sen' changed from 1416 min to 1593 min
> 19:25:36.139 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_IndiceUV' changed from 0.6279 to 0.5004
> 19:25:36.170 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_HorodatageRapport' changed from 2022-05-08T19:15:35.626+0200 to 2022-05-08T19:25:36.064+0200
> 19:25:36.171 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_DureeExpositionSansRisque' changed from 265 min to 333 min
> 19:25:36.172 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_seb' changed from 319 min to 400 min
> 19:25:36.172 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_sebc' changed from 425 min to 533 min
> 19:25:36.173 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_sebm' changed from 531 min to 666 min
> 19:25:36.173 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_sebf' changed from 849 min to 1066 min
> 19:25:36.173 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RapportUV_sen' changed from 1593 min to 1999 min
Are you sure it does not go to null just because it is the night ?
Absolutely sure.
I’m now receiving data for today, but not SafeExposure. If I restart the system, I’ll receive the first update with all data, then NULL.
Andrea
Sent from my iPhone
On 9 May 2022, at 01:06, clinique @.***> wrote:
Are you sure it does not go to null just because it is the night ?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.
this is this morning, after a openhab restart:
this is after a while (the next update):
@clinique it seems 3.3.0 M6 fixed the issue. Now it works like a charm.
Expected Behavior
With the config below in openuv.things, I should be able to receive by openuv a value in minutes for each of six safe exposures per Fitzpatrick Skin Type.
`Bridge openuv:openuvapi:local "OpenUV API" @ "Accounts" [ apikey="myAPIkey" ] {
} `
Current Behavior
After the migration from snapshot to 3.3.0 M3, the Binding is working great. But I'm not able to receive any data for each SafeExposure item anymore.
But if I try a normal curl request, like this:
/usr/bin/curl -s -XGET "https://api.openuv.io/api/v1/uv?lat=mylat&lng=mylong" -H "x-access-token: myAPItoken" > openuv.txt
I see a value for each SafeExposure (st1, st2, st3, st4, st5 and st6).Steps to Reproduce (for Bugs)
In 3.3.0 M3 (and also M4), configure manually the Openuv Binding, via config files (things file with the config above, and items file like the following:
Number:Time Openuv_SafeExposure1 "Safe Exposure I [%d %unit%]" (gWeather) { channel = "openuv:uvreport:local:milan:pale" }
Context
I would like to collect all the six values, one for each Fitzpatrick Skin Type, as exposed by
result.safe_exposure_time.st1 result.safe_exposure_time.st2 result.safe_exposure_time.st3 result.safe_exposure_time.st4 result.safe_exposure_time.st5 result.safe_exposure_time.st6
Community topic: https://community.openhab.org/t/new-warn-in-log-since-fresh-3-0-1/119012/28?u=ariela
Your Environment
openhabian 3.3.0 M4