Python Plugin pour Synology Surveillance Station

Forum dédié aux problématiques concernant les scripts pour DomoticZ.
Entourez votre code et les logs avec les balises nommées code grâce au bouton <\>.
coolplay54
Messages : 103
Inscription : 19 juil. 2016, 21:47

Re: Python Plugin pour Synology Surveillance Station

Message par coolplay54 »

Voilou pour moi
2019-03-12 21:11:16.996 Error: (SurveillanceStation) failed to load 'plugin.py', Python Path used was '/usr/local/domoticz/var/plugins/SurveillanceStation/:/volume1/@appstore/py3k/usr/local/lib/python35.zip:/volume1/@appstore/py3k/usr/local/lib/python3.5/:/volume1/@appstore/py3k/usr/local/lib/python3.5/plat-linux:/volume1/@appstore/py3k/usr/local/lib/python3.5/lib-dynload:/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages'.
2019-03-12 21:11:16.996 Error: (Syno) Module Import failed, exception: 'ImportError'
2019-03-12 21:11:16.996 Error: (Syno) Module Import failed: ' Name: requests'
2019-03-12 21:11:16.996 Error: (Syno) Error Line details not available.
2019-03-12 21:11:17.537 Error: Logitech Media Server: No connected players found.
2019-03-12 21:12:15.949 Error: PROXY: timeout occurred, reconnecting
2019-03-12 21:12:24.515 Error: Syno hardware (40) thread seems to have ended unexpectedly
2019-03-12 21:12:38.517 Error: Syno hardware (40) thread seems to have ended unexpectedly
Domoticz sur Syno + Rflink
Elwinmage
Messages : 28
Inscription : 08 mars 2019, 10:08

Re: Python Plugin pour Synology Surveillance Station

Message par Elwinmage »

D@udigood, il te faut pip, de mémoire pip installe les packages python pour python2.
Regarde sur le web comment l'installer.
D@udigood a écrit : 12 mars 2019, 20:07 Bonsoir,

Je viens de vérifier sur mon Nas le repertoire :
Capture d’écran 2019-03-12 à 19.58.31.png

je ne trouve pas "requests"
J'ai donc essayé de l'installer, mais il ne connait pas pip3, juste pip
Capture d’écran 2019-03-12 à 20.02.09.png

coté Domoticz ça change rien
Capture d’écran 2019-03-12 à 20.05.03.png

snif :-(
Elwinmage
Messages : 28
Inscription : 08 mars 2019, 10:08

Re: Python Plugin pour Synology Surveillance Station

Message par Elwinmage »

Essaie de remplacer ligne 43 sys.path.append('/usr/lib/python3/dist-packages') par sys.path.append('/usr/lib/python3.5/dist-packages')
coolplay54 a écrit : 12 mars 2019, 21:14 Voilou pour moi
2019-03-12 21:11:16.996 Error: (SurveillanceStation) failed to load 'plugin.py', Python Path used was '/usr/local/domoticz/var/plugins/SurveillanceStation/:/volume1/@appstore/py3k/usr/local/lib/python35.zip:/volume1/@appstore/py3k/usr/local/lib/python3.5/:/volume1/@appstore/py3k/usr/local/lib/python3.5/plat-linux:/volume1/@appstore/py3k/usr/local/lib/python3.5/lib-dynload:/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages'.
2019-03-12 21:11:16.996 Error: (Syno) Module Import failed, exception: 'ImportError'
2019-03-12 21:11:16.996 Error: (Syno) Module Import failed: ' Name: requests'
2019-03-12 21:11:16.996 Error: (Syno) Error Line details not available.
2019-03-12 21:11:17.537 Error: Logitech Media Server: No connected players found.
2019-03-12 21:12:15.949 Error: PROXY: timeout occurred, reconnecting
2019-03-12 21:12:24.515 Error: Syno hardware (40) thread seems to have ended unexpectedly
2019-03-12 21:12:38.517 Error: Syno hardware (40) thread seems to have ended unexpectedly
hdpop
Messages : 21
Inscription : 14 sept. 2018, 22:30

Re: Python Plugin pour Synology Surveillance Station

Message par hdpop »

Bonjour,

Je suis intéresser par ce plugin pour contrôler mes cameras. mais il n'est pas possible de le télécharger.
Est ce qu'il y a un moyen de le récupérer ?

Merci et bonne fêtes
Dim33
Messages : 209
Inscription : 29 janv. 2017, 23:19

Re: Python Plugin pour Synology Surveillance Station

Message par Dim33 »

Erreurs dans les Log :

Code : Tout sélectionner

2019-12-26 01:44:05.701 Error: (Synology Surveillance Station) 'onHeartbeat' failed 'AttributeError':''NoneType' object has no attribute 'update''.
2019-12-26 01:44:05.701 Error: (Synology Surveillance Station) ----> Line 314 in '/home/dd/domoticz/plugins/SurveillanceStation/plugin.py', function onHeartbeat
2019-12-26 01:44:05.701 Error: (Synology Surveillance Station) ----> Line 210 in '/home/dd/domoticz/plugins/SurveillanceStation/plugin.py', function onHeartbeat
NUC sous Ubuntu Server / RFXCom / Domoticz Version: 2020.2
Elwinmage
Messages : 28
Inscription : 08 mars 2019, 10:08

Re: Python Plugin pour Synology Surveillance Station

Message par Elwinmage »

quelle version de de domoticz et python utilises tu?
peux tu passer en mode debug et me donner également les valeurs de
SID refresh
Polling interva
l
Dim33
Messages : 209
Inscription : 29 janv. 2017, 23:19

Re: Python Plugin pour Synology Surveillance Station

Message par Dim33 »

Domoticz : Version: 4.10717

Python :

Code : Tout sélectionner

:~$ python --version
Python 2.7.17rc1
:~$ python3 --version
Python 3.7.5rc1
Mode debug : ON.
Affichage des logs :

Code : Tout sélectionner

2019-12-27 00:02:16.700 (Surveillance Station) Pushing 'onHeartbeatCallback' on to queue
2019-12-27 00:02:16.737 (Surveillance Station) Processing 'onHeartbeatCallback' message
2019-12-27 00:02:16.737 (Surveillance Station) Calling message handler 'onHeartbeat'.
2019-12-27 00:02:16.737 (Surveillance Station) onHeartbeat called
2019-12-27 00:02:17.444 (Surveillance Station) Camera CAM is in mode 5
2019-12-27 00:02:17.444 Error: (Surveillance Station) 'onHeartbeat' failed 'KeyError'.
2019-12-27 00:02:17.444 Error: (Surveillance Station) ----> Line 314 in '/home/dd/domoticz/plugins/SurveillanceStation/plugin.py', function onHeartbeat
2019-12-27 00:02:17.444 Error: (Surveillance Station) ----> Line 212 in '/home/dd/domoticz/plugins/SurveillanceStation/plugin.py', function onHeartbeat
2019-12-27 00:02:17.444 Error: (Surveillance Station) ----> Line 201 in '/home/dd/domoticz/plugins/SurveillanceStation/plugin.py', function _camerasUpdate
2019-12-27 00:02:17.444 Error: (Surveillance Station) ----> Line 58 in '/home/dd/domoticz/plugins/SurveillanceStation/plugin.py', function updateStatus
Valeurs par défaut :
SID refresh: 30
Polling interval: 10
NUC sous Ubuntu Server / RFXCom / Domoticz Version: 2020.2
Elwinmage
Messages : 28
Inscription : 08 mars 2019, 10:08

Re: Python Plugin pour Synology Surveillance Station

Message par Elwinmage »

Visiblement il y a eu un problème lors de la création du device. Peux-tu supprimer le matériel et le récréer avec le mode debug activé?
deennoo
Messages : 4036
Inscription : 25 janv. 2015, 02:00

Re: Python Plugin pour Synology Surveillance Station

Message par deennoo »

Le plugin a besoin d 'une petite mise a Jour :
- Depuis DSM 6 il faut que la version de connection soit a 6 et non a 2

J'ai proposé une correction a ce sujet
De quoi se faire Plaisir et essayer d'aider...
http://www.domo-attitude.fr
Répondre