The Features Menu :: SD Card


param.cgi?cmd=getsdinfo

Get SD Card Parameter

  • sdstatus: SD card mounted [0, 1]
  • sdfreespace: Available space on SD card
  • sdtotalspace: Total space on SD card

Example

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

cmd="getsdinfo";
sdstatus="1";
sdfreespace="26341867520";
sdtotalspace="32028753920";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getsdinfo&user=admin&pwd=instar

cmd="getsdinfo";
sdstatus="1";
sdfreespace="15773270016";
sdtotalspace="15804137472";
response="200";

param.cgi?cmd=sdfrmt

Format SD Card

  • fs: Optional parameter to select the filesystem format - defaults to exFAT [exfat, fat32]

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=sdfrmt&fs=exfat
GET: http://192.168.2.168/param.cgi?cmd=sdfrmt&user=admin&pwd=instar

cmd="sdfrmt";
response="200";

param.cgi?cmd=sdstop

Unmount SD Card

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=sdstop
GET: http://192.168.2.168/param.cgi?cmd=sdstop&user=admin&pwd=instar

cmd="sdstop";
response="200";

param.cgi?cmd=sdstart

Mount SD Card

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=sdstart
GET: http://192.168.2.168/param.cgi?cmd=sdstart&user=admin&pwd=instar

cmd="sdstart";
response="200";

param.cgi?cmd=getsdattr

Automatically delete files on SD card after x days

  • sd_autodelete: Enable / disable automated file deletion [1, 0]
  • sd_rstorage_enable: Enable / disable deletion of files older than specified in the param below [1, 0]
  • sd_rstorage_duration: Maximum storage duration of images and recordings [1-30]

Example

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

cmd="getsdattr";
sd_autodelete="1";
sd_rstorage_enable="1";
sd_rstorage_duration="5";
response="200";
GET: http://192.168.2.168/param.cgi?cmd=getsdattr&user=admin&pwd=instar

cmd="getsdattr";
sd_autodelete="1";
sd_rstorage_enable="0";
sd_rstorage_duration="10";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setsdattr&sd_autodelete=0&sd_rstorage_enable=0&sd_rstorage_duration=10

cmd="setsdattr";
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 - 86400] 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=getsdactionattr

Set SD Alarm Snapshot Count

  • snapcount: Number of Snapshots per Alarm Event [1,10]

Example

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

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

cmd="getsdactionattr";
snapcount="5";
response="200";
SET: http://admin:instar@192.168.2.168/param.cgi?cmd=setsdaction&snapcount=10

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