IoTaWatt requires regular power cycling

Hello everyone,

In the last week or so, I have had to manually restart my IoTaWatt by powering on/off the power supply. Here are the logs from it:

** Restart **

SD initialized.
3/12/23 08:27:59z Real Time Clock is running. Unix time 1678609679 
3/12/23 08:27:59z Reset reason: Software/System restart
3/12/23 08:27:59z Trace:  34:10[10], 34:5, 34:5, 34:5, 34:6[1], 34:10[11], 34:5, 34:5, 34:5, 34:6[1], 34:10[12], 34:5, 34:5, 34:5, 34:6[1], 34:10[13], 34:5, 34:5, 34:5, 34:6[1], 34:10[14], 3:100, 3:101, 3:102, 31:105, 31:105, 31:106, 11:40, 11:45, 11:50, 11:55, 11:70
3/12/23 08:27:59z ESP8266 ID: 16413138, RTC PCF8523 (68)
3/12/23 08:27:59z IoTaWatt 5.0, Firmware version 02_08_02
3/12/23 08:27:59z SPIFFS mounted.
3/12/23 18:27:59 Local time zone: +10:00
3/12/23 18:27:59 device name: IotaWatt
3/12/23 18:27:59 HTTP server started
3/12/23 18:27:59 emoncms: Starting, interval:10, url:http://192.168.21.10:8080
3/12/23 18:27:59 timeSync: service started.
3/12/23 18:27:59 statService: started.
3/12/23 18:28:00 dataLog: service started.
3/12/23 18:28:01 dataLog: Last log entry 03/12/23 18:25:35
3/12/23 18:28:04 historyLog: service started.
3/12/23 18:28:04 historyLog: Last log entry 03/12/23 18:25:00
3/12/23 18:29:21 WiFi connected. SSID=Skywalker, IP=192.168.21.66, channel=6, RSSI -88db
3/12/23 18:29:21 Updater: service started. Auto-update class is MINOR
3/12/23 18:29:25 emoncms: Start posting at 03/12/23 18:23:50
3/12/23 18:29:27 Updater: Auto-update is current for class MINOR.
3/13/23 11:26:53 WiFi disconnected.
3/13/23 11:50:53 WiFi connected. SSID=Skywalker, IP=169.254.211.113, channel=6, RSSI -86db
3/13/23 11:51:20 Updater: Invalid response from server. HTTPcode: -4
3/13/23 12:26:53 WiFi disconnected.
3/13/23 12:32:12 WiFi connected. SSID=Skywalker, IP=169.254.211.113, channel=6, RSSI -87db
3/13/23 13:26:53 WiFi disconnected.
3/13/23 13:27:21 WiFi connected. SSID=Skywalker, IP=169.254.211.113, channel=6, RSSI -87db
3/13/23 14:26:53 WiFi disconnected.
3/13/23 14:27:30 WiFi connected. SSID=Skywalker, IP=169.254.211.113, channel=6, RSSI -87db

** Restart **

SD initialized.
3/13/23 07:47:11z Real Time Clock is running. Unix time 1678693631 
3/13/23 07:47:11z Reset Reason: Power-fail restart.
3/13/23 07:47:11z ESP8266 ID: 16413138, RTC PCF8523 (68)
3/13/23 07:47:11z IoTaWatt 5.0, Firmware version 02_08_02
3/13/23 07:47:11z SPIFFS mounted.
3/13/23 17:47:11 Local time zone: +10:00
3/13/23 17:47:11 device name: IotaWatt
3/13/23 17:47:14 Connecting with WiFiManager.
3/13/23 17:47:18 HTTP server started
3/13/23 17:47:18 emoncms: Starting, interval:10, url:http://192.168.21.10:8080
3/13/23 17:47:19 WiFi connected. SSID=Skywalker, IP=192.168.21.66, channel=6, RSSI -86db
3/13/23 17:47:19 timeSync: service started.
3/13/23 17:47:20 statService: started.
3/13/23 17:47:20 Updater: service started. Auto-update class is MINOR
3/13/23 17:47:20 dataLog: service started.
3/13/23 17:47:21 dataLog: Last log entry 03/13/23 17:47:05
3/13/23 17:47:21 historyLog: service started.
3/13/23 17:47:22 historyLog: Last log entry 03/13/23 17:47:00
3/13/23 17:47:23 emoncms: Start posting at 03/13/23 11:26:50
3/13/23 17:47:25 Updater: Auto-update is current for class MINOR.
3/13/23 18:12:06 Heap memory has degraded below safe minimum, restarting.

** Restart **

SD initialized.
3/13/23 08:12:06z Real Time Clock is running. Unix time 1678695126 
3/13/23 08:12:06z Reset reason: Software/System restart
3/13/23 08:12:06z Trace:  1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:1[7], 1:2[8], 9:0[8], 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
3/13/23 08:12:06z ESP8266 ID: 16413138, RTC PCF8523 (68)
3/13/23 08:12:06z IoTaWatt 5.0, Firmware version 02_08_02
3/13/23 08:12:06z SPIFFS mounted.
3/13/23 18:12:06 Local time zone: +10:00
3/13/23 18:12:06 device name: IotaWatt
3/13/23 18:12:06 HTTP server started
3/13/23 18:12:06 emoncms: Starting, interval:10, url:http://192.168.21.10:8080
3/13/23 18:12:06 timeSync: service started.
3/13/23 18:12:06 statService: started.
3/13/23 18:12:07 dataLog: service started.
3/13/23 18:12:08 dataLog: Last log entry 03/13/23 18:12:05
3/13/23 18:12:11 historyLog: service started.
3/13/23 18:12:12 historyLog: Last log entry 03/13/23 18:12:00
3/13/23 18:16:57 WiFi connected. SSID=Skywalker, IP=169.254.211.113, channel=6, RSSI -86db
3/13/23 18:16:57 Updater: service started. Auto-update class is MINOR
3/13/23 18:17:16 emoncms: Query failed -4
3/13/23 18:17:41 emoncms: Query failed -4
3/13/23 18:18:06 emoncms: Query failed -4
3/13/23 18:18:30 emoncms: Query failed -4
3/13/23 18:18:55 emoncms: Query failed -4
.....
3/13/23 19:44:43 emoncms: Query failed -4
3/13/23 19:45:08 emoncms: Query failed -4

** Restart **

SD initialized.
3/13/23 09:45:17z Real Time Clock is running. Unix time 1678700717 
3/13/23 09:45:17z Reset Reason: Power-fail restart.
3/13/23 09:45:17z ESP8266 ID: 16413138, RTC PCF8523 (68)
3/13/23 09:45:17z IoTaWatt 5.0, Firmware version 02_08_02
3/13/23 09:45:17z SPIFFS mounted.
3/13/23 19:45:17 Local time zone: +10:00
3/13/23 19:45:17 device name: IotaWatt
3/13/23 19:45:20 Connecting with WiFiManager.
3/13/23 19:45:28 HTTP server started
3/13/23 19:45:28 emoncms: Starting, interval:10, url:http://192.168.21.10:8080
3/13/23 19:45:28 WiFi connected. SSID=Skywalker, IP=192.168.21.66, channel=6, RSSI -86db
3/13/23 19:45:28 timeSync: service started.
3/13/23 19:45:28 statService: started.
3/13/23 19:45:28 Updater: service started. Auto-update class is MINOR
3/13/23 19:45:29 dataLog: service started.
3/13/23 19:45:30 dataLog: Last log entry 03/13/23 19:45:05
3/13/23 19:45:30 emoncms: Start posting at 03/13/23 18:09:50
3/13/23 19:45:31 Updater: Auto-update is current for class MINOR.
3/13/23 19:45:33 historyLog: service started.
3/13/23 19:45:33 historyLog: Last log entry 03/13/23 19:45:00

Before I power cycled it, the LEDs were flashing green constantly:

IoTaWatt - YouTube

Any ideas on what is happening, or how I can troubleshoot it?

These problems appear to be caused by poor WiFi signal.

Dam, the WiFi AP must be dying :frowning: it has been stable for the last 2 years.

Ahh well, I will source a new AP and do a bit of network upgrades, and hopefully get the RSSI back to a more reasonable level.