IoTaWatt device web interface isnt responding, ping intermittent

Today seemingly randomly, I noticed my grafana graphs stopped displaying in the evening. I navigated to the unit’s IP address in the web browser and noticed it’s not able to load upon refresh (F5 in the browser).

Trying to ping the unit and sometimes it gets 100% packet loss and sometimes 0% and sometimes 75%, etc.

image

image

I power cycled the 5V (unplugged, plugged back in) and same issue. After power cycling, the LEDs appeared to stabilize on green but then appeared to switch to constant dull red. I then unplugged the 5V power supply for a few minutes then plugged it back in and now it seems to be stable on green (but ever so slightly blinking, as if reflecting network activity).

Firefox Web browser F12 network log shows some errors:

Chrome web browser F12 console log also shows errors:

It seems as though something failed, though I’m not sure what. What should I try to do?

The most likely cause is poor WiFi such that the connection is lost.

The location of the unit hasn’t changed, it it’s been working this way for the past few years without issue.

Something changed. I would need to see the message log to be more specific.

Randomly it seems to be working now, i noticed my Grafana graphs were updated so i checked the iotawatt web interface and it’s responsive.

Logs:

8/09/23 03:00:16z Trace: 8:4, 8:6, 8:8, 9:3, 9:5, 9:9, 1:3, 1:3, 1:6[1], 1:6[2], 1:6[2], 1:6[3], 1:5[31], 1:6[4], 31:0, 31:1, 31:2[6], 31:90, 31:93, 31:1, 1:6[6], 1:3, 1:3, 1:6[1], 1:6[2], 1:6[3], 1:5[21], 1:6[4], 21:0, 21:1, 21:10, 21:10
8/09/23 03:00:16z ESP8266 ID: 6308249, RTC PCF8523 (68)
8/09/23 03:00:16z IoTaWatt 5.0, Firmware version 02_08_02
8/09/23 03:00:16z SPIFFS mounted.
8/08/23 23:00:16 Local time zone: -5:00, using DST/BST when in effect.
8/08/23 23:00:16 device name: IotaWatt
8/08/23 23:00:16 HTTP server started
8/08/23 23:00:16 influxDB_v1: Starting, interval:10, url:http://192.168.1.135:8086
8/08/23 23:00:16 timeSync: service started.
8/08/23 23:00:16 statService: started.
8/08/23 23:00:16 dataLog: service started.
8/08/23 23:00:19 dataLog: Last log entry 08/08/23 23:00:15
8/08/23 23:00:21 historyLog: service started.
8/08/23 23:00:21 historyLog: Last log entry 08/08/23 23:00:00
8/08/23 23:00:27 WiFi connected. SSID=VirusWIFI, IP=192.168.1.254, channel=11, RSSI -77db
8/08/23 23:00:27 Updater: service started. Auto-update class is BETA
8/08/23 23:00:30 Updater: Auto-update is current for class BETA.
8/08/23 23:00:33 influxDB_v1: Start posting at 08/08/23 19:49:50
8/08/23 23:01:30 Heap memory has degraded below safe minimum, restarting.

** Restart **

SD initialized.
8/09/23 03:01:31z Real Time Clock is running. Unix time 1691550091
8/09/23 03:01:31z Reset reason: Software/System restart
8/09/23 03:01:31z Trace: 1:3, 1:3, 1:6[1], 1:6[2], 1:6[2], 1:6[3], 1:5[19], 1:6[4], 1:6[6], 1:1[1], 1:2[2], 9:0[2], 9:0, 9:1, 8:4, 8:6, 8:8, 9:3, 9:5, 9:9, 1:3, 1:3, 1:6[1], 1:6[2], 1:6[2], 1:6[3], 1:5[21], 1:6[4], 21:0, 21:1, 21:10, 21:10
8/09/23 03:01:31z ESP8266 ID: 6308249, RTC PCF8523 (68)
8/09/23 03:01:31z IoTaWatt 5.0, Firmware version 02_08_02
8/09/23 03:01:31z SPIFFS mounted.
8/08/23 23:01:31 Local time zone: -5:00, using DST/BST when in effect.
8/08/23 23:01:31 device name: IotaWatt
8/08/23 23:01:31 HTTP server started
8/08/23 23:01:31 influxDB_v1: Starting, interval:10, url:http://192.168.1.135:8086
8/08/23 23:01:31 timeSync: service started.
8/08/23 23:01:31 statService: started.
8/08/23 23:01:31 dataLog: service started.
8/08/23 23:01:34 dataLog: Last log entry 08/08/23 23:01:30
8/08/23 23:01:36 historyLog: service started.
8/08/23 23:01:36 historyLog: Last log entry 08/08/23 23:01:00
8/08/23 23:01:36 WiFi connected. SSID=VirusWIFI, IP=192.168.1.254, channel=11, RSSI -75db
8/08/23 23:01:36 Updater: service started. Auto-update class is BETA
8/08/23 23:01:41 Updater: Auto-update is current for class BETA.
8/08/23 23:01:42 influxDB_v1: Start posting at 08/08/23 19:49:50
8/08/23 23:02:39 Heap memory has degraded below safe minimum, restarting.

** Restart **

SD initialized.
8/09/23 03:02:40z Real Time Clock is running. Unix time 1691550160
8/09/23 03:02:40z Reset reason: Software/System restart
8/09/23 03:02:40z Trace: 8:4, 8:6, 8:8, 9:3, 9:5, 9:9, 1:3, 1:3, 1:6[1], 1:6[2], 1:6[2], 1:6[3], 1:5[31], 1:6[4], 31:0, 31:1, 31:2[6], 31:90, 31:93, 31:1, 1:6[6], 1:3, 1:3, 1:6[1], 1:6[2], 1:6[3], 1:5[21], 1:6[4], 21:0, 21:1, 21:10, 21:10
8/09/23 03:02:40z ESP8266 ID: 6308249, RTC PCF8523 (68)
8/09/23 03:02:40z IoTaWatt 5.0, Firmware version 02_08_02
8/09/23 03:02:40z SPIFFS mounted.
8/08/23 23:02:40 Local time zone: -5:00, using DST/BST when in effect.
8/08/23 23:02:40 device name: IotaWatt
8/08/23 23:02:40 HTTP server started
8/08/23 23:02:40 influxDB_v1: Starting, interval:10, url:http://192.168.1.135:8086
8/08/23 23:02:40 timeSync: service started.
8/08/23 23:02:40 statService: started.
8/08/23 23:02:40 dataLog: service started.
8/08/23 23:02:43 dataLog: Last log entry 08/08/23 23:02:35
8/08/23 23:02:45 historyLog: service started.
8/08/23 23:02:45 historyLog: Last log entry 08/08/23 23:02:00
8/08/23 23:02:45 WiFi connected. SSID=VirusWIFI, IP=192.168.1.254, channel=11, RSSI -76db
8/08/23 23:02:46 Updater: service started. Auto-update class is BETA
8/08/23 23:02:55 Updater: Auto-update is current for class BETA.
8/08/23 23:03:06 influxDB_v1: Start posting at 08/08/23 19:49:50
8/08/23 23:04:03 Heap memory has degraded below safe minimum, restarting.

** Restart **

SD initialized.
8/09/23 03:04:04z Real Time Clock is running. Unix time 1691550244
8/09/23 03:04:04z Reset reason: Software/System restart
8/09/23 03:04:04z Trace: 8:4, 8:6, 8:8, 9:3, 9:5, 9:9, 1:3, 1:3, 1:6[1], 1:6[2], 1:6[2], 1:6[3], 1:5[31], 1:6[4], 31:0, 31:1, 31:2[6], 31:90, 31:93, 31:1, 1:6[6], 1:3, 1:3, 1:6[1], 1:6[2], 1:6[3], 1:5[21], 1:6[4], 21:0, 21:1, 21:10, 21:10
8/09/23 03:04:04z ESP8266 ID: 6308249, RTC PCF8523 (68)
8/09/23 03:04:04z IoTaWatt 5.0, Firmware version 02_08_02
8/09/23 03:04:04z SPIFFS mounted.
8/08/23 23:04:04 Local time zone: -5:00, using DST/BST when in effect.
8/08/23 23:04:04 device name: IotaWatt
8/08/23 23:04:04 HTTP server started
8/08/23 23:04:04 influxDB_v1: Starting, interval:10, url:http://192.168.1.135:8086
8/08/23 23:04:04 timeSync: service started.
8/08/23 23:04:04 statService: started.
8/08/23 23:04:04 dataLog: service started.
8/08/23 23:04:07 dataLog: Last log entry 08/08/23 23:04:00
8/08/23 23:04:09 historyLog: service started.
8/08/23 23:04:09 historyLog: Last log entry 08/08/23 23:04:00
8/08/23 23:04:11 WiFi connected. SSID=VirusWIFI, IP=192.168.1.254, channel=11, RSSI -77db
8/08/23 23:04:11 Updater: service started. Auto-update class is BETA
8/08/23 23:04:25 Updater: Auto-update is current for class BETA.
8/08/23 23:04:48 influxDB_v1: Start posting at 08/08/23 19:49:50
8/08/23 23:06:59 Heap memory has degraded below safe minimum, restarting.

** Restart **

SD initialized.
8/09/23 03:07:00z Real Time Clock is running. Unix time 1691550420
8/09/23 03:07:00z Reset reason: Software/System restart
8/09/23 03:07:00z Trace: 1:6[3], 1:5[31], 1:6[4], 31:0, 31:1, 31:2[6], 31:90, 31:93, 31:1, 1:6[6], 1:3, 1:3, 1:6[1], 1:6[2], 1:6[2], 1:6[3], 1:5[5], 1:6[4], 5:0, 5:2, 1:6[6], 1:3, 1:3, 1:6[1], 1:6[2], 1:6[3], 1:5[21], 1:6[4], 21:0, 21:1, 21:10, 21:10
8/09/23 03:07:00z ESP8266 ID: 6308249, RTC PCF8523 (68)
8/09/23 03:07:00z IoTaWatt 5.0, Firmware version 02_08_02
8/09/23 03:07:00z SPIFFS mounted.
8/08/23 23:07:00 Local time zone: -5:00, using DST/BST when in effect.
8/08/23 23:07:00 device name: IotaWatt
8/08/23 23:07:00 HTTP server started
8/08/23 23:07:00 influxDB_v1: Starting, interval:10, url:http://192.168.1.135:8086
8/08/23 23:07:00 timeSync: service started.
8/08/23 23:07:00 statService: started.
8/08/23 23:07:00 dataLog: service started.
8/08/23 23:07:03 dataLog: Last log entry 08/08/23 23:06:55
8/08/23 23:07:05 historyLog: service started.
8/08/23 23:07:05 historyLog: Last log entry 08/08/23 23:06:00
8/08/23 23:07:11 WiFi connected. SSID=VirusWIFI, IP=192.168.1.254, channel=11, RSSI -76db
8/08/23 23:07:11 Updater: service started. Auto-update class is BETA
8/08/23 23:07:13 Updater: Auto-update is current for class BETA.
8/08/23 23:07:30 influxDB_v1: Start posting at 08/08/23 19:50:30
8/08/23 23:08:26 Heap memory has degraded below safe minimum, restarting.

** Restart **

SD initialized.
8/09/23 03:08:27z Real Time Clock is running. Unix time 1691550507
8/09/23 03:08:27z Reset reason: Software/System restart
8/09/23 03:08:27z Trace: 8:4, 8:6, 8:8, 9:3, 9:5, 9:9, 1:3, 1:3, 1:6[1], 1:6[2], 1:6[2], 1:6[3], 1:5[31], 1:6[4], 31:0, 31:1, 31:2[6], 31:90, 31:93, 31:1, 1:6[6], 1:3, 1:3, 1:6[1], 1:6[2], 1:6[3], 1:5[21], 1:6[4], 21:0, 21:1, 21:10, 21:10
8/09/23 03:08:27z ESP8266 ID: 6308249, RTC PCF8523 (68)
8/09/23 03:08:27z IoTaWatt 5.0, Firmware version 02_08_02
8/09/23 03:08:27z SPIFFS mounted.
8/08/23 23:08:27 Local time zone: -5:00, using DST/BST when in effect.
8/08/23 23:08:27 device name: IotaWatt
8/08/23 23:08:27 HTTP server started
8/08/23 23:08:27 influxDB_v1: Starting, interval:10, url:http://192.168.1.135:8086
8/08/23 23:08:27 timeSync: service started.
8/08/23 23:08:27 statService: started.
8/08/23 23:08:27 dataLog: service started.
8/08/23 23:08:30 dataLog: Last log entry 08/08/23 23:08:25
8/08/23 23:08:32 historyLog: service started.
8/08/23 23:08:32 historyLog: Last log entry 08/08/23 23:08:00
8/08/23 23:08:43 WiFi connected. SSID=VirusWIFI, IP=192.168.1.254, channel=11, RSSI -77db
8/08/23 23:08:43 Updater: service started. Auto-update class is BETA
8/08/23 23:08:58 influxDB_v1: Start posting at 08/08/23 19:50:30
8/08/23 23:09:00 Updater: Auto-update is current for class BETA.
8/08/23 23:09:56 Heap memory has degraded below safe minimum, restarting.

** Restart **

SD initialized.
8/09/23 03:09:57z Real Time Clock is running. Unix time 1691550597
8/09/23 03:09:57z Reset reason: Software/System restart
8/09/23 03:09:57z Trace: 1:6[3], 1:5[31], 1:6[4], 31:0, 31:1, 31:2[6], 31:90, 31:93, 31:1, 1:6[6], 1:3, 1:3, 1:6[1], 1:6[2], 1:6[2], 1:6[3], 1:5[5], 1:6[4], 5:0, 5:2, 1:6[6], 1:3, 1:3, 1:6[1], 1:6[2], 1:6[3], 1:5[21], 1:6[4], 21:0, 21:1, 21:10, 21:10
8/09/23 03:09:57z ESP8266 ID: 6308249, RTC PCF8523 (68)
8/09/23 03:09:57z IoTaWatt 5.0, Firmware version 02_08_02
8/09/23 03:09:57z SPIFFS mounted.
8/08/23 23:09:57 Local time zone: -5:00, using DST/BST when in effect.
8/08/23 23:09:57 device name: IotaWatt
8/08/23 23:09:57 HTTP server started
8/08/23 23:09:57 influxDB_v1: Starting, interval:10, url:http://192.168.1.135:8086
8/08/23 23:09:57 timeSync: service started.
8/08/23 23:09:57 statService: started.
8/08/23 23:09:57 dataLog: service started.
8/08/23 23:10:00 dataLog: Last log entry 08/08/23 23:09:55
8/08/23 23:10:02 historyLog: service started.
8/08/23 23:10:02 historyLog: Last log entry 08/08/23 23:09:00
8/08/23 23:10:04 WiFi connected. SSID=VirusWIFI, IP=192.168.1.254, channel=11, RSSI -76db
8/08/23 23:10:04 Updater: service started. Auto-update class is BETA
8/08/23 23:10:12 Updater: Auto-update is current for class BETA.
8/08/23 23:11:13 influxDB_v1: Start posting at 08/08/23 19:50:30

It looks like poor WiFi connection. You might try switching your AP to use channels 6 or 1 and/or moving the AP closer to the IoTaWatt.

Thanks for the suggestions!

Whats special about channels 1 and 6?

image