WelcomeSwitch
From i3Detroit
Wiring
On the camera:
1 wht/org ethernet 2 org/wht ethernet 3 wht/grn ethernet 4 blu/wht GND 5 wht/blu Digital Input + 6 grn/wht ethernet 7 wht/brn Relay Output 8 brn/wht +12V
In the box: Ethernet pins pass through to Ethernet input GND from power input goes to GND from camera, also to LED cathode and SSR negative. +12 from power input goes to +12 from camera, also to switch contact. Relay Output from camera goes to LED anode and SSR positive. Digtal Input + from camera goes to switch contact.
Software
Proof-of-concept batch file:
:top del getdi.cgi wget --user=admin --password=i3 http://i3detroit.dyndns.org:5000/cgi-bin/getdi.cgi find "DI=H" <getdi.cgi echo %errorlevel% if %errorlevel% EQU 0 wget --user=admin --password=i3 http://i3detroit.dyndns.org:5000/cgi-bin/setdo.cgi?do=l --output-document=NUL find "DI=L" <getdi.cgi echo %errorlevel% if %errorlevel% EQU 0 wget --user=admin --password=i3 http://i3detroit.dyndns.org:5000/cgi-bin/setdo.cgi?do=h --output-document=NUL sleep 1 goto top
Camera documentation: [1]