Bonjour,
Je me permets de revenir car même si le workaround avec le test sur la variable TIME fonctionne (toutes les 2 min…), j’aimerais comprendre.
Régulièrement le service semble tomber, j’ai ces logs :
***Fonctionnement OK***
2022-08-25 11:50:08,321 - Thread-1 - myhomescs_command:42 - DEBUG - Received data : http://127.0.0.1:80/plugins/myhomescs/core/php/jeemyhomescs.php => {'packettype': '00', 'apikey': 'xxx', 'trame': 'YZY1ZZ'}
2022-08-25 11:50:08,335 - Thread-2 - myhomescs_command:42 - DEBUG - Received data : http://127.0.0.1:80/plugins/myhomescs/core/php/jeemyhomescs.php => {'packettype': '00', 'apikey': 'xxx', 'trame': 'YZY1ZZ'}
2022-08-25 11:52:02,444 - Thread-3 - myhomescs_command:42 - DEBUG - Received data : http://127.0.0.1:80/plugins/myhomescs/core/php/jeemyhomescs.php => {'packettype': '00', 'apikey': 'xxx', 'trame': 'YZ13YY0Y10Y49Y40Y001ZZ'}
2022-08-25 11:52:21,908 - Thread-4 - myhomescs_command:42 - DEBUG - Received data : http://127.0.0.1:80/plugins/myhomescs/core/php/jeemyhomescs.php => {'packettype': '00', 'apikey': 'xxx', 'trame': 'YZ13YYZ1Y04Y25Y08Y2022ZZ'}
2022-08-25 11:52:21,923 - Thread-5 - myhomescs_command:42 - DEBUG - Received data : http://127.0.0.1:80/plugins/myhomescs/core/php/jeemyhomescs.php => {'packettype': '00', 'apikey': 'xxx', 'trame': 'YZ13YYZ0Y10Y50Y00Y001ZZ'}
2022-08-25 11:54:02,433 - Thread-6 - myhomescs_command:42 - DEBUG - Received data : http://127.0.0.1:80/plugins/myhomescs/core/php/jeemyhomescs.php => {'packettype': '00', 'apikey': 'xxx', 'trame': 'YZ13YY0Y10Y51Y40Y001ZZ'}
2022-08-25 11:54:16,700 - Thread-7 - myhomescs_command:42 - DEBUG - Received data : http://127.0.0.1:80/plugins/myhomescs/core/php/jeemyhomescs.php => {'packettype': '00', 'apikey': 'xxx', 'trame': 'YZ13YY0Y10Y51Y55Y001ZZ'}
2022-08-25 11:54:38,607 - Thread-8 - myhomescs_command:42 - DEBUG - Received data : http://127.0.0.1:80/plugins/myhomescs/core/php/jeemyhomescs.php => {'packettype': '00', 'apikey': 'xxx', 'trame': 'YZ13YY0Y10Y52Y17Y001ZZ'}
2022-08-25 11:54:48,009 - Thread-9 - myhomescs_command:42 - DEBUG - Received data : http://127.0.0.1:80/plugins/myhomescs/core/php/jeemyhomescs.php => {'packettype': '00', 'apikey': 'xxx', 'trame': 'YZ13YY0Y10Y52Y26Y001ZZ'}
2022-08-25 11:55:58,898 - Thread-10 - myhomescs_command:42 - DEBUG - Received data : http://127.0.0.1:80/plugins/myhomescs/core/php/jeemyhomescs.php => {'packettype': '00', 'apikey': 'xxx', 'trame': 'YZ13YY0Y10Y53Y37Y001ZZ'}
2022-08-25 11:57:02,221 - Thread-11 - myhomescs_command:42 - DEBUG - Received data : http://127.0.0.1:80/plugins/myhomescs/core/php/jeemyhomescs.php => {'packettype': '00', 'apikey': 'xxx', 'trame': 'YZ13YY0Y10Y54Y40Y001ZZ'}
***Reception Signal 15 ? --> Arrêt propre malgré tout ***
2022-08-25 11:58:23,110 - MainThread - myhomescsevent:162 - DEBUG - Signal 15 caught, exiting...
2022-08-25 11:58:23,110 - MainThread - myhomescsevent:148 - DEBUG - Shutdown
2022-08-25 11:58:23,110 - MainThread - myhomescsevent:151 - DEBUG - Removing PID Event file /tmp/myhomescs.pid
2022-08-25 11:58:23,110 - MainThread - myhomescsevent:154 - DEBUG - Exit 0
***Redémarrage du script (suite au test de la variable TIME)***
2022-08-25 11:58:23,614 - MainThread - myhomescsevent:448 - DEBUG - Python version: 2.7.16
2022-08-25 11:58:23,614 - MainThread - myhomescsevent:449 - DEBUG - MYHOMESCSEVENT Version: 0.1
2022-08-25 11:58:23,614 - MainThread - myhomescsevent:450 - DEBUG - Date: 2017-02-02 20:33:10 +0200
Merci pour votre aide.
Guillaume