readme.txt 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. To add your own commands to the list create a new file in the Commands directory
  2. You can execute internal commands by adding a new .bat file and adding a remark at the top of the file. For example to switch all internal cameras off and start recording all external cameras you could do:
  3. REM ispy-internal
  4. switchon&group=external
  5. switchoff&group=internal
  6. RECORD
  7. BROADCAST 'external cameras are on and recording'
  8. (This uses groups - so you'd need to setup your internal/ external cameras with group names on the general tab when you edit them )
  9. list of available commands:
  10. allon
  11. alloff
  12. applyschedule
  13. stopclouduploads
  14. recordondetecton
  15. recordonalerton
  16. recordingoff
  17. record
  18. recordstop
  19. alerton
  20. alertoff
  21. snapshot
  22. alert
  23. switchon
  24. switchoff
  25. more: https://www.ispyconnect.com/docs/agent/api
  26. You can use these commands on their own, with a group or by passing in an object type and and object id:
  27. -- specify ot=2 for a camera or ot=1 for a microphone and pass in an object id - you can find the object id (oid) on the server object list on the web portal (second column).
  28. switchon&ot=2&oid=1
  29. -- specify a group name
  30. switchon&group=garage
  31. -- apply to all objects
  32. switchon
  33. To run an executable file say to open a garage door or something you'd leave off the REM ispy-internal command and just create a regular .bat (or .sh on linux/ osx) file like
  34. start "c:\program files\acme garage door" opensesame.exe