So I have an IotaWatt running in a remote location. i.e. don’t have handy access to it.
It stopped updating EmonCMS server. I asked a non-techie to do a powercycle on it to no avail. This went on for a month.
Then I accessed it via remote desktop software and everything seemed okay. IotaWatt has been running all this time and all the data is available onboard the sd card. The Led was glowing green, the wifi was connected. Its just that the EmonCMS server was not getting updated. It was eventually solved when I deleted the API key and pasted it again and saved the webpage that IotaWatt started updating the server again. (however the historical data was never updated).
I append some of the logs below. What I don’t understand is the entry, which happens exactly 5 hours after bootup. I have also attached a longer here: emonslog3.txt (476.6 KB)
9/11/18 07:42:50 device name: IotaWatt, version: 3 9/11/18 07:42:50 Local time zone: 5 9/11/18 07:42:53 MDNS responder started 9/11/18 07:42:53 You can now connect to http://IotaWatt.local
** Restart **
No clock yet: SD initialized.
9/11/18 01:57:20 Real Time Clock is running. Unix time: 1536631040
9/11/18 01:57:20 Version: 02_02_30
9/11/18 01:57:20 Reset reason: Software/System restart
9/11/18 01:57:20 Trace: 88,93,94,95,99,12,13,14,15,16,13,14,15,16,13,14,15,30,37,38,148,149,140,142,143,144,145,148,149,146,147,39
9/11/18 01:57:20 ESP8266 ChipID:6902565
9/11/18 06:57:20 device name: IotaWatt, version: 3
9/11/18 06:57:20 Local time zone: 5
9/11/18 06:57:23 MDNS responder started
9/11/18 06:57:23 You can now connect to http://IotaWatt.local
9/11/18 06:57:23 HTTP server started
9/11/18 06:57:23 dataLog: service started.
9/11/18 06:57:24 dataLog: Last log entry:1536631035
9/11/18 06:57:24 statService: started.
9/11/18 06:57:24 timeSync: service started.
9/11/18 06:57:24 WiFi connected. SSID: ZONG MBB-E5573-D5B9, IP: 192.168.8.100
9/11/18 06:57:24 historyLog: service started.
9/11/18 06:57:25 historyLog: Last log entry:1536631020
9/11/18 06:57:28 EmonService: started.url: emoncms.org:80, node: AlMustafa, post interval: 10, encrypted POST
9/11/18 06:57:28 EmonService: Start posting at 1534225150
9/11/18 06:57:35 EmonService: POST failed. HTTP code:read Timeout
9/11/18 06:58:35 EmonService: Resending EmonCMS data:2
9/11/18 07:00:37 EmonService: Resending EmonCMS data:3
9/11/18 07:02:31 timeSync: Failed to get NTPtime.
9/11/18 07:03:38 EmonService: Resending EmonCMS data:4
9/11/18 07:07:39 EmonService: Resending EmonCMS data:5
9/11/18 07:12:40 EmonService: Resending EmonCMS data:6
9/11/18 07:17:54 WiFi disconnected.
9/11/18 07:17:57 WiFi connected. SSID: ZONG MBB-E5573-D5B9, IP: 192.168.8.100
9/11/18 07:18:42 EmonService: Resending EmonCMS data:7
9/11/18 07:23:56 WiFi disconnected.
9/11/18 07:23:59 WiFi connected. SSID: ZONG MBB-E5573-D5B9, IP: 192.168.8.100
9/11/18 07:25:43 EmonService: Resending EmonCMS data:8
9/11/18 07:30:57 WiFi disconnected.
9/11/18 07:31:00 WiFi connected. SSID: ZONG MBB-E5573-D5B9, IP: 192.168.8.100
9/11/18 07:33:45 EmonService: Resending EmonCMS data:9
9/11/18 07:38:59 WiFi disconnected.
9/11/18 07:39:02 WiFi connected. SSID: ZONG MBB-E5573-D5B9, IP: 192.168.8.100
9/11/18 07:42:47 EmonService: Resending EmonCMS data:10
9/11/18 07:42:49 EmonService: Unable to post to Emoncms after 10 retries. Restarting ESP.
** Restart **
No clock yet: SD initialized.
9/11/18 02:42:50 Real Time Clock is running. Unix time: 1536633770
9/11/18 02:42:50 Version: 02_02_30
9/11/18 02:42:50 Reset reason: Software/System restart
9/11/18 02:42:50 Trace: 88,93,94,95,99,12,13,14,15,16,13,14,15,16,13,14,15,30,37,38,148,149,140,142,143,144,145,148,149,146,147,39
9/11/18 02:42:50 ESP8266 ChipID:6902565
9/11/18 07:42:50 device name: IotaWatt, version: 3
9/11/18 07:42:50 Local time zone: 5
9/11/18 07:42:53 MDNS responder started
9/11/18 07:42:53 You can now connect to http://IotaWatt.local
9/11/18 07:42:53 HTTP server started
9/11/18 07:42:53 dataLog: service started.
9/11/18 07:42:53 dataLog: Last log entry:1536633765
9/11/18 07:42:53 statService: started.
9/11/18 07:42:54 timeSync: service started.
9/11/18 07:42:54 WiFi connected. SSID: ZONG MBB-E5573-D5B9, IP: 192.168.8.100
9/11/18 07:42:54 historyLog: service started.
9/11/18 07:42:55 historyLog: Last log entry:1536633720
9/11/18 07:42:58 EmonService: started.url: emoncms.org:80, node: AlMustafa, post interval: 10, encrypted POST
9/11/18 07:42:58 EmonService: Start posting at 1534225150
9/11/18 07:43:05 EmonService: POST failed. HTTP code:read Timeout
9/11/18 07:44:05 EmonService: Resending EmonCMS data:2
9/11/18 07:46:06 EmonService: Resending EmonCMS data:3
9/11/18 07:49:07 EmonService: Resending EmonCMS data:4
9/11/18 07:53:08 EmonService: Resending EmonCMS data:5
9/11/18 07:58:09 EmonService: Resending EmonCMS data:6
9/11/18 08:00:41 Server: Sent less data than expected!
9/11/18 08:04:11 EmonService: started.url: emoncms.org:80, node: AlMustafa1, post interval: 10, unsecure GET
9/11/18 08:04:11 EmonService: Start posting at 1536635050
9/11/18 08:05:06 timeSync: Failed to get NTPtime.
9/11/18 08:11:18 Server: Sent less data than expected!
9/11/18 08:24:58 Server: Sent less data than expected!