• Sergey 'Jin' Bostandzhyan's avatar
    Initial commit · 34980ad6
    Sergey 'Jin' Bostandzhyan authored
    This vDC relays camera events from
    Motion (http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome) into the dS
    system as a motion detector binary input.
    
    Events from Motion are received via a socket (currently on port 44044):
    
    echo -n 0 | nc -w 2 127.0.0.1 44044 # motion event stopped
    echo -n 1 | nc -w 2 127.0.0.1 44044 # motion event started
    echo -n l | nc -w 2 127.0.0.1 44044 # camera lost
    
    hook into motion.conf (probably via a wrapper script) to:
    on_event_start
    on_event_stop
    on_camera_lost
    34980ad6