The Features Menu :: IR Nightvision
- The Features Menu :: IR Nightvision
param.cgi?cmd=getinfrared
Get IR LED Parameter
infraredstat
: Day/Night Mode -0
(no IR),1
(always IR),2
(auto)infraredcutstat
: IRcut filter -0
(off),1
(on),2
(auto)infraredtimer
: Enable IR LED time schedule [0,1]infraredday
: Trigger time for day mode 24h=86400s [0-86399]infrarednight
: Trigger time for night mode 24h=86400s [0-86399]
Example
GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getinfrared
cmd="getinfrared";
infraredstat="0";
infraredcutstat="2";
infraredtimer="0";
infraredday="0";
infrarednight="0";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getinfrared&user=admin&pwd=instar
cmd="getinfrared";
infraredstat="2";
infraredcutstat="2";
infraredtimer="0";
infraredday="0";
infrarednight="0";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setinfrared&infraredstat=2&infraredcutstat=2&infraredtimer=0&infraredday=0&infrarednight=0
cmd="setinfrared";
response="200";
param.cgi?cmd=getnightstate
Night Image Settings State
state
: Check if your camera is in day0
or night1
mode. The night mode by default is activated by the brightness sensor when the brightness drops below the set treshold (see below). This behavior can be overridden by deactivating the auto setting ofinfraredcutstat
using thesetinfrared
command (s. above). As long as the image mode (see getimagemode) is in auto the night state will also reflect which image settings are currently in use (see getimageattr and getimagenightattr): [0
,1
]
Example
GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getnightstate
cmd="getnightstate";
state="1";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getnightstate&user=admin&pwd=instar
cmd="getnightstate";
state="0";
response="200";
param.cgi?cmd=getlightmode
LEDs (IR: 850nm, 940nm, White Light)
mode
: Only camera models with multiple LED sets0
primary IR LEDs,1
secondary IR LEDs,2
activate both IR LED setsonalarm
: When set to1
all LEDs will be turned on when an alarm is triggered (e.g. IN-8401 all 850nm & 940nm LEDs will be turned on if only the 940nm (invisible) set was on by default.).0
means don't change anything.interval
: Interval in seconds that the additional LEDs are supposed to remain on [1-60]s after an alarm trigger.wlonalarm
: When set to1
white light (WL) LEDs will be turned on when an alarm is triggered.0
means don't change anything.wlinterval
: Interval in seconds that the white light (WL) LEDs are supposed to remain on [1-60]s after an alarm trigger.wlmute
: Suppress motion detection for [1-15]s when the white light (WL) LEDs are switched. Default 5 seconds.
Example
GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getlightmode
cmd="getlightmode";
mode="0";
onalarm="0";
interval="5";
wlonalarm="1";
wlinterval="5";
wlmute="5";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getlightmode&user=admin&pwd=instar
cmd="getlightmode";
mode="0";
onalarm="0";
interval="5";
wlonalarm="1";
wlinterval="5";
wlmute="5";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setlightmode&mode=2&wlonalarm=1
cmd="setlightmode";
response="200";
param.cgi?cmd=getlightattr
Get Status LED Parameter
light_enable[1]
: WiFi Status Blue LED - [1, 0]light_enable[2]
: Power Red LED - [1, 0]
Example
GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getlightattr
cmd="getlightattr";
light_enable[1]="0";
light_enable[2]="0";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getlightattr&index=2&user=admin&pwd=instar
cmd="getlightattr";
light_enable="0";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setlightattr&index=2&light_enable=0
cmd="setinfrared";
response="200";
param.cgi?cmd=getirctrlattr
Night/Day Mode Thresholds
Get the threshold values for the min/max brightness for switching to the night/day mode.
saradc_switch_value
: Upper brightness threshold (larger value switches the camera into day mode) [1-255]saradc_switch_b2c_value
: Lower brightness threshold (lower value switches the camera into night mode) [1-255]saradc_delay_enable
: Enable a time delay before switching camera modessaradc_delay_time
: Time delay in seconds [1-60]
Example
GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getirctrlattr
cmd="getirctrlattr";
saradc_switch_value="240";
saradc_switch_b2c_value="217";
saradc_delay_enable="0";
saradc_delay_time="1";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getirctrlattr&user=admin&pwd=instar
cmd="getirctrlattr";
saradc_switch_value="240";
saradc_switch_b2c_value="217";
saradc_delay_enable="0";
saradc_delay_time="1";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setirctrlattr&saradc_switch_value=130&saradc_switch_b2c_value=120&saradc_delay_enable=0&saradc_delay_time=1
cmd="setirctrlattr";
response="200";
param.cgi?cmd=getsaradcstate
Brightness Sensor Readout
saradc_state
: Current brightness value [0-240]
Example
GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getsaradcstate
cmd="getsaradcstate";
saradc_state="231";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getsaradcstate&user=admin&pwd=instar
cmd="getsaradcstate";
saradc_state="143";
response="200";
param.cgi?cmd=getpirnightmode
Only activate LEDs when the PIR is triggered
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]wlenable
: Only activate white light (WL) LEDs when the PIR Sensor is triggered [0,1]wlinterval
: Period that the white light (WL) 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";
wlenable="0";
wlinterval="60";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getpirnightmode&user=admin&pwd=instar
cmd="getpirnightmode";
enable="0";
interval="60";
wlenable="0";
wlinterval="60";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setpirnightattr&enable=1&interval=20
cmd="setpirnightattr";
response="200";
param.cgi?cmd=illuminate
duration
: Activate white light LEDs for duration in seconds -0
for manual termination [0-120]
Example
GET: http://admin:instar@192.168.2.168/param.cgi?cmd=illuminate&duration=10
cmd="illuminate";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=illuminate&duration=10&user=admin&pwd=instar
cmd="illuminate";
response="200";
param.cgi?cmd=getlightstrength
Night Image Settings State
ir
: IR LED strength [0
-100
]iradd
: Additional IR LED strength [0
-100
]wl
: Whitelight LED strength [0
-100
]
Example
GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getlightstrength
cmd="getlightstrength";
ir="50";
iradd="0";
wl="0";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getlightstrength&user=admin&pwd=instar
cmd="getlightstrength";
ir="50";
iradd="0";
wl="0";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=setlightstrength&ir=10&user=admin&pwd=instar
cmd="setlightstrength";
response="200";