Page 3 sur 29
Re: [Plugin Tiers][Sujet Principal] Plugin WebOS TV
Publié : 15 juil. 2018, 14:29
par domars
Bonjour ZygOm4t1k,
Lorsque je sauvegarde mon équipement LG C8 (webOS 4.0.0) aucune demande de confirmation n’apparaît sur le téléviseur.
L’url http://<ip tv>:3000 me renvoie bien "Hello world", mais si je désactive/réactive le plugin j’ai l’erreur suivante
Code : Tout sélectionner
[2018-07-15 14:18:35][DEBUG] : Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php plugin_id=webosTv function=remove callInstallFunction=1
[2018-07-15 14:18:40][INFO] : Début d'activation du plugin
[2018-07-15 14:18:41][INFO] : Info sur le démon : Array ( [launchable_message] => [launchable] => nok [state] => nok [log] => nok [auto] => 0 )
[2018-07-15 14:18:41][DEBUG] : Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php plugin_id=webosTv function=install callInstallFunction=1
Aurais-tu une idée de ce qui pose problème ?
Re: [Plugin Tiers][Sujet Principal] Plugin WebOS TV
Publié : 17 juil. 2018, 10:15
par Saint-Jey
Hello,
encore merci pour ce plugin qui marche quasiment parfaitement.
Je dis quasiment car je n'ai pas les images des chaînes (cf. PJ)...
Il voit bien des nouvelles chaînes mais il ne trouve pas les images à appliquer, l'url ne semble pas être la bonne dans le debug :
Re: [Plugin Tiers][Sujet Principal] Plugin WebOS TV
Publié : 19 juil. 2018, 13:30
par ZygOm4t1k
domars a écrit : ↑15 juil. 2018, 14:29
Bonjour ZygOm4t1k,
Lorsque je sauvegarde mon équipement LG C8 (webOS 4.0.0) aucune demande de confirmation n’apparaît sur le téléviseur.
L’url http://<ip tv>:3000 me renvoie bien "Hello world", mais si je désactive/réactive le plugin j’ai l’erreur suivante
Code : Tout sélectionner
[2018-07-15 14:18:35][DEBUG] : Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php plugin_id=webosTv function=remove callInstallFunction=1
[2018-07-15 14:18:40][INFO] : Début d'activation du plugin
[2018-07-15 14:18:41][INFO] : Info sur le démon : Array ( [launchable_message] => [launchable] => nok [state] => nok [log] => nok [auto] => 0 )
[2018-07-15 14:18:41][DEBUG] : Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php plugin_id=webosTv function=install callInstallFunction=1
Aurais-tu une idée de ce qui pose problème ?
Salut.
Non je ne vois pas car pas d'erreur ici.
Le log http.error? ou log du plugin en debug?
Saint-Jey a écrit : ↑17 juil. 2018, 10:15
Hello,
encore merci pour ce plugin qui marche quasiment parfaitement.
Je dis quasiment car je n'ai pas les images des chaînes (cf. PJ)...
Il voit bien des nouvelles chaînes mais il ne trouve pas les images à appliquer, l'url ne semble pas être la bonne dans le debug :
Bizarre car il trouve les apps
tu as des messages d’erreurs?
Re: [Plugin Tiers][Sujet Principal] Plugin WebOS TV
Publié : 19 juil. 2018, 14:02
par Saint-Jey
ZygOm4t1k a écrit : ↑19 juil. 2018, 13:30
Saint-Jey a écrit : ↑17 juil. 2018, 10:15
Hello,
encore merci pour ce plugin qui marche quasiment parfaitement.
Je dis quasiment car je n'ai pas les images des chaînes (cf. PJ)...
Il voit bien des nouvelles chaînes mais il ne trouve pas les images à appliquer, l'url ne semble pas être la bonne dans le debug :
Bizarre car il trouve les apps
tu as des messages d’erreurs?
Non je n'ai pas de message d'erreur.
Du coup, j'ai résolu le pb en créant un virtuel + widget spécifique sur les chaines. J'ai essayé de vider le cache pour essayer mais ça n'a rien changé
Re: [Plugin Tiers][Sujet Principal] Plugin WebOS TV
Publié : 19 juil. 2018, 14:21
par domars
Merci ZygOm4t1k pour ta réponse rapide.
Le log http.error affiche effectivement une erreur:
Code : Tout sélectionner
Traceback (most recent call last):
File "/var/www/html/plugins/webosTv/3rdparty/lgtv.py", line 486, in <module>
ws = LGTVClient(sys.argv[2])
File "/var/www/html/plugins/webosTv/3rdparty/lgtv.py", line 210, in __init__
self.__macAddress = getMacAddress(self.__ip)
File "/var/www/html/plugins/webosTv/3rdparty/lgtv.py", line 154, in getMacAddress
pid = subprocess.Popen(["arp", "-n", address], stdout=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Je vais supprimer/réinstaller le plugin et relancer les dépendances, ça peut peut-être aider...
Re: [Plugin Tiers][Sujet Principal] Plugin WebOS TV
Publié : 19 juil. 2018, 14:37
par domars
La réinstallation n’a pas résolu le pb.
Voici le log http.error complet, merci de ton aide !
Code : Tout sélectionner
Traceback (most recent call last):
File "/var/www/html/plugins/webosTv/core/config/../../3rdparty/lgtv.py", line 491, in <module>
ws = LGTVClient()
File "/var/www/html/plugins/webosTv/core/config/../../3rdparty/lgtv.py", line 215, in __init__
super(LGTVClient, self).__init__('ws://' + self.__hostname + ':3000/', exclude_headers=["Origin"])
TypeError: cannot concatenate 'str' and 'NoneType' objects
Traceback (most recent call last):
File "/var/www/html/plugins/webosTv/core/config/../../3rdparty/lgtv.py", line 491, in <module>
ws = LGTVClient()
File "/var/www/html/plugins/webosTv/core/config/../../3rdparty/lgtv.py", line 215, in __init__
super(LGTVClient, self).__init__('ws://' + self.__hostname + ':3000/', exclude_headers=["Origin"])
TypeError: cannot concatenate 'str' and 'NoneType' objects
Traceback (most recent call last):
File "/var/www/html/plugins/webosTv/core/config/../../3rdparty/lgtv.py", line 491, in <module>
ws = LGTVClient()
File "/var/www/html/plugins/webosTv/core/config/../../3rdparty/lgtv.py", line 215, in __init__
super(LGTVClient, self).__init__('ws://' + self.__hostname + ':3000/', exclude_headers=["Origin"])
TypeError: cannot concatenate 'str' and 'NoneType' objects
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
Traceback (most recent call last):
File "/var/www/html/plugins/webosTv/3rdparty/lgtv.py", line 486, in <module>
ws = LGTVClient(sys.argv[2])
File "/var/www/html/plugins/webosTv/3rdparty/lgtv.py", line 210, in __init__
self.__macAddress = getMacAddress(self.__ip)
File "/var/www/html/plugins/webosTv/3rdparty/lgtv.py", line 154, in getMacAddress
pid = subprocess.Popen(["arp", "-n", address], stdout=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "/var/www/html/plugins/webosTv/core/config/../../3rdparty/lgtv.py", line 491, in <module>
ws = LGTVClient()
File "/var/www/html/plugins/webosTv/core/config/../../3rdparty/lgtv.py", line 215, in __init__
super(LGTVClient, self).__init__('ws://' + self.__hostname + ':3000/', exclude_headers=["Origin"])
TypeError: cannot concatenate 'str' and 'NoneType' objects
Traceback (most recent call last):
File "/var/www/html/plugins/webosTv/core/config/../../3rdparty/lgtv.py", line 491, in <module>
ws = LGTVClient()
File "/var/www/html/plugins/webosTv/core/config/../../3rdparty/lgtv.py", line 215, in __init__
super(LGTVClient, self).__init__('ws://' + self.__hostname + ':3000/', exclude_headers=["Origin"])
TypeError: cannot concatenate 'str' and 'NoneType' objects
Traceback (most recent call last):
File "/var/www/html/plugins/webosTv/core/config/../../3rdparty/lgtv.py", line 491, in <module>
ws = LGTVClient()
File "/var/www/html/plugins/webosTv/core/config/../../3rdparty/lgtv.py", line 215, in __init__
super(LGTVClient, self).__init__('ws://' + self.__hostname + ':3000/', exclude_headers=["Origin"])
TypeError: cannot concatenate 'str' and 'NoneType' objects
Traceback (most recent call last):
File "/var/www/html/plugins/webosTv/3rdparty/lgtv.py", line 486, in <module>
ws = LGTVClient(sys.argv[2])
File "/var/www/html/plugins/webosTv/3rdparty/lgtv.py", line 210, in __init__
self.__macAddress = getMacAddress(self.__ip)
File "/var/www/html/plugins/webosTv/3rdparty/lgtv.py", line 154, in getMacAddress
pid = subprocess.Popen(["arp", "-n", address], stdout=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Re: [Plugin Tiers][Sujet Principal] Plugin WebOS TV
Publié : 19 juil. 2018, 17:20
par ZygOm4t1k
Quel hardware? os?
Version du plugin? Tu es bien en stable?
Re: [Plugin Tiers][Sujet Principal] Plugin WebOS TV
Publié : 19 juil. 2018, 22:23
par domars
Nuc Intel, ESXi 6.5, machine virtuelle Debian 9 pour Jeedom.
Dernières versions stables de Jeedom et de ton plugin, ce dernier installé pour la première fois il y a 3 jours.
Re: [Plugin Tiers][Sujet Principal] Plugin WebOS TV
Publié : 20 juil. 2018, 07:58
par ZygOm4t1k
problème de chemin je pense.
Tu peux essayer en ssh , télé allumée
Code : Tout sélectionner
python /var/www/html/plugins/webosTv/3rdparty/lgtv.py auth ip_de_la_tv
et voir sur la télé ce que ça donne?
Re: [Plugin Tiers][Sujet Principal] Plugin WebOS TV
Publié : 20 juil. 2018, 08:19
par domars
Désolé, même message d’erreur
Re: [Plugin Tiers][Sujet Principal] Plugin WebOS TV
Publié : 20 juil. 2018, 08:46
par ZygOm4t1k
Le fichier existe bien?
puis
retourne quoi?
Re: [Plugin Tiers][Sujet Principal] Plugin WebOS TV
Publié : 20 juil. 2018, 08:53
par domars
Les fichiers sont là, les droits sont OK
Code : Tout sélectionner
drwxrwxr-x 2 www-data www-data 4096 juil. 19 14:24 .
drwxrwxr-x 8 www-data www-data 4096 juil. 19 14:24 ..
-rwxrwxr-x 1 www-data www-data 629 juil. 19 14:24 conversion.php
-rwxrwxr-x 1 www-data www-data 18052 juil. 19 14:24 lgtv.py
Re: [Plugin Tiers][Sujet Principal] Plugin WebOS TV
Publié : 20 juil. 2018, 08:56
par ZygOm4t1k
Re: [Plugin Tiers][Sujet Principal] Plugin WebOS TV
Publié : 20 juil. 2018, 09:02
par domars
Oui, pareil.
Il semble manquer un répertoire ou un fichier...
Re: [Plugin Tiers][Sujet Principal] Plugin WebOS TV
Publié : 20 juil. 2018, 09:57
par ZygOm4t1k
C'est chemin qui est mal interprété par python pourtant tu as la version 2.7 ...
Re: [Plugin Tiers][Sujet Principal] Plugin WebOS TV
Publié : 20 juil. 2018, 10:04
par ZygOm4t1k
Re: [Plugin Tiers][Sujet Principal] Plugin WebOS TV
Publié : 20 juil. 2018, 10:23
par domars
Ça ne change rien, il trouve bien le fichier lgtv.py dans tous les cas, c’est après que ça se gâte...
Re: [Plugin Tiers][Sujet Principal] Plugin WebOS TV
Publié : 20 juil. 2018, 11:42
par alex51
salut Domars,
J'ai résolu ce problème en faisant un ;
apt-get install net-tools
Re: [Plugin Tiers][Sujet Principal] Plugin WebOS TV
Publié : 20 juil. 2018, 12:17
par ZygOm4t1k
Non il y avait bien un problème c'est corrigé.
@domars
Tu peux installer la dernière stable. Si tu as déjà une télécommande il faut l'effacer
Merci pour le retour car ça pouvait entraîner des erreurs.
Re: [Plugin Tiers][Sujet Principal] Plugin WebOS TV
Publié : 20 juil. 2018, 13:23
par domars
Un grand merci à ZygOm4t1k... et à alex51 !
Pourquoi aux deux ?
Parce que après suppression du plugin, installation de la dernière version et re-création de mon équipement, je me suis retrouvé avec la même erreur !
J’ai ensuite installé net-tools, et constaté que ce package était déjà présent.
Et puis, bizarrement, une nouvelle sauvegarde de l’équipement a affiché la demande de confirmation sur la TV !!!
A cause de net-tools ou parce-que ça ne marche pas toujours du premier coup ?
Aucune idée, en tout cas tout semble fonctionner impec.... pour l’instant