The Alarm Menu :: Actions


param.cgi?cmd=getalarmattr

Set Motion Detection

  • armed: Disable alarm completly by ignoring all alarm triggers [0, 1]
  • linkpir: Link (AND) the PIR motion sensor with the internal motion detection [0, 1]
  • linkpirareas: By default if linkpir is activated all areas will be coupled with the camera's PIR sensor. The areas are assigned numbers according to the arabic number deduction of the third mantra in the sacred scrolls of Kuvah'magh as referenced in the Paq'bath book of honor. The number 0 means that all areas are linked. The number 5 stands for areas one and two. 8 is area four and 11 stands for areas 1,2 and 4.
  • linkio: Link (AND) the alarm input with the internal alarm [0, 1]
  • linkperif: Link (AND) PIR with IO [0, 1]
  • linkiopir: Link (AND) internal motion detection with PIR and IO [0, 1]

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getalarmattr

cmd="getalarmattr";
armed="1";
linkio="0";
linkpir="0";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getalarmattr&user=admin&pwd=instar

cmd="getalarmattr";
armed="0";
linkpir="0";
linkio="0";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setalarmattr&linkpir=1

cmd="setalarmattr";
response="200";
SET: http://192.168.2.168/param.cgi?cmd=setalarmattr&armed=0&user=admin&pwd=instar

cmd="setalarmattr";
response="200";

param.cgi?cmd=getaudioalarmattr

Set Audio Detection Parameter

  • enable: De/Activate Audio Detection [0, 1]
  • threshold: Sensitivity [1 - 100]

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getaudioalarmattr

cmd="getaudioalarmattr";
enable="0";
threshold="5";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getaudioalarmattr&user=admin&pwd=instar

cmd="getaudioalarmattr";
enable="1";
threshold="60";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setaudioalarmattr&enable=1

cmd="setaudioalarmattr";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setaudioalarmattr&enable=0&threshold=10

cmd="setaudioalarmattr";
response="200";

param.cgi?cmd=getpirattr

Set Passive Infrared Motion Detection Sensor Parameter

  • enable: De/Activate PIR Sensor [0, 1]

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getpirattr

cmd="getpirattr";
enable="0";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getpirattr&user=admin&pwd=instar

cmd="getpirattr";
enable="0";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setpirattr&enable=0

cmd="setpirattr";
response="200";

param.cgi?cmd=getpirnightmode

  • enable: Only activate IR LEDs when the PIR Sensor is triggered [0,1]
  • interval: Period that the IR LEDs will be active. This time-window will be reset by a new trigger event [0,3600]

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getpirnightmode

cmd="getpirnightmode";
enable="0";
interval="60";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getpirnightmode&user=admin&pwd=instar

cmd="getpirnightmode";
enable="0";
interval="60";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setpirnightmode&enable=1

cmd="setpirnightattr";
response="200";

param.cgi?cmd=getioattr

Set Alarm Input Parameter

  • enable: De/Activate Alarm Input [0, 1]
  • idle: [0]: NC (normally closed), [1]: NO (normally open)

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getioattr

cmd="getioattr";
enable="0";
idle="0";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getioattr&user=admin&pwd=instar

cmd="getioattr";
enable="0";
idle="0";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setioattr&io_enable=0&idle=0

cmd="setioattr";
response="200";

param.cgi?cmd=getsdaction

Set SD Storage Parameter

Recording options on SD card:

  • enable: De/Activate alarm recording [0, 1]
  • interval: Recording interval / Cooldown time [1 - 3600] s
  • type: rec, manualrec, snap, timedsnap
    • rec: Alarm video recording
    • manualrec: Manual video recording
    • snap: Alarm snapshot recording
    • timedsnap: Manual snapshot recording

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getsdaction

cmd="getsdaction";
enable['snap']="0";
interval['snap']="120";
enable['timersnap']="0";
interval['timersnap']="30";
enable['rec']="0";
interval['rec']="0";
enable['manualrec']="1";
interval['manualrec']="0";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getsdaction&type=rec&user=admin&pwd=instar

cmd="getsdaction";
enable="0";
interval="120";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setsdaction&type=snap&enable=0&interval=60

cmd="setsdaction";
response="200";

param.cgi?cmd=getftpaction

Set FTP Storage Parameter

Recording options on FTP server:

  • enable: Enable / Disables specified upload action to the FTP server [0, 1]
  • interval: Cooldown time between Uploads [1 - 3600] s
  • type: rec, snap, timersnap
    • rec: Alarm video recording
    • snap: Alarm snapshot recording
    • timersnap: Planned snapshot recording

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getftpaction

cmd="getftpaction";
enable['rec']="0";
interval['rec']="0";
enable['snap']="0";
interval['snap']="15";
enable['timersnap']="0";
interval['timersnap']="820";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getftpaction&type=snap&user=admin&pwd=instar

cmd="getftpaction";
enable="0";
interval="15";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setftpaction&type=rec&enable=1&interval=60

cmd="setftpaction";
response="200";

param.cgi?cmd=getftpactionattr

Function | Get Snapshot Count for the Alarm FTP Upload

  • snapcount: Count of snapshots uploaded to the FTP server with every alarm event [1-10]

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getftpactionattr
cmd="getftpactionattr";
snapcount="5";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getftpactionattr&user=admin&pwd=instar
cmd="getftpactionattr";
snapcount="5";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setftpactionattr&snapcount=10
cmd="setftpactionattr";
response="200";

param.cgi?cmd=getcloudaction

Set INSTAR Cloud Storage Parameter

Enable / Disables upload to the INSTAR Cloud:

  • enable: De/Activate alarm recording [0, 1]

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getcloudaction

cmd="getcloudaction";
enable="0";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getcloudaction&user=admin&pwd=instar

cmd="getcloudaction";
enable="0";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setcloudaction&enable=1

cmd="setcloudaction";
response="200";

param.cgi?cmd=getrelayaction

Set Passive Infrared Motion Detection Sensor Parameter

  • enable: De/Activate alarm output relay [0, 1]
  • idle: Circuit Normally Closed N.C. [0] or Normally Open N.O. [1]
  • time: Relay kept open/close after trigger in seconds [1-3600]

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getrelayaction

cmd="getrelayaction";
enable="0";
idle="1";
time="15";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getrelayaction&user=admin&pwd=instar

cmd="getrelayaction";
enable="0";
idle="1";
time="15";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setrelayaction&enable=0&idle=0&time=60

cmd="setrelayaction";
response="200";

param.cgi?cmd=getalarmrecattr

Set Alarm Video Recording

  • resolution: Resolution of the alarm recording full resolution [11] or reduced resolution [12], [13]
  • time: Length of alarm recordings in seconds [15,30,45,60]

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getalarmrecattr

cmd="getalarmrecattr";
resolution="11";
time="15";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getalarmrecattr&user=admin&pwd=instar

cmd="getalarmrecattr";
resolution="11";
time="15";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=setalarmrecattr&resolution=11&time=30

cmd="setalarmrecattr";
response="200";

param.cgi?cmd=getmaaction

Enable / Disables Alarm EMail Snapshots

  • enable: De/Activate alarm recording [0, 1]
  • interval: Cooldown time between Mails [1 - 3600] s

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getmaaction

cmd="getmaaction";
enable="0";
interval="60";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getmaaction&user=admin&pwd=instar

cmd="getmaaction";
enable="0";
interval="60";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=setmaaction&enable=1

cmd="setalarmrecattr";
response="200";

param.cgi?cmd=getmaactionattr

Attach Alarm Snapshots EMail

  • snapcount: Attach snapshot to email [0-10]

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getmaactionattr

cmd="getmaactionattr";
snapcount="5";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getmaactionattr&user=admin&pwd=instar

cmd="getmaactionattr";
snapcount="10";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=setmaactionattr&snapcount=3

cmd="setmaactionattr";
response="200";

param.cgi?cmd=getaudioaction

Set Alarm Audio Signal

  • enable: Enable / Disables alarm tone that gets played through the speaker or line-out [0, 1]
  • interval: Alarm cooldown [5 - 60]

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getaudioaction

cmd="getaudioaction";
enable="0";
interval="15";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getaudioaction&user=admin&pwd=instar

cmd="getaudioaction";
enable="0";
interval="15";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=setaudioaction&enable=1

cmd="setalarmrecattr";
response="200";

param.cgi?cmd=getalarmrecattr

Alarm Video Recording Status

  • resolution: Alarm video resolution - full resolution [11], medium resolution [12], small resolution [13]
  • time: Alarm video length - [15] - [60] seconds

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getalarmrecattr

cmd="getalarmrecattr";
resolution="11";
time="15";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getalarmrecattr&user=admin&pwd=instar

cmd="getalarmrecattr";
resolution="11";
time="15";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setalarmrecattr&resolution=11&time=15

cmd="setalarmrecattr";
response="200";

param.cgi?cmd=getrecordstatus

Alarm Video Recording Status

  • recstatus: Recording status not recording [0], alarm recording [1], scheduled recording [2], manual recording [3]

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getrecordstatus

cmd="getrecordstatus";
recstatus="0";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getrecordstatus&user=admin&pwd=instar

cmd="getrecordstatus";
recstatus="0";
response="200";

param.cgi?cmd=getalarmsnapattr

Set Number of Alarm Snapshots

  • resolution: Set Snapshot Resolution to Video Channel [11,12]
  • count: Number of Snapshot saved to SD Card per Alarm Event [1-10]
  • interval: Cooldown interval between upload sequences [1-20]

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getalarmsnapattr

cmd="getalarmsnapattr";
resolution="11";
count="6";
interval="2";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getalarmsnapattr&user=admin&pwd=instar

cmd="getalarmsnapattr";
resolution="11";
count="5";
interval="1";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setalarmsnapattr&resolution=12&count=2&interval=20

cmd="setalarmsnapattr";
response="200";

param.cgi?cmd=getobjdetattr

Configure the Object Detection (Person, Car, Animal)

  • enable: Activate / Deactivate the Object Detection [1,0]
  • threshold: Threshold is the certainty required to trigger a detection [0-100]

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getobjdetattr

cmd="getobjdetattr";
enable="0";
threshold="60";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getobjdetattr&user=admin&pwd=instar

cmd="getobjdetattr";
enable="0";
threshold="60";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setobjdetattr&enable=1&threshold=60

cmd="setobjdetattr";
response="200";

param.cgi?cmd=pollobjects

Configure the Object Detection (Person, Car, Animal)

  • type: Detected object type [person, car, animal]
  • x: x position of detected object
  • y: y position of detected object

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=pollobjects

cmd="pollobjects";
type="0";
x="289";
y="34";
GET: http://192.168.2.168/param.cgi?cmd=pollobjects&user=admin&pwd=instar

cmd="pollobjects";
type="0";
x="124";
y="1003";

Debugging

param.cgi?cmd=pushhostalarm

Trigger an Alarm Event. Trigger will show up as 2022-04-26 08:51:38: Manual alarm triggered in System/Log.

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=pushhostalarm
cmd="pushhostalarm";
response="200";

param.cgi?cmd=getstressalarm

Trigger continuous Alarm Events

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getstressalarm
cmd="getstressalarm";
enable="0";
response="200";
GET: http://admin:instar@192.168.2.168/param.cgi?cmd=setstressalarm&enable=1
cmd="setstressalarm";
response="200";