Python script to receive updates from an AirVision NVR v1.2.
- AirVision v1.2
- Tested with 1 camera set to record on motion.
- websocket-client, available at https://github.com/liris/websocket-client
- Tested with Python 2.7.3
Runs a command when the NVR detects motion:
python motion.py --server=https://airvision-nvr:7443 \
[email protected] \
--password=hunter2 \
--command='/usr/bin/espeak "motion detected in %(zones)s at %(time)s"'
Still messy. Hacked up one Saturday afternoon and I hope someone finds it useful.