When did it stop working and what happened shortly before it? Can you find it in the logfile? Maybe related to an upgrade?
Yes I have the logfile and know when it stopped working. I copy the log file below:
Code: Select all
2023-01-07 13:31:43.283 RFLink: Temp + Humidity (Temp Chambre)
2023-01-07 13:31:43.313 Python: Appareils allumés:['Bouilloire_Grille pain']
2023-01-07 13:31:43.314 Python: puissance instantanée=692.0
2023-01-07 13:31:43.314 Python: vac:(datetime.datetime(2022, 12, 17, 10, 0), datetime.datetime(2023, 1, 1, 15, 0))
2023-01-07 13:31:55.748 Status: Incoming connection from: 192.168.1.68
2023-01-07 13:32:00.279 Python: Appareils allumés:['Bouilloire_Grille pain']
2023-01-07 13:32:00.279 Python: puissance instantanée=692.0
2023-01-07 13:32:00.280 Python: vac:(datetime.datetime(2022, 12, 17, 10, 0), datetime.datetime(2023, 1, 1, 15, 0))
2023-01-07 13:32:01.907 RFLink: General/kWh (Consommation)
2023-01-07 13:32:01.939 Python: Appareils allumés:['Bouilloire_Grille pain']
2023-01-07 13:32:01.940 Python: puissance instantanée=692.0
2023-01-07 13:32:01.940 Python: vac:(datetime.datetime(2022, 12, 17, 10, 0), datetime.datetime(2023, 1, 1, 15, 0))
2023-01-07 13:32:07.402 Status: Closing application!...
2023-01-07 13:32:07.402 Status: Stopping worker...
2023-01-07 13:32:07.417 Python: Appareils allumés:['Bouilloire_Grille pain']
2023-01-07 13:32:07.417 Python: puissance instantanée=692.0
2023-01-07 13:32:07.417 Python: vac:(datetime.datetime(2022, 12, 17, 10, 0), datetime.datetime(2023, 1, 1, 15, 0))
2023-01-07 13:32:07.417 Status: RxQueue: queue worker stopped...
2023-01-07 13:32:07.918 Status: WebServer(HTTP) stopped
2023-01-07 13:32:08.421 Status: WebServer(SSL) stopped
2023-01-07 13:32:08.423 Status: TCPServer: shared server stopped
2023-01-07 13:32:08.423 Status: Stopping all hardware...
2023-01-07 13:32:08.424 Status: Darksky: Worker stopped...
2023-01-07 13:32:08.426 Status: RFLink: Worker stopped...
2023-01-07 13:32:08.427 Status: Scheduler stopped...
2023-01-07 13:32:08.428 Status: EventSystem: Stopped...
2023-01-07 13:32:08.428 Status: EventSystem: Queue thread stopped...
2023-01-07 13:32:08.475 Status: EventSystem - Python stopped...
2023-01-07 13:32:08.476 Status: NotificationSystem: thread stopped...
2023-01-07 13:32:08.476 Status: PluginSystem: Exited work loop.
2023-01-07 13:32:08.503 Status: PluginSystem: Stopped.
2023-01-07 13:32:08.503 Status: Mainworker Stopped...
2023-01-07 13:32:09.790 Status: Domoticz V2022.2 (c)2012-2022 GizMoCuz
2023-01-07 13:32:09.790 Status: Build Hash: eea9db734, Date: 2022-11-05 12:05:35
2023-01-07 13:32:09.790 Status: Startup Path: /home/pi/domoticz/
2023-01-07 13:32:09.897 Sunrise: 07:56:00 SunSet: 17:24:00
2023-01-07 13:32:09.897 Day length: 09:28:00 Sun at south: 12:40:00
2023-01-07 13:32:09.897 Civil twilight start: 07:26:00 Civil twilight end: 17:54:00
2023-01-07 13:32:09.897 Nautical twilight start: 06:52:00 Nautical twilight end: 18:28:00
2023-01-07 13:32:09.897 Astronomical twilight start: 06:19:00 Astronomical twilight end: 19:00:00
2023-01-07 13:32:10.003 Status: PluginSystem: Started, Python version '3.7.3', 1 plugin definitions loaded.
2023-01-07 13:32:10.011 Active notification Subsystems: (0/13)
2023-01-07 13:32:10.012 Status: WebServer(HTTP) startup failed on address :: with port: 8080: resolve: Host not found (authoritative) [asio.netdb:1], trying ::
2023-01-07 13:32:10.013 Status: WebServer(HTTP) startup failed on address :: with port: 8080: resolve: Host not found (authoritative) [asio.netdb:1], trying 0.0.0.0
2023-01-07 13:32:10.013 Status: WebServer(HTTP) started on address: 0.0.0.0 with port 8080
2023-01-07 13:32:10.026 Status: WebServer(SSL) startup failed on address :: with port: 443: resolve: Host not found (authoritative) [asio.netdb:1], trying ::
2023-01-07 13:32:10.029 Status: WebServer(SSL) startup failed on address :: with port: 443: resolve: Host not found (authoritative) [asio.netdb:1], trying 0.0.0.0
2023-01-07 13:32:10.032 Status: WebServer(SSL) started on address: 0.0.0.0 with port 443
2023-01-07 13:32:10.036 Starting shared server on: 0.0.0.0:6144
2023-01-07 13:32:10.036 Status: TCPServer: shared server started...
2023-01-07 13:32:10.037 Status: RxQueue: queue worker started...
2023-01-07 13:32:12.038 Status: Darksky: Started...
2023-01-07 13:32:12.038 Status: NotificationSystem: thread started...
2023-01-07 13:32:12.039 Status: EventSystem: reset all events...
2023-01-07 13:32:12.041 Status: EventSystem: reset all device statuses...
2023-01-07 13:32:12.203 Status: Python EventSystem: Initializing event module.
2023-01-07 13:32:12.204 Status: EventSystem: Started
2023-01-07 13:32:12.204 Status: EventSystem: Queue thread started...
2023-01-07 13:32:12.239 Status: RFLink: Using serial port: /dev/ttyUSB_RFX
2023-01-07 13:32:12.284 Error: Traceback (most recent call last):
2023-01-07 13:32:12.284 Error: File "script_general_Oct_2022", line 304, in <module>
2023-01-07 13:32:12.284 Error: File "script_general_Oct_2022", line 252, in thermostat_chauffage_salon
2023-01-07 13:32:12.285 Error: NameError: name 'date_retour' is not defined
at 13:31 it was working fine and then it stops. When it restarted at 13:32 errors started to appear. I am not sure why it stops.
I know I have been updating my raspberry pi this week but I am not sure it was at this particular moment. I tried to investigate when it was using this page
https://serverfault.com/questions/20747 ... th-apt-get and I ended up using the following command
Code: Select all
ls -lt --time-style="long-iso" /var/log/apt
I obtained the output
Code: Select all
-rw-r--r-- 1 root root 175 2023-01-08 16:50 history.log
-rw-r----- 1 root adm 940 2023-01-08 16:50 term.log
-rw-r--r-- 1 root root 68960 2023-01-08 16:50 eipp.log.xz
-rw-r--r-- 1 root root 476 2023-01-05 07:16 history.log.1.gz
-rw-r----- 1 root adm 1059 2023-01-05 07:16 term.log.1.gz
-rw-r--r-- 1 root root 402 2022-12-01 18:47 history.log.2.gz
It seems to be the list of dates when I updated my raspberry pi, but I am not totally sure. Can you confirm? If it is, then the date of the restart in the logfile and the date of update do not agree.