Giter Club home page Giter Club logo

Comments (11)

andrewcoo101 avatar andrewcoo101 commented on August 30, 2024

The Ezviz cloud sends mqtt messages when motion is detected.

pyEzviz supports an mqtt option that listens for these events.

I've no experience of battery operated camera's - but assume that these events will be sent.

from pyezviz.

rezzalex avatar rezzalex commented on August 30, 2024

Hello,

thank you for your answer, I simply don't know how to use it...

Would it be possible to provide a guide /wiki ? list of possible command ?

Possible to propose a docker file or a container for this whole beautiful project ?

from pyezviz.

andrewcoo101 avatar andrewcoo101 commented on August 30, 2024

This library is primarily a tool that allows camera features to dis/enabled or changed in some other way.

I believe many use pyezviz as part of home assistant.
https://www.home-assistant.io/integrations/ezviz/

Home assistant is responsible for invoking the libary to change camera settings.

Personally I use the command line; this command prints usage information:
python3 pyezviz -h

To run the code from this repo I made these changes:
e914b8c

from pyezviz.

rezzalex avatar rezzalex commented on August 30, 2024

thank you,

Could you indicate me how to use the MQTT option ?

From my perspective, the best "added-value" is to receive events from Ezviz to Domoticz, because "arming" the camera can be done using a simulated google vocal command, from Domoticz.
Is it possible to receive a snapshot as well ? or the recording ? or the link to the recording?

from pyezviz.

andrewcoo101 avatar andrewcoo101 commented on August 30, 2024

The mqtt option prints the mqtt events to standard output.

If you wish to use these events then you could either:

  • parse standard output using some other command line tool or script
  • update the code to use the events directly.

I can't remember exactly what information is returned, but I'm pretty sure there is a link to an image - check the information that is printed to std out for exact details.

I have no experience with Domoticz.

from pyezviz.

maxmontgmx avatar maxmontgmx commented on August 30, 2024

Hi all,
I try mqtt feature without success. I don't receive any event in the standard output :

DEBUG:urllib3.connectionpool:https://apiieu.ezvizlife.com:443 "PUT /v3/apigateway/login HTTP/1.1" 200 785
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): pusheu.ezvizlife.com:443
DEBUG:urllib3.connectionpool:https://pusheu.ezvizlife.com:443 "POST /v1/getClientId HTTP/1.1" 200 None
DEBUG:urllib3.connectionpool:https://pusheu.ezvizlife.com:443 "POST /api/push/start HTTP/1.1" 200 None
INFO:pyezviz.mqtt:Connected OK with return code 0
INFO:pyezviz.mqtt:Subscribed: 1 (2,)
INFO:pyezviz.mqtt:Connected OK with return code 0
INFO:pyezviz.mqtt:Connected OK with return code 0
INFO:pyezviz.mqtt:Connected OK with return code 0

from pyezviz.

maxmontgmx avatar maxmontgmx commented on August 30, 2024

Push mode was disable. After enabling, it' sworking.
Sorry for that.

from pyezviz.

rezzalex avatar rezzalex commented on August 30, 2024

The mqtt option prints the mqtt events to standard output.

If you wish to use these events then you could either:

  • parse standard output using some other command line tool or script
  • update the code to use the events directly.

I can't remember exactly what information is returned, but I'm pretty sure there is a link to an image - check the information that is printed to std out for exact details.

I have no experience with Domoticz.

@andrewcoo101 ; thank you. I have modified the code and use Domoticz API to trigger a dummy motion detection device.

from pyezviz.

Related Issues (20)

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.