HTTP Access (controlling ispy via http requests)
HTTP Server Access
HTTP access is useful for interfacing iSpy with external triggers (like trip wires/ temperature sensors etc), other running applications and moderate to high-end IP cameras that have their own motion detection code built in (useful to reduce the CPU load of ispy on your computer).
Before you start using HTTP access you will need to know the ID of them camera or microphone that you want to control. The ID is provide in the title bar of the "edit camera" or "edit microphone" control AFTER you have added it to the iSpy surface.
You will also need to know the IP address of the device that is sending the HTTP commands. This may be your local computer IP address or the IP address of your IP camera.
You will need to add this IP address into the list of Allowed IP addresses on the Settings panel. This list takes a comma seperated list of IP addresses, for example:
192.168.1.10,192.168.1.11
Once this has been added, HTTP requests from those IP addresses will be allowed access to control iSpy.
The HTTP format follows the pattern "http://IPADDRESS:PORT/COMMAND?ot=OBJECT_TYPE&oid=OBJECT_ID
You can find your IP address and Port in web settings. OBJECT_TYPE is either a 1 for a microphone or a 2 for a camera. The OBJECT_ID is provided in the title bar of the camera or microphone when editing it.
Some examples (note that your IP address and Port will probably be different!):
Some common commands are:
| Command | Example | Notes |
| alert | http://192.168.1.10:8080/alert?ot=2&oid=0 | This will trigger the alert on a camera, with an ID of "0". |
| takeoffline | http://192.168.1.10:8080/takeoffline?ot=2&oid=0 | |
| bringonline | http://192.168.1.10:8080/bringonline?ot=2&oid=0 | |
| allon | http://192.168.1.10:8080/allon | |
| alloff | http://192.168.1.10:8080/alloff | |
| recordondetecton | http://192.168.1.10:8080/recordondetecton?ot=2&oid=0 | |
| recordondetectoff | http://192.168.1.10:8080/recordondetectoff?ot=2&oid=0 | |
| record | http://192.168.1.10:8080/record | Records all |
| record | http://192.168.1.10:8080/record?ot=2&oid=0 | Specific camera |
| recordoff | http://192.168.1.10:8080/recordoff | Stops recording all |
| recordoff | http://192.168.1.10:8080/recordoff?ot=2&oid=0 | Specific camera |
| executecmd | http://192.168.1.10:8080/executecmd?id=1 | Remote Commands - get the id from the Remote Commands panel |
| shutdown | http://192.168.1.10:8080/shutdown | Shutdown ispy |