WelcomeSwitch

From i3Detroit
Revision as of 18:34, 29 November 2009 by Nbezanson (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Wiring


Mechanical


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