Wifi IP changes

Hello there, It seems that the device IP changes after a while. I usually use http://192.168.2.27/ (reserved) to access the device or http://energy.local/. After a while it seems that the device restarts and the ip changes to

image

and the influxdb gets an error:
image

Restarting my router seems to fix the problem but it comes back after a few days.

image

Any idea what would cause this?

Probably the router, but can you post the message log?

Now it seems like loading the http site takes a very long time.

Here are the logs; I changed the update settings from Alpha to Major to make sure it wasn’t some update that applied the ip change.

1/03/23 19:55:21 Updater: update tables from 0.0.6 to 0.0.7
1/03/23 20:55:27 Updater: update tables from 0.0.6 to 0.0.7
1/03/23 21:55:30 Updater: update tables from 0.0.6 to 0.0.7
1/03/23 22:55:33 Updater: update tables from 0.0.6 to 0.0.7
1/03/23 23:55:41 Updater: update tables from 0.0.6 to 0.0.7
1/04/23 00:55:48 Updater: update tables from 0.0.6 to 0.0.7
1/04/23 01:55:56 Updater: update tables from 0.0.6 to 0.0.7
1/04/23 02:55:57 Updater: update tables from 0.0.6 to 0.0.7
1/04/23 03:56:03 Updater: update tables from 0.0.6 to 0.0.7
1/04/23 04:56:08 Updater: update tables from 0.0.6 to 0.0.7
1/04/23 05:56:16 Updater: update tables from 0.0.6 to 0.0.7
1/04/23 06:56:20 Updater: update tables from 0.0.6 to 0.0.7
1/04/23 07:56:25 Updater: update tables from 0.0.6 to 0.0.7
1/04/23 08:56:33 Updater: update tables from 0.0.6 to 0.0.7
1/04/23 09:56:41 Updater: update tables from 0.0.6 to 0.0.7
1/04/23 10:56:43 Updater: update tables from 0.0.6 to 0.0.7
1/04/23 11:56:49 Updater: update tables from 0.0.6 to 0.0.7
1/04/23 12:56:57 Updater: update tables from 0.0.6 to 0.0.7
1/04/23 13:56:59 Updater: update tables from 0.0.6 to 0.0.7
1/04/23 14:57:07 Updater: update tables from 0.0.6 to 0.0.7
1/04/23 15:57:13 Updater: update tables from 0.0.6 to 0.0.7
1/04/23 16:57:16 Updater: update tables from 0.0.6 to 0.0.7
1/04/23 17:57:22 Updater: update tables from 0.0.6 to 0.0.7
1/04/23 18:57:28 Updater: update tables from 0.0.6 to 0.0.7
1/04/23 19:57:34 Updater: update tables from 0.0.6 to 0.0.7
1/04/23 20:57:40 Updater: update tables from 0.0.6 to 0.0.7
1/04/23 21:57:46 Updater: update tables from 0.0.6 to 0.0.7
1/04/23 22:57:52 Updater: update tables from 0.0.6 to 0.0.7
1/04/23 23:57:58 Updater: update tables from 0.0.6 to 0.0.7
1/05/23 00:58:04 Updater: update tables from 0.0.6 to 0.0.7
1/05/23 01:58:10 Updater: update tables from 0.0.6 to 0.0.7
1/05/23 02:58:16 Updater: update tables from 0.0.6 to 0.0.7
1/05/23 03:58:22 Updater: update tables from 0.0.6 to 0.0.7
1/05/23 04:58:28 Updater: update tables from 0.0.6 to 0.0.7
1/05/23 05:58:34 Updater: update tables from 0.0.6 to 0.0.7
1/05/23 06:58:41 Updater: update tables from 0.0.6 to 0.0.7
1/05/23 07:58:47 Updater: update tables from 0.0.6 to 0.0.7
1/05/23 08:58:53 Updater: update tables from 0.0.6 to 0.0.7
1/05/23 09:58:59 Updater: update tables from 0.0.6 to 0.0.7
1/05/23 10:59:05 Updater: update tables from 0.0.6 to 0.0.7
1/05/23 11:59:11 Updater: update tables from 0.0.6 to 0.0.7
1/05/23 12:53:08 WiFi disconnected.
1/05/23 12:59:34 WiFi connected. SSID=BELL939, IP=192.168.2.27, channel=1, RSSI -51db
1/05/23 12:59:36 Updater: update tables from 0.0.6 to 0.0.7
1/05/23 13:59:42 Updater: update tables from 0.0.6 to 0.0.7
1/05/23 14:59:49 Updater: update tables from 0.0.6 to 0.0.7
1/05/23 15:59:55 Updater: update tables from 0.0.6 to 0.0.7
1/05/23 17:00:01 Updater: update tables from 0.0.6 to 0.0.7
1/05/23 18:00:08 Updater: update tables from 0.0.6 to 0.0.7
1/05/23 19:00:14 Updater: update tables from 0.0.6 to 0.0.7
1/05/23 20:00:20 Updater: update tables from 0.0.6 to 0.0.7

** Restart **

SD initialized.
1/07/23 13:26:20z Real Time Clock is running. Unix time 1673097980 
1/07/23 13:26:20z Reset reason: Exception
1/07/23 13:26:20z Trace:  18:3, 18:2, 18:3, 18:2, 18:3, 18:2, 18:3, 18:2, 18:3, 18:2, 18:3, 18:2, 18:3, 18:2, 18:3, 18:2, 18:3, 18:2, 18:3, 18:4, 18:5, 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:2, 21:2
1/07/23 13:26:20z ESP8266 ID: 504037, RTC M41T81 (68)
1/07/23 13:26:20z IoTaWatt 5.0, Firmware version 02_08_01
1/07/23 13:26:20z SPIFFS mounted.
1/07/23 08:26:20 Local time zone: -5:00, using DST/BST when in effect.
1/07/23 08:26:20 device name: energy
1/07/23 08:26:20 HTTP server started
1/07/23 08:26:20 influxDB_v2: Starting, interval:10, url:http://192.168.2.202:8086
1/07/23 08:26:20 timeSync: service started.
1/07/23 08:26:20 statService: started.
1/07/23 08:26:20 dataLog: service started.
1/07/23 08:26:22 dataLog: Last log entry 01/07/23 08:26:10
1/07/23 08:26:25 historyLog: service started.
1/07/23 08:26:25 historyLog: Last log entry 01/07/23 08:26:00
1/07/23 08:30:56 WiFi connected. SSID=BELL939, IP=169.254.230.176, channel=1, RSSI -51db
1/07/23 08:30:56 Updater: service started. Auto-update class is ALPHA
1/07/23 11:49:48 Restart command received.

** Restart **

SD initialized.
1/07/23 16:49:50z Real Time Clock is running. Unix time 1673110190 
1/07/23 16:49:50z Reset reason: Software/System restart
1/07/23 16:49:50z Trace:  31:1, 1:6[6], 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:3, 1:1[6], 1:2[7], 9:0[7], 9:0, 9:1, 8:4, 8:6, 8:8, 9:3, 9:5, 9:9, 1:3, 10:2, 10:3
1/07/23 16:49:50z ESP8266 ID: 504037, RTC M41T81 (68)
1/07/23 16:49:50z IoTaWatt 5.0, Firmware version 02_08_01
1/07/23 16:49:50z SPIFFS mounted.
1/07/23 11:49:50 Local time zone: -5:00, using DST/BST when in effect.
1/07/23 11:49:50 device name: energy
1/07/23 11:49:50 HTTP server started
1/07/23 11:49:50 influxDB_v2: Starting, interval:10, url:http://192.168.2.202:8086
1/07/23 11:49:50 timeSync: service started.
1/07/23 11:49:50 statService: started.
1/07/23 11:49:50 dataLog: service started.
1/07/23 11:49:51 dataLog: Last log entry 01/07/23 11:49:45
1/07/23 11:49:55 historyLog: service started.
1/07/23 11:49:55 historyLog: Last log entry 01/07/23 11:49:00
1/07/23 11:54:01 WiFi connected. SSID=BELL939, IP=169.254.230.176, channel=1, RSSI -52db
1/07/23 11:54:01 Updater: service started. Auto-update class is ALPHA
1/07/23 12:03:43 WiFi disconnected.
1/07/23 12:03:51 WiFi connected. SSID=BELL939, IP=169.254.230.176, channel=6, RSSI -81db

** Restart **

SD initialized.
1/07/23 17:04:08z Real Time Clock is running. Unix time 1673111048 
1/07/23 17:04:08z Reset Reason: Power-fail restart.
1/07/23 17:04:08z ESP8266 ID: 504037, RTC M41T81 (68)
1/07/23 17:04:08z IoTaWatt 5.0, Firmware version 02_08_01
1/07/23 17:04:08z SPIFFS mounted.
1/07/23 12:04:08 Local time zone: -5:00, using DST/BST when in effect.
1/07/23 12:04:08 device name: energy
1/07/23 12:04:11 Connecting with WiFiManager.

** Restart **

SD initialized.
1/07/23 17:07:50z Real Time Clock is running. Unix time 1673111270 
1/07/23 17:07:50z Reset Reason: Power-fail restart.
1/07/23 17:07:50z ESP8266 ID: 504037, RTC M41T81 (68)
1/07/23 17:07:50z IoTaWatt 5.0, Firmware version 02_08_01
1/07/23 17:07:50z SPIFFS mounted.
1/07/23 12:07:50 Local time zone: -5:00, using DST/BST when in effect.
1/07/23 12:07:50 device name: energy
1/07/23 12:07:53 HTTP server started
1/07/23 12:07:53 influxDB_v2: Starting, interval:10, url:http://192.168.2.202:8086
1/07/23 12:07:53 WiFi connected. SSID=BELL939, IP=192.168.2.27, channel=1, RSSI -56db
1/07/23 12:07:53 timeSync: service started.
1/07/23 12:07:53 statService: started.
1/07/23 12:07:53 Updater: service started. Auto-update class is MAJOR
1/07/23 12:07:53 dataLog: service started.
1/07/23 12:07:54 dataLog: Last log entry 01/07/23 12:04:00
1/07/23 12:07:56 Updater: Update from 02_08_01 to 02_07_05
1/07/23 12:07:56 Updater: download 02_07_05
1/07/23 12:08:04 Updater: Release downloaded 8307ms, size 951104
1/07/23 12:08:04 influxDB_v2: Resume posting 01/07/23 08:26:00
1/07/23 12:08:04 historyLog: service started.
1/07/23 12:08:05 historyLog: Last log entry 01/07/23 12:04:00
1/07/23 12:08:17 Updater: signature verified
1/07/23 12:08:26 Updater: firmware upgraded to version 02_07_05
1/07/23 12:08:26 Updater: Firmware updated, restarting.

** Restart **

SD initialized.
1/07/23 17:08:36z Real Time Clock is running. Unix time 1673111316 
1/07/23 17:08:36z Reset reason: Software/System restart
1/07/23 17:08:36z Trace:  9:9, 1:3, 1:3, 1:6[1], 1:6[2], 1:6[2], 1:6[2], 1:6[2], 1:6[2], 1:6[3], 1:5[19], 1:6[4], 1:6[6], 1:1[8], 1:2, 9:0, 9:0, 8:4, 8:6, 8:8, 1:3, 1:3, 1:6[1], 1:6[2], 1:6[2], 1:6[2], 1:6[2], 1:6[3], 1:5[5], 1:6[4], 5:0, 5:7
1/07/23 17:08:36z ESP8266 ID: 504037, RTC M41T81 (68)
1/07/23 17:08:36z IoTaWatt 5.0, Firmware version 02_07_05
1/07/23 17:08:36z Updater: Installing update files for version 02_07_05
1/07/23 17:08:36z Updater: Installing GRAPH.HTM
1/07/23 17:08:36z Updater: Installing GRAPH.JS
1/07/23 17:08:36z Updater: Installing GRAPH2.HTM
1/07/23 17:08:37z Updater: Installing GRAPH2.JS
1/07/23 17:08:37z Updater: Installing INDEX.HTM
1/07/23 17:08:39z Updater: Installing TABLES.TXT
1/07/23 17:08:39z Updater: Installing CNFSTYLE.CSS
1/07/23 17:08:39z Updater: Installing EDIT.HTM
1/07/23 17:08:39z Updater: Installing FAVICON.ICO
1/07/23 17:08:40z Updater: Installation complete.
1/07/23 17:08:40z SPIFFS mounted.
1/07/23 12:08:40 Local time zone: -5:00, using DST/BST when in effect.
1/07/23 12:08:40 device name: energy
1/07/23 12:08:40 HTTP server started
1/07/23 12:08:40 influxDB_v2: Starting, interval:10, url:http://192.168.2.202:8086
1/07/23 12:08:40 timeSync: service started.
1/07/23 12:08:40 statService: started.
1/07/23 12:08:41 dataLog: service started.
1/07/23 12:08:41 dataLog: Last log entry 01/07/23 12:08:05
1/07/23 12:08:45 Updater: service started. Auto-update class is MAJOR
1/07/23 12:08:45 WiFi connected. SSID=BELL939, IP=192.168.2.27, channel=1, RSSI -55db
1/07/23 12:08:45 MDNS responder started for hostname energy
1/07/23 12:08:45 LLMNR responder started for hostname energy
1/07/23 12:08:45 influxDB_v2: Resume posting 01/07/23 08:26:00
1/07/23 12:08:46 historyLog: service started.
1/07/23 12:08:46 historyLog: Last log entry 01/07/23 12:04:00
1/07/23 12:08:47 Updater: Auto-update is current for class MAJOR.
1/07/23 12:08:47 Updater: update tables from 0.0.4 to 0.0.7
1/07/23 12:16:21 WiFi disconnected.
1/07/23 12:19:27 WiFi connected. SSID=BELL939, IP=192.168.2.27, channel=11, RSSI -81db
1/07/23 12:26:51 WiFi disconnected.
1/07/23 12:26:52 WiFi connected. SSID=BELL939, IP=192.168.2.27, channel=11, RSSI -82db

the 2 last disconnected are from a router restart

I believe it’s your WiFi that is causing the problem. It appears that you may have multiple APs. I see at least three channels used: 1, 6 and 11. Channel 1 is the only one that has a decent RSSI. Channel 6 appears to be associated with the different IP address. Channel 11 assigned the 192.168…. IP but has poor RSSI. that was the last connection in the log so I’m not surprised you have low bandwidth there.

I’ve long since given up on consulting with users on their WiFi. All I can say is that it is best to fix the channel and IP used for the IoTaWatt with whatever facility the router provides. Most modern routers can accommodate that. Channel 1 with the 192.168.2.27 IP appears to work best.

thank you for taking the time to answer, i’ll check that