Page 1 of 1

set timestamp on update

Posted: Sunday 26 May 2019 10:48
by htca
hi I am currently woring on a plugin, which gets information from the internet (api.luchtmeetnet.nl). The sensors are updated on that service every hour and sometimes they are an hour behind or of the hook because of calibration.

I got the information in JSON layout and I am able to get the closest station based on lat,lon, but I would like to take over the timestamp in the json in domoticz. I checked the wiki, but it can find it over there. Is it correct that it need to be added or changed on sqlite level?
Any directions would be appreciated.

Re: set timestamp on update

Posted: Sunday 26 May 2019 12:18
by Toulon7559
(IMHO) Time validity is 'under-developed' in Domoticz.
In JSON-responses you always get ActTime and ServerTime (which are message-related), and sometimes LastUpdate (wnich may be content-related), but that's all ......
Luchtmeetnet.nl also has Timestamp_measured
The last one probably is the timetag you mean.

But also have no idea how to transfer that timevalidity-info into Domoticz' Database, except as a dedicated, separate field for a Customer Sensor.

At least, that is my conclusion after this brainstorm.
And further application is DIY .......