<? Header("HTTP/1.0 204 No Content"); $command = (IsSet($_REQUEST['command'])) ? $_REQUEST['command'] : ""; switch ($command) { case " L5 ": readfile('http://username:password@localhost:8080/9/track/set?pan=-200&tilt=0'); break; case " L4 ": readfile('http://username:password@localhost:8080/9/track/set?x=-60&y=1000'); break; case " L3 ": readfile('http://username:password@localhost:8080/9/track/set?x=-45&y=1000'); break; case " L2 ": readfile('http://username:password@localhost:8080/9/track/set?x=-30&y=1000'); break; case " L1 ": readfile('http://username:password@localhost:8080/9/track/set?x=-15&y=1000'); break; case "Center Pan": readfile('http://username:password@localhost:8080/9/track/set?x=0&y=1000'); break; case " R1 ": readfile('http://username:password@localhost:8080/9/track/set?x=15&y=1000'); break; case " R2 ": readfile('http://username:password@localhost:8080/9/track/set?x=30&y=1000'); break; case " R3 ": readfile('http://username:password@localhost:8080/9/track/set?x=45&y=1000'); break; case " R4 ": readfile('http://username:password@localhost:8080/9/track/set?x=60&y=1000'); break; case " R5 ": readfile('http://username:password@localhost:8080/9/track/set?pan=200&tilt=0'); break; case " U5 ": readfile('http://username:password@localhost:8080/9/track/set?pan=0&tilt=100'); break; case " U4 ": readfile('http://username:password@localhost:8080/9/track/set?x=1000&y=20'); break; case " U3 ": readfile('http://username:password@localhost:8080/9/track/set?x=1000&y=15'); break; case " U2 ": readfile('http://username:password@localhost:8080/9/track/set?x=1000&y=10'); break; case " U1 ": readfile('http://username:password@localhost:8080/9/track/set?x=1000&y=5'); break; case "Center Tilt": readfile('http://username:password@localhost:8080/9/track/set?x=1000&y=0'); break; case " D1 ": readfile('http://username:password@localhost:8080/9/track/set?x=1000&y=-5'); break; case " D2 ": readfile('http://username:password@localhost:8080/9/track/set?x=1000&y=-10'); break; case " D3 ": readfile('http://username:password@localhost:8080/9/track/set?x=1000&y=-15'); break; case " D4 ": readfile('http://username:password@localhost:8080/9/track/set?x=1000&y=-20'); break; case " D5 ": readfile('http://username:password@localhost:8080/9/track/set?pan=0&tilt=-100'); break; case "Pan Left ": readfile('http://username:password@localhost:8080/9/track/set?pan=-10&tilt=0'); break; case "Pan Right": readfile('http://username:password@localhost:8080/9/track/set?pan=10&tilt=0'); break; case " Tilt Up ": readfile('http://username:password@localhost:8080/9/track/set?pan=0&tilt=5'); break; case "Tilt Down": readfile('http://username:password@localhost:8080/9/track/set?pan=0&tilt=-5'); break; case "Calibrate": readfile('http://username:password@localhost:8080/9/config/set?text_left=CAMERA%20CALIBRATING%20POSITION'); readfile('http://username:password@localhost:8080/9/detection/pause'); readfile('http://username:password@localhost:8080/9/track/set?x=-69&y=24'); sleep(5); readfile('http://username:password@localhost:8080/9/track/set?x=69&y=-29'); sleep(3); readfile('http://username:password@localhost:8080/9/track/set?x=65&y=-5'); sleep(2); readfile('http://username:password@localhost:8080/9/config/set?text_left=CAMERA'); readfile('http://username:password@localhost:8080/9/detection/start'); default: break; } ?>