supermat / PluginDomoticzFreebox

13 stars 12 forks source link

The plugin is not working anymore after server update from Free #4

Closed biwizit closed 4 years ago

biwizit commented 4 years ago

Hello,

The plugin were very good (thank you !) until today. Then, my Freebox app forced me a reboot of the server because of an update from Free and unfortunately, the plugin is not working anymore.

I have the following error messages :

2020-08-17 15:32:06.633 Error: (Freebox) 'onHeartbeat' failed 'HTTPError'. 
2020-08-17 15:32:06.633 Error: (Freebox) ----> Line 307 in '/home/pi/domoticz/plugins/PluginDomoticzFreebox/plugin.py', function onHeartbeat
2020-08-17 15:32:06.633 Error: (Freebox) ----> Line 239 in '/home/pi/domoticz/plugins/PluginDomoticzFreebox/plugin.py', function onHeartbeat
2020-08-17 15:32:06.633 Error: (Freebox) ----> Line 90 in '/home/pi/domoticz/plugins/PluginDomoticzFreebox/freebox.py', function __init__
2020-08-17 15:32:06.633 Error: (Freebox) ----> Line 73 in '/home/pi/domoticz/plugins/PluginDomoticzFreebox/freebox.py', function _mksession
2020-08-17 15:32:06.633 Error: (Freebox) ----> Line 41 in '/home/pi/domoticz/plugins/PluginDomoticzFreebox/freebox.py', function _com
2020-08-17 15:32:06.633 Error: (Freebox) ----> Line 222 in '/usr/lib/python3.7/urllib/request.py', function urlopen
2020-08-17 15:32:06.633 Error: (Freebox) ----> Line 531 in '/usr/lib/python3.7/urllib/request.py', function open
2020-08-17 15:32:06.633 Error: (Freebox) ----> Line 641 in '/usr/lib/python3.7/urllib/request.py', function http_response
2020-08-17 15:32:06.633 Error: (Freebox) ----> Line 569 in '/usr/lib/python3.7/urllib/request.py', function error
2020-08-17 15:32:06.633 Error: (Freebox) ----> Line 503 in '/usr/lib/python3.7/urllib/request.py', function _call_chain
2020-08-17 15:32:06.633 Error: (Freebox) ----> Line 649 in '/usr/lib/python3.7/urllib/request.py', function http_error_default

Any idea about the issue ? Thank you in advance.

Regards.

supermat commented 4 years ago

Try with a new token by remove existing in the plugin params.

biwizit commented 4 years ago

I tried but did not succeed (see below, even when confirming on the screen of the Freebox server). Still investigating on my side.

2020-08-17 16:17:29.889 Status: (Freebox) Stop directive received.
2020-08-17 16:17:29.889 Status: (Freebox) Exiting work loop.
2020-08-17 16:17:30.189 Status: (Freebox) Stopping threads.
2020-08-17 16:17:30.189 Status: (Freebox) Stopped.
2020-08-17 16:17:30.189 Status: (Freebox) Started.
2020-08-17 16:17:30.624 Status: (Freebox) Entering work loop.
2020-08-17 16:17:30.624 Status: (Freebox) Initialized version 1.1.2, author 'supermat'
2020-08-17 16:17:35.630 (Freebox) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE ALL
2020-08-17 16:17:35.630 (Freebox) 'HardwareID':'21'
2020-08-17 16:17:35.631 (Freebox) 'HomeFolder':'/home/pi/domoticz/plugins/PluginDomoticzFreebox/'
2020-08-17 16:17:35.631 (Freebox) 'StartupFolder':'/home/pi/domoticz/'
2020-08-17 16:17:35.631 (Freebox) 'UserDataFolder':'/home/pi/domoticz/'
2020-08-17 16:17:35.631 (Freebox) 'Database':'/home/pi/domoticz/domoticz.db'
2020-08-17 16:17:35.631 (Freebox) 'Language':'fr'
2020-08-17 16:17:35.631 (Freebox) 'Version':'1.1.2'
2020-08-17 16:17:35.631 (Freebox) 'Author':'supermat'
2020-08-17 16:17:35.631 (Freebox) 'Name':'Freebox'
2020-08-17 16:17:35.631 (Freebox) 'Address':'http://mafreebox.free.fr'
2020-08-17 16:17:35.631 (Freebox) 'Port':'80'
2020-08-17 16:17:35.631 (Freebox) 'Key':'Freebox'
2020-08-17 16:17:35.631 (Freebox) 'Mode6':'Debug'
2020-08-17 16:17:35.631 (Freebox) 'DomoticzVersion':'2020.2'
2020-08-17 16:17:35.631 (Freebox) 'DomoticzHash':'b63341bc0'
2020-08-17 16:17:35.631 (Freebox) 'DomoticzBuildTime':'2020-04-26 13:47:55'
2020-08-17 16:17:35.631 (Freebox) Device count: 8
2020-08-17 16:17:35.632 (Freebox) Device: 1 - ID: 153, Name: 'Freebox - Utilisation Disque dur', nValue: 7, sValue: '7.1'
2020-08-17 16:17:35.632 (Freebox) Device ID: '153'
2020-08-17 16:17:35.632 (Freebox) Device Name: 'Freebox - Utilisation Disque dur'
2020-08-17 16:17:35.632 (Freebox) Device nValue: 7
2020-08-17 16:17:35.632 (Freebox) Device sValue: '7.1'
2020-08-17 16:17:35.632 (Freebox) Device LastLevel: 0
2020-08-17 16:17:35.632 (Freebox) Options: '{}'
2020-08-17 16:17:35.632 (Freebox) Device: 2 - ID: 154, Name: 'Freebox - System temp_cpub', nValue: 67, sValue: '67'
2020-08-17 16:17:35.632 (Freebox) Device ID: '154'
2020-08-17 16:17:35.632 (Freebox) Device Name: 'Freebox - System temp_cpub'
2020-08-17 16:17:35.632 (Freebox) Device nValue: 67
2020-08-17 16:17:35.632 (Freebox) Device sValue: '67'
2020-08-17 16:17:35.632 (Freebox) Device LastLevel: 0
2020-08-17 16:17:35.632 (Freebox) Options: '{}'
2020-08-17 16:17:35.632 (Freebox) Device: 3 - ID: 155, Name: 'Freebox - System temp_sw', nValue: 54, sValue: '54'
2020-08-17 16:17:35.632 (Freebox) Device ID: '155'
2020-08-17 16:17:35.632 (Freebox) Device Name: 'Freebox - System temp_sw'
2020-08-17 16:17:35.632 (Freebox) Device nValue: 54
2020-08-17 16:17:35.632 (Freebox) Device sValue: '54'
2020-08-17 16:17:35.633 (Freebox) Device LastLevel: 0
2020-08-17 16:17:35.633 (Freebox) Options: '{}'
2020-08-17 16:17:35.633 (Freebox) Device: 4 - ID: 156, Name: 'Freebox - System temp_cpum', nValue: 64, sValue: '64'
2020-08-17 16:17:35.633 (Freebox) Device ID: '156'
2020-08-17 16:17:35.633 (Freebox) Device Name: 'Freebox - System temp_cpum'
2020-08-17 16:17:35.633 (Freebox) Device nValue: 64
2020-08-17 16:17:35.633 (Freebox) Device sValue: '64'
2020-08-17 16:17:35.633 (Freebox) Device LastLevel: 0
2020-08-17 16:17:35.633 (Freebox) Options: '{}'
2020-08-17 16:17:35.633 (Freebox) Device: 5 - ID: 157, Name: 'Freebox - WIFI On/Off', nValue: 1, sValue: '1'
2020-08-17 16:17:35.633 (Freebox) Device ID: '157'
2020-08-17 16:17:35.633 (Freebox) Device Name: 'Freebox - WIFI On/Off'
2020-08-17 16:17:35.633 (Freebox) Device nValue: 1
2020-08-17 16:17:35.633 (Freebox) Device sValue: '1'
2020-08-17 16:17:35.633 (Freebox) Device LastLevel: 0
2020-08-17 16:17:35.633 (Freebox) Options: '{}'
2020-08-17 16:17:35.633 (Freebox) Device: 6 - ID: 158, Name: 'Freebox - Reboot Server', nValue: 0, sValue: ''
2020-08-17 16:17:35.634 (Freebox) Device ID: '158'
2020-08-17 16:17:35.634 (Freebox) Device Name: 'Freebox - Reboot Server'
2020-08-17 16:17:35.634 (Freebox) Device nValue: 0
2020-08-17 16:17:35.634 (Freebox) Device sValue: ''
2020-08-17 16:17:35.634 (Freebox) Device LastLevel: 0
2020-08-17 16:17:35.634 (Freebox) Options: '{}'
2020-08-17 16:17:35.634 (Freebox) Device: 9 - ID: 162, Name: 'Freebox - Upload', nValue: 0, sValue: '0.0'
2020-08-17 16:17:35.634 (Freebox) Device ID: '162'
2020-08-17 16:17:35.634 (Freebox) Device Name: 'Freebox - Upload'
2020-08-17 16:17:35.634 (Freebox) Device nValue: 0
2020-08-17 16:17:35.634 (Freebox) Device sValue: '0.0'
2020-08-17 16:17:35.634 (Freebox) Device LastLevel: 0
2020-08-17 16:17:35.634 (Freebox) Options: '{'Custom': '1;Ko/s'}'
2020-08-17 16:17:35.634 (Freebox) Device: 10 - ID: 163, Name: 'Freebox - Download', nValue: 1, sValue: '1.0'
2020-08-17 16:17:35.634 (Freebox) Device ID: '163'
2020-08-17 16:17:35.634 (Freebox) Device Name: 'Freebox - Download'
2020-08-17 16:17:35.634 (Freebox) Device nValue: 1
2020-08-17 16:17:35.634 (Freebox) Device sValue: '1.0'
2020-08-17 16:17:35.634 (Freebox) Device LastLevel: 0
2020-08-17 16:17:35.635 (Freebox) Options: '{'Custom': '1;Ko/s'}'
2020-08-17 16:17:35.635 (Freebox) C'est votre première connexion, le token n'est pas renseigné.
2020-08-17 16:17:35.635 (Freebox) Vous avez 30 secondes pour autoriser le plugin sur l'écran de la Freebox.
2020-08-17 16:17:35.635 (Freebox) Une fois autorisé sur la Freebox, le token s'affichera ici.
2020-08-17 16:17:35.719 Error: (Freebox) 'onStart' failed 'HTTPError'.
2020-08-17 16:17:35.719 Error: (Freebox) ----> Line 279 in '/home/pi/domoticz/plugins/PluginDomoticzFreebox/plugin.py', function onStart
2020-08-17 16:17:35.719 Error: (Freebox) ----> Line 115 in '/home/pi/domoticz/plugins/PluginDomoticzFreebox/plugin.py', function onStart
2020-08-17 16:17:35.719 Error: (Freebox) ----> Line 13 in '/home/pi/domoticz/plugins/PluginDomoticzFreebox/freebox.py', function register
2020-08-17 16:17:35.719 Error: (Freebox) ----> Line 41 in '/home/pi/domoticz/plugins/PluginDomoticzFreebox/freebox.py', function _com
2020-08-17 16:17:35.720 Error: (Freebox) ----> Line 222 in '/usr/lib/python3.7/urllib/request.py', function urlopen
2020-08-17 16:17:35.720 Error: (Freebox) ----> Line 531 in '/usr/lib/python3.7/urllib/request.py', function open
2020-08-17 16:17:35.720 Error: (Freebox) ----> Line 641 in '/usr/lib/python3.7/urllib/request.py', function http_response
2020-08-17 16:17:35.720 Error: (Freebox) ----> Line 569 in '/usr/lib/python3.7/urllib/request.py', function error
2020-08-17 16:17:35.720 Error: (Freebox) ----> Line 503 in '/usr/lib/python3.7/urllib/request.py', function _call_chain
2020-08-17 16:17:35.720 Error: (Freebox) ----> Line 649 in '/usr/lib/python3.7/urllib/request.py', function http_error_default
2020-08-17 16:17:45.222 (Freebox) Pushing 'onHeartbeatCallback' on to queue
2020-08-17 16:17:45.256 (Freebox) Processing 'onHeartbeatCallback' message
2020-08-17 16:17:45.256 (Freebox) Calling message handler 'onHeartbeat'.
2020-08-17 16:17:45.256 (Freebox) onHeartbeat called
biwizit commented 4 years ago

Note that I never had error message from the plugin before the server update. Would be due to API changes from Free ?

biwizit commented 4 years ago

I finally understood.... After Freebox server update, the new address to use in your plugin is now mafreebox.freebox.fr and not mafreebox.free.fr anymore.

You should update your main page accordingly.

For info, when trying http://mafreebox.free.fr/ in the webbrowser, you will now have : unknown host, use ip address or mafreebox.freebox.fr

Regards.