But why is WMOID having data 14:00 and is the script requesting 15:00 while it is actually 17:15 here??
EDIT: answer. Because UTC is 15:00... duh. OK. getting data again. Indeed as stated in comments script mods data is not received first 15/20 minutes.
Search found 4 matches
- Tuesday 09 August 2016 17:15
- Forum: LUA
- Topic: Real-time solar data : azimuth, Altitude, Lux sensor... [closed]
- Replies: 245
- Views: 69327
- Tuesday 09 August 2016 16:41
- Forum: LUA
- Topic: Real-time solar data : azimuth, Altitude, Lux sensor... [closed]
- Replies: 245
- Views: 69327
Re: Real-time solar data : azimuth, Altitude, Lux sensor...
Yeah I'm not convinced this is the solution either as I'm now seeing 13:00 in the WMOID overview where it used to be 2:00 for some and 6:00 for others all in the same country. So it is not UTC. I'll read the script more to understand what it is doing. I was noticing already that the Lux value was ...
- Tuesday 09 August 2016 12:01
- Forum: LUA
- Topic: Real-time solar data : azimuth, Altitude, Lux sensor... [closed]
- Replies: 245
- Views: 69327
Re: Real-time solar data : azimuth, Altitude, Lux sensor...
The ogimet data started to fail. After debugging found that UTC is calculated wrong. hourUTCminus1 = os.date("!%H")-1 gives 8 while I need to have 2. The ogimet WMOID have a UTC related to them. If it doesn't match you don't get data anymore. I checked that my NAS has correctly timezone set. Which ...
- Tuesday 09 August 2016 10:01
- Forum: LUA
- Topic: Real-time solar data : azimuth, Altitude, Lux sensor... [closed]
- Replies: 245
- Views: 69327
Re: Real-time solar data : azimuth, Altitude, Lux sensor...
For those who want to run this on Synology NAS using pre-build domoticz packages (not sure if folders are the same when you build yourself) --json = (loadfile "/home/pi/domoticz/scripts/lua/JSON.lua")() -- For Linux --json = (loadfile "D:\\Domoticz\\scripts\\lua\\json.lua")() -- For Windows json ...