Page 1 of 1

Change time zone

Posted: Mon Mar 12, 2018 4:49 pm
by gijsje
I have some issues with getting the power figures into domoticz.
i think this because there is difference in time on the nas and the toon.
I have found that the time/date on the toon is Mon Mar 12 14:42:57 UTC 2018
The time and date on the nas is Mon Mar 12 15:43:34 CET 2018
How can i change this?

Re: Change time zone

Posted: Mon Mar 12, 2018 5:04 pm
by TheHogNL
So only a minute or so seperated. Did you config chrony properly on the Toon? Do you have your nas working with NTP?

Your toon is showing the time in UTC while your NAS is showing on CET (or CEST during summer). But that should not be a problem for your timestamped data because timestamps always should use UTC timetamps.

Re: Change time zone

Posted: Mon Mar 12, 2018 7:26 pm
by gijsje
I have the gas and electric script running on the nas and have problems getting good data in domoticz.
The logging of the data stops at 17:00 and starts again at 00:00
Image

The file that is created every minute on the nas is like below

The time for the file itself for this on is 10-3-2018 10:11

Code: Select all

Request for FROM date: 10-03-2018
Now: 2018-03-10 17:11:03
Electricity Usage Toon = 400 Watt
Electricity Production Toon = 0 Watt
Electricity LT counter from Toon = 9530159 Wh
Electricity NT counter from Toon = 8221494 Wh
Electricity production counter LT from Toon = 13 Wh
Electricity production counter NT from Toon = 50 Wh
{
   "status" : "OK",
   "title" : "Update Device"
}
The problem with this i think is the low and tarif and the change time is not correct because of the time zone.