I have one emonPi2 that is not syncing with emonCMS cloud for some reason. All my other emonPi2s are configured the same, but this one is lagging behind.
I am using the API key to authenticate and have the interval set to 5 minutes but keep seeing the message “No response from remote server”. I do have network connectivity as I have remotely logged into the emonPi2. I have also updated to the latest version of sync (v3.1.7) but continue to see Local ahead of Remote by xxxx points". the number of points is increasing by 30 every time the screen updates - which makes sense as my sync interval is every 5 minutes for 10 second data (6 points per minute).
Sync does show the message emoncms_sync service is running. Last upload xx seconds (or minutes) ago (1.0 MB)
Not sure what to do to correct this. Any suggestions?
@TrystanLea Is there a way to automatically restart sync or generate an alert if it starts to lag behind?
I have noticed that some sites tend to lag (likely with a weaker cellular connection) and I have to manually restart sync on the system information page to get it to catch up.
Today, one site was 37 hours behind and growing. It is almost as if once it lags to a certain level (unknown) it stops syncing and continually adds to the number of data points behind.
Brian, great question. When I log in to the emonPi and enter timedatectl, it shows
pi@emonpi:~ $ timedatectl
Local time: Fri 2024-12-20 19:29:20 GMT
Universal time: Fri 2024-12-20 19:29:20 UTC
RTC time: n/a
Time zone: Europe/London (GMT, +0000)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
When I checked the account on the local machine, it, too, showed Europe/London, so I changed it to America/New_York.
In checking another of my installations, the local machine account showed correctly as America/New_York, but the emonPi shows:
pi@emonpi:~ $ timedatectl
Local time: Fri 2024-12-20 19:29:20 GMT
Universal time: Fri 2024-12-20 19:29:20 UTC
RTC time: n/a
Time zone: Europe/London (GMT, +0000)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
Should the Raspberry Pi always be in the Europe/London timezone, and should only the emoncms account be changed to the local time zone?