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 19 forks source link

Configuration: channels index range #9

Open valepe opened 4 years ago

valepe commented 4 years ago

In your configuration example you refer to a channel list if the nvr can't retrieve that.

Is this list 0 based even if the first camera is indexed as 1 on nvr? Example of a camera routed by the nvr: mjpeg_url: "http://IP_NUMBER/cgi-bin/mjpg/video.cgi?channel=1&subtype=1"

This implementation is working fine but the channel list are starting at 1 not 0.

psyciknz commented 4 years ago

Unsure. I’d have to look at the code. Probably 0. The switch to 1 for channel list came in later firmwares. And the vide was written before I had a newer nvr.