adri 4f61a79ad5 unignore Commands 3 недель назад
..
Alerts Off.bat 4f61a79ad5 unignore Commands 3 недель назад
Alerts On.bat 4f61a79ad5 unignore Commands 3 недель назад
All Off.bat 4f61a79ad5 unignore Commands 3 недель назад
All On.bat 4f61a79ad5 unignore Commands 3 недель назад
Apply Schedule.bat 4f61a79ad5 unignore Commands 3 недель назад
Record Off.bat 4f61a79ad5 unignore Commands 3 недель назад
Record on Alert.bat 4f61a79ad5 unignore Commands 3 недель назад
Record on Detect.bat 4f61a79ad5 unignore Commands 3 недель назад
Restart Agent.bat 4f61a79ad5 unignore Commands 3 недель назад
Run Storage Mgmt.bat 4f61a79ad5 unignore Commands 3 недель назад
Snapshot.bat 4f61a79ad5 unignore Commands 3 недель назад
Start Record.bat 4f61a79ad5 unignore Commands 3 недель назад
Stop Cloud Uploads.bat 4f61a79ad5 unignore Commands 3 недель назад
Stop Record.bat 4f61a79ad5 unignore Commands 3 недель назад
Stop Streaming.bat 4f61a79ad5 unignore Commands 3 недель назад
_Example.bat 4f61a79ad5 unignore Commands 3 недель назад
fix_archive_perms.sh 4f61a79ad5 unignore Commands 3 недель назад
readme.txt 4f61a79ad5 unignore Commands 3 недель назад
save_summary.sh 4f61a79ad5 unignore Commands 3 недель назад

readme.txt

To add your own commands to the list create a new file in the Commands directory

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:


REM ispy-internal
switchon&group=external
switchoff&group=internal
RECORD
BROADCAST 'external cameras are on and recording'

(This uses groups - so you'd need to setup your internal/ external cameras with group names on the general tab when you edit them )

list of available commands:

allon
alloff
applyschedule
stopclouduploads
recordondetecton
recordonalerton
recordingoff
record
recordstop
alerton
alertoff
snapshot
alert
switchon
switchoff

more: https://www.ispyconnect.com/docs/agent/api


You can use these commands on their own, with a group or by passing in an object type and and object id:

-- 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).
switchon&ot=2&oid=1

-- specify a group name
switchon&group=garage

-- apply to all objects
switchon

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

start "c:\program files\acme garage door" opensesame.exe