Giter Club home page Giter Club logo

jeedom_reolink_plugin's People

Contributors

jezza34000 avatar micka41 avatar mnpg avatar renovate[bot] avatar t0urista avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

jeedom_reolink_plugin's Issues

Erreur DAEMON lecture du credentials

Bonjour,
J'ai souvent des erreurs sur le demon reolink lors de la lecture du fichier credentials.
Voici les logs:

0001|[2022-10-30 20:36:19]INFO : Start demond
0002|[2022-10-30 20:36:19]INFO : Log level : debug
0003|[2022-10-30 20:36:19]INFO : Socket port : 44009
0004|[2022-10-30 20:36:19]INFO : Socket host : localhost
0005|[2022-10-30 20:36:19]INFO : PID file : /tmp/jeedom/reolink/deamon.pid
0006|[2022-10-30 20:36:19]INFO : Apikey : je vais pas la mettre quand même
0007|[2022-10-30 20:36:19]INFO : Device : auto
0008|[2022-10-30 20:36:19]INFO : Webhook IP : 192.168.XXX.XXX
0009|[2022-10-30 20:36:19]INFO : Webhook port : 44010
0010|[2022-10-30 20:36:19]INFO : Write creds file for camhook
0011|[2022-10-30 20:36:19]DEBUG : Unable to write creds file : [Errno 13] Permission denied: 'jeedomcreds'
0012|[2022-10-30 20:36:19]DEBUG : Writing PID 1351 to /tmp/jeedom/reolink/deamon.pid
0013|[2022-10-30 20:36:19]INFO : Starting webhook...
0014|[2022-10-30 20:36:19]DEBUG : Socket interface started
0015|[2022-10-30 20:36:19]DEBUG : LoopNetServer Thread started
0016|[2022-10-30 20:36:19]DEBUG : Listening on: [localhost:44009]
0017|[2022-10-30 20:36:19]DEBUG : Using selector: EpollSelector
0018|[2022-10-30 20:36:21]ERROR : Unable to read credentials jeedom file, retry...

La seule solution que j'ai trouvé c'est d’arrêter le daemon puis le relancer.

0395|[2022-10-31 16:38:35]INFO : Start demond
0396|[2022-10-31 16:38:35]INFO : Log level : debug
0397|[2022-10-31 16:38:35]INFO : Socket port : 44009
0398|[2022-10-31 16:38:35]INFO : Socket host : localhost
0399|[2022-10-31 16:38:35]INFO : PID file : /tmp/jeedom/reolink/deamon.pid
0400|[2022-10-31 16:38:35]INFO : Apikey : je vais pas la mettre quand même
0401|[2022-10-31 16:38:35]INFO : Device : auto
0402|[2022-10-31 16:38:35]INFO : Webhook IP : 192.168.XXX.XXX
0403|[2022-10-31 16:38:35]INFO : Webhook port : 44010
0404|[2022-10-31 16:38:35]INFO : Write creds file for camhook
0405|[2022-10-31 16:38:35]DEBUG : Writing PID 16327 to /tmp/jeedom/reolink/deamon.pid
0406|[2022-10-31 16:38:35]INFO : Starting webhook...
0407|[2022-10-31 16:38:35]DEBUG : Socket interface started
0408|[2022-10-31 16:38:35]DEBUG : LoopNetServer Thread started
0409|[2022-10-31 16:38:35]DEBUG : Listening on: [localhost:44009]
0410|[2022-10-31 16:38:35]DEBUG : Using selector: EpollSelector
0411|[2022-10-31 16:38:35]DEBUG : Init request module v2.21.0
0412|INFO:     Started server process [16344]
0413|[2022-10-31 16:38:35]INFO : Started server process [16344]
0414|INFO:     Waiting for application startup.
0415|[2022-10-31 16:38:35]INFO : Waiting for application startup.
0416|INFO:     Application startup complete.
0417|[2022-10-31 16:38:35]INFO : Application startup complete.

Ce qui fait que généralement je dois relancer le daemon toute les 24h.
Et si je fais un script qui lance le daemon toute les jours ca ne fonctionne pas mis si je le fait à la main le lancement du daemon fonctionne

Avez vous connaissance de ce problème ?

Ajout Caméra TrackMix

Bonjour,

Serait il possible d'ajouter la caméra Reolink TrackMix ?
Elle dispose de l'API donc je pense qu'il est possible de le faire.
J'ai voulu ajouter la mienne, mais le plugin ne parviens pas à récupérer les infos de la caméra.
Voici ce que j'ai en log debug lorsque je l'ajoute :

[2023-01-15 02:20:02]DEBUG : Obtention des informations de la caméra
[2023-01-15 02:20:02]DEBUG : ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[2023-01-15 02:20:02]DEBUG : Vérification à 1673745602 du TOKEN : ******* Valable jusqu'à : 1673748541
[2023-01-15 02:20:02]DEBUG : API Token OK
[2023-01-15 02:20:02]DEBUG : URL de requête => https://192.168.1.129:443/cgi-bin/api.cgi?token=*******
[2023-01-15 02:20:02]DEBUG : Payload => [{"cmd":"GetDevInfo"},{"cmd":"GetP2P"},{"cmd":"GetLocalLink"},{"cmd":"GetAiState"},{"cmd":"GetNetPort"}]
[2023-01-15 02:20:04]DEBUG : HTTP code 200 OK
[2023-01-15 02:20:04]DEBUG : Réponse caméra >> [{"cmd":"Unknown","code":1,"error":{"detail":"pleaseloginfirst","rspCode":-6}}]
[2023-01-15 02:20:04]DEBUG : Camera login...
[2023-01-15 02:20:04]DEBUG : Ajout URL request = Login
[2023-01-15 02:20:04]DEBUG : URL de requête => https://192.168.1.129:443/cgi-bin/api.cgi?cmd=Login&token=*******
[2023-01-15 02:20:04]DEBUG : Payload => [{"cmd":"Login","param":{"User":{"userName":"*******","password":"******"}}}]
[2023-01-15 02:20:06]DEBUG : HTTP code 200 OK
[2023-01-15 02:20:06]DEBUG : Réponse caméra >> [{"cmd":"Login","code":1,"error":{"detail":"pleaseloginfirst","rspCode":-6}}]

Merci par avance !

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

pip_requirements
resources/requirements.txt
  • aiohttp >=3.9.1
  • aiosignal ~=1.3.1
  • anyio ~=3.7.1
  • asgiref ~=3.8.1
  • async-timeout ~=4.0.2
  • attrs ~=23.2.0
  • certifi >=2023.7.22
  • charset-normalizer ~=2.1.1
  • click ~=8.1.3
  • fastapi ~=0.78.0
  • frozenlist ~=1.4.1
  • h11 ~=0.14.0
  • idna ~=3.3
  • multidict ~=6.0.2
  • pip ~=22.1
  • pydantic ~=1.9.1
  • requests ~=2.31.0
  • setuptools >=65.5.1
  • sniffio ~=1.3.1
  • starlette >=0.25.0
  • typing-extensions ~=4.11.0
  • urllib3 ~=1.26.9
  • uvicorn ~=0.29.0
  • wheel ~=0.43.0
  • yarl ~=1.9.4

  • Check this box to trigger a request for Renovate to run again on this repository

Détection mouvement Voiture / personne

Bonjour,
Un grand merci pour le plugin Reolink qui aide grandement à intégrer les caméras à Jeedom.

je voulais vous faire une demande, ce serai d'ajouter la détection de mouvement de type voiture ou personne.

Actuellement j'ai ajouté du code afin de lire l'API reolink :
http://IP/cgi-bin/api.cgi?cmd=GetAiState&rs=&user=xx&password=xx

Ceci me permet d'obtenir le JSON suivant
[ { "cmd" : "GetAiState", "code" : 0, "value" : { "channel" : 0, "face" : { "alarm_state" : 0, "support" : 0 }, "people" : { "alarm_state" : 0, "support" : 1 }, "vehicle" : { "alarm_state" : 0, "support" : 1 } } } ]

Mais je constate que entre la détection d'un mouvement et la lecture du JSON je perd l'information du type de détection surtout pour les voitures car c'est trop rapide pour le script.
je pense donc que la solution est d'intégrer au plugin la détection AI.

Pensez-vous que cela soit possible à intégrer au plugin ?
Merci d'avance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.