-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
timeseries2csv <-> RCT Power App export - 1h time difference #7
Comments
Raw timestamps (without time zone info) and time zones in general are a never-ending source for fun. I don't think it's you or your doing, the timestamps of the device are off by one hour. The app seems to compensate, though I'm not sure how it figures out the details. The Using the following bash script: # put your devices address here:
DEV=192.168.0.1
echo "local: $(date +%s) = $(date)"
D_TS=$(rctclient read-value --host $DEV --name flash_rtc.time_stamp)
echo "device: ${D_TS} = $(date -d @${D_TS})"
echo -n "device auto-adjust DST: "
rctclient read-value --host $DEV --name flash_rtc.flag_time_auto_switch I get this output:
So the devices timestamp is one hour plus some seconds (set manually) in the future. I've also verified that what the app receives is also one hour ahead of the the current time by looking at a network dump. This is pretty frustrating, because it doesn't show up in my Grafana because of time zone differences between the host that runs the InfluxDB and the Grafana/Browser that shows it, but my stored CSVs are off by an hour. I wonder if the app simply compares the time stamp and figures out the offset to apply, though I see some unknown (read: not in the registry yet) OIDs ( So in the end it looks like |
Using you small script, for me the situation looks the same.
And as mentioned already, the device is showing the local 05:29 time. I have just rechecked at the device. I was a little surprised that the hour wasn't noticed before :-) |
Same here, I input the current time into the rct app and at the inverter display it is 2 hours difference. |
Could it be that the RCT device mishandles the dates by treating the local timestamp as GMT and convert this to unix epoch?
gives my the local time, i.e. the same as
|
I have one hour time difference between the export done by timeservice2csv and the RCT power app.
Yesterday evening at 21:00h CET my battery was showing the load of 50,00 %.
The export from the RCT power app is showing the same value (49,707...) in the field SOC [%] with the timestamp 25.02.2021 21:00
The .csv file from timeseries2csv is showing the same value (0,49707....) in the field soc at the timestamp 2021-02-25T22:00:00+01:00
I have not use the parameter "--time-zone" while using timeseries2csv.
By using the csv2influxdb program I have imported the .csv file in Grafana. The 50% is shown at 22:00h.
My virtual Raspberry Pi running the InfluxDB and Grafana has the timezone "Europe/Berlin" configured.
The RCT inverter has the same time as all other devices. It has "auto daylight saving" enabled.
I was not able to find any timezone setting.
Is it me, doing something wrong? Something I have not taken in consideration?
The text was updated successfully, but these errors were encountered: