marcelblijleven / goodwe

Get inverter data from a Goodwe XS inverter
MIT License
122 stars 52 forks source link

timezone #45

Closed svde closed 10 months ago

svde commented 1 year ago

I've just recently installed a PV system with a goodwe inverter. When I installed it, the timezone was UTC+1 (CET) and this time was configured on the inverter. On the last weekend in March DST was set in the Netherlands. The time on the inverter remained in the UTC+1 timezone, the timezone on my computer which runs gw2pvo switched to CEST (UTC+2).

The data on the sems portal shows timestamps which correspond to UTC+1, same as the inverter.

The cfg file contains city = Amsterdam. Timezone in pvoutput: UTC+1:00 Europe/Amsterdam

Adjust for DST = Both + manual = correct Adjust for DST = None + manual = 1 hour behind Adjust for DST = Both + systemd service = 1 hour ahead Adjust for DST = None + systemd service = correct

manual command: ~/venv/bin/python ~/venv/bin/gw2pvo --config ~/gw2pvo.cfg --date $(date +\%Y-\%m-\%d)

systemd service: ExecStart=/home/gw2pvo/venv/bin/python /home/gw2pvo/venv/bin/gw2pvo --config /home/gw2pvo/gw2pvo.cfg

I'd like to have a setup whereby I don't need to change anything for DST changes. How do other users do this?

svde commented 1 year ago

I changed the time on the inverter to the current time (UTC+2) yesterday. This morning is was changed back to UTC+1. I guess the inverter resets the time when it starts up.