psyciknz / CameraEvents

Dahua NVR/Camera Alerting to MQTT. Fairly specific to my needs, but also an attempt at starting to use travis.
Eclipse Public License 2.0
58 stars 18 forks source link

Payload error in event VideoMotion when stop. #22

Closed jbolanosg closed 3 years ago

jbolanosg commented 3 years ago

I believe that it is a error the next line: https://github.com/psyciknz/CameraEvents/blob/ed54c3e890376fc3fa0d75d5413fc4d275bbd64e/CameraEvents.py#L669

imagen

The payload must be OFF

psyciknz commented 3 years ago

Yes looks like you're right. I'll make a fix for that.

psyciknz commented 3 years ago

Should be solved....BUT, for some reason i can't create arm and arm64 docker images at the moment with Travis. So if you use those you'll have download and build yourself. Sorry. Something in a pip command is failing.

jbolanosg commented 3 years ago

I already did it...i Already have a the new image ARM64 with your correction.

psyciknz commented 3 years ago

Did you manually build? I'll have to figure out a new travis flow

jbolanosg commented 3 years ago

Yes with this steps:

  1. cd /tmp

  2. git clone https://github.com/psyciknz/CameraEvents

  3. cd CameraEvents/

  4. docker build -t psyciknz/cameraevents:latest .

  5. docker run --restart unless-stopped -d --env TZ=America/Bogota -v /appdata/cameraevents:/opt/cameraevents/conf --name dahua-cameraevents psyciknz/cameraevents:latest

My machine is a Tv Box with Ubuntu 20.04 and Amlogic S905X2 processor (ARM64).