Hi I have an RTC installed on one of my Emonpi’s it was all working ok. However I have powered it up today after a few days off with a non network connected laptop. It sees the nodes and there current temperatures but for some reason is not updating the time stamp. Once plugged into the network it starts working ok. Any Ideas? I need to use it as a remote logger as from tomorrow.
SSH into your pi.
You can set the correct time easily. First run date to verify the time is correct. Plug in Ethernet or WiFi to let the Pi sync the right time from the Internet. Once that’s done, run
pi@emonpi: sudo hwclock -w
to write the time, and
pi@emonpi:sudo hwclock -r
To check if hwclock is there:
pi@emonpi:timedatectl
Local time: Tue 2019-10-01 12:16:29 AEST
Universal time: Tue 2019-10-01 02:16:29 UTC
RTC time: Tue 2019-10-01 02:16:30
Time zone: Australia/Sydney (AEST, +1000)
Network time on: yes
NTP synchronized: yes
RTC in local TZ: no