I found the file on the card, it was empty. I tried deleting it first, but that just triggered another error pattern (“G.R.R.R…”) which decoded to, lo and behold, missing config.
Next, I have placed the default config from the github, which finally made the IotaWatt happy, if little lost, since I obviously had to reconstruct my all my settings. Well, now I keep a backup of that precious file with all my inputs configured.
Now to the failure mode: Why do you think it was poor wifi? I have had the setup working the same way (network-wise) for last 3 weeks, no connectivity issues and the data has happily streamed to my influxDB. I was doing some configuration changes when this happened, namely adding more streams to the influxDB export - I have wired the PV inverter CT the day before and wanted to adjust the reporting, so I have modified both Outputs and Web several times before the issue. Are you suggesting that a bad connection during config modification could cause a config file corruption? That could easily become a support nightmare for you with the product sales up. Especially when such a failure mode brings the device to the state where the user can’t fix it over the web interface. At the risk of stating the obvious, it would be much better to boot to a minimum working state (no logging, web up allowing config reset or the file manager), or at least resetting to factory defaults. (not complaining, I can deal with stuff and in general I am very pleased with the functionality, especially since I haven’t had to design and code it all myself)
Relevant parts of the log are below:
7/07/19 09:44:27 WiFi disconnected.
7/07/19 09:46:04 WiFi connected. SSID=Doma, IP=192.168.55.253, channel=11, RSSI -77db
7/07/19 11:27:38 influxDB: Restart. Last post 07/07/19 11:27:20
7/07/19 11:27:38 influxDB: started, url=192.168.55.23:8086, db=iotawatt, interval=10
7/07/19 11:27:38 influxDB: Start posting at 07/07/19 11:27:30
7/07/19 11:27:50 influxDB: Stopped. Last post 07/07/19 11:27:20
7/07/19 11:29:03 influxDB: started, url=192.168.55.23:8086, db=iotawatt, interval=10
7/07/19 11:29:04 influxDB: Start posting at 06/01/19 01:00:10
7/07/19 18:44:53 influxDB: Restart. Last post 07/07/19 18:44:40
7/07/19 18:44:53 influxDB: started, url=192.168.55.23:8086, db=iotawatt, interval=10
7/07/19 18:44:54 influxDB: Start posting at 07/07/19 18:44:50
** Restart **
SD initialized.
7/08/19 02:35:54z Real Time Clock is running. Unix time 1562553354
7/08/19 02:35:54z Reset reason: Hardware Watchdog
7/08/19 02:35:54z Trace: 8:8, 8:9, 9:3, 9:5, 9:9, 1:2, 1:3, 1:4, 1:5[19], 1:6, 1:1[1], 1:2[2], 9:0[2], 9:0, 9:1, 8:4, 8:6, 8:8, 8:9, 9:3, 9:5, 9:9, 1:2, 1:3, 1:4, 1:5[21], 1:6, 1:1[2], 1:2[3], 9:0[3], 9:0, 9:1
7/08/19 02:35:54z ESP8266 ChipID: 2518867
7/08/19 02:35:54z IoTaWatt 5.0, Firmware version 02_04_00
7/08/19 02:35:54z SPIFFS mounted.
7/07/19 19:35:55 Local time zone: -8:00
7/07/19 19:35:55 Using Daylight Saving Time (BST) when in effect.
7/07/19 19:35:55 device name: Merak
7/07/19 19:35:55 MDNS responder started for hostname Merak
7/07/19 19:35:55 LLMNR responder started for hostname Merak
7/07/19 19:35:55 HTTP server started
7/07/19 19:35:55 timeSync: service started.
7/07/19 19:35:56 statService: started.
7/07/19 19:35:56 Updater: service started. Auto-update class is MINOR
7/07/19 19:35:56 dataLog: service started.
7/07/19 19:35:56 dataLog: Last log entry 07/07/19 19:35:45
7/07/19 19:35:56 historyLog: service started.
7/07/19 19:35:57 historyLog: Last log entry 07/07/19 19:35:00
7/07/19 19:35:57 WiFi connected. SSID=Doma, IP=192.168.55.253, channel=11, RSSI -81db
7/07/19 19:35:59 Updater: Auto-update is current for class MINOR.
7/07/19 19:36:00 influxDB: started, url=192.168.55.23:8086, db=iotawatt, interval=10
7/07/19 19:36:00 influxDB: Start posting at 07/07/19 19:35:50
7/07/19 23:36:34 Updater: Invalid response from server. HTTPcode: -11
7/08/19 21:38:38 Updater: Invalid response from server. HTTPcode: -11
7/09/19 08:39:33 Updater: Invalid response from server. HTTPcode: -4
7/09/19 20:35:34 WiFi disconnected.
7/09/19 20:37:01 WiFi connected. SSID=Doma, IP=192.168.55.253, channel=1, RSSI -80db
7/12/19 02:45:29 Updater: Invalid response from server. HTTPcode: -14
7/13/19 17:42:56 influxDB: Restart. Last post 07/13/19 17:42:40
7/13/19 17:42:56 influxDB: started, url=192.168.55.23:8086, db=iotawatt, interval=10
7/13/19 17:42:57 influxDB: Start posting at 07/13/19 17:42:50
** Restart **
SD initialized.
7/14/19 03:24:43z Real Time Clock is running. Unix time 1563074683
7/14/19 03:24:43z Reset reason: Exception
7/14/19 03:24:43z Trace: 15:1, 15:1, 15:0, 15:1, 15:1, 15:0, 15:1, 15:1, 15:0, 15:1, 15:1, 15:0, 15:1, 15:1, 15:0, 15:1, 15:1, 15:0, 15:1, 15:1, 15:0, 15:1, 15:1, 15:0, 15:1, 15:1, 15:0, 15:1, 15:1, 15:0, 15:1, 15:1
7/14/19 03:24:43z ESP8266 ChipID: 2518867
7/14/19 03:24:43z IoTaWatt 5.0, Firmware version 02_04_00
7/14/19 03:24:43z SPIFFS mounted.
7/13/19 20:24:44 Local time zone: -8:00
7/13/19 20:24:44 Using Daylight Saving Time (BST) when in effect.
7/13/19 20:24:44 device name: Merak
7/13/19 20:24:44 MDNS responder started for hostname Merak
7/13/19 20:24:44 LLMNR responder started for hostname Merak
7/13/19 20:24:44 HTTP server started
7/13/19 20:24:44 timeSync: service started.
7/13/19 20:24:45 statService: started.
7/13/19 20:24:45 dataLog: service started.
7/13/19 20:24:45 dataLog: Last log entry 07/13/19 20:24:40
7/13/19 20:24:45 historyLog: service started.
7/13/19 20:24:46 historyLog: Last log entry 07/13/19 20:24:00
7/13/19 20:24:47 Updater: service started. Auto-update class is MINOR
7/13/19 20:24:48 WiFi connected. SSID=Doma, IP=192.168.55.253, channel=1, RSSI -78db
7/13/19 20:24:48 Updater: Auto-update is current for class MINOR.
7/13/19 20:24:49 influxDB: started, url=192.168.55.23:8086, db=iotawatt, interval=10
7/13/19 20:24:49 influxDB: Start posting at 07/13/19 20:23:50
7/14/19 08:08:15 influxDB: Restart. Last post 07/14/19 08:07:40
7/14/19 08:08:15 influxDB: started, url=192.168.55.23:8086, db=iotawatt, interval=10
7/14/19 08:08:16 influxDB: Start posting at 07/14/19 08:07:50
** Restart **
SD initialized.
7/14/19 16:29:02z Real Time Clock is running. Unix time 1563121742
7/14/19 16:29:02z Power failure detected.
7/14/19 16:29:02z Reset reason: External System
7/14/19 16:29:02z ESP8266 ChipID: 2518867
7/14/19 16:29:02z IoTaWatt 5.0, Firmware version 02_04_00
7/14/19 16:29:02z SPIFFS mounted.
7/14/19 16:29:02z Config file parse failed.
7/14/19 16:29:02z Program halted.