Skip to content

Web services description

roleo edited this page Aug 14, 2020 · 12 revisions

There are web services useful for many functions. The default format is JSON (or JPG for images).

Table of Contents

Snapshot

http://IP:8080/cgi-bin/snapshot.sh

Configuration

Get configuration

http://IP:8080/cgi-bin/get_configs.sh?conf=CONF

CONF action
system Get system configuration
mqtt Get mqtt configuration
camera Get camera settings

Set configuration

http://IP:8080/cgi-bin/set_configs.sh?conf=CONF

CONF action
system Update system configuration
mqtt Update mqtt configuration
camera Update camera settings

Need POST mehod with a json file.

Get status info

http://IP:8080/cgi-bin/status.json

Get hostname

http://IP:8080/cgi-bin/hostname.js

Maintenance

Load settings from file

http://IP:8080/cgi-bin/load.sh

Load configuration file (it requires post methid).

Save settings to file

http://IP:8080/cgi-bin/save.sh

Save configuration to a file.

Upgrade firmware

http://IP:8080/cgi-bin/fw_upgrade.sh?get=info

Get upgrade info.

http://IP:8080/cgi-bin/fw_upgrade.sh?get=upgrade

Start upgrade procedure.

Reboot the cam

http://IP:8080/cgi-bin/reboot.sh

Service start and stop

http://IP:8080/cgi-bin/service.sh?name=NAME&action=ACTION&param1=PARAM1&param2=PARAM2

name action param1 param2 description
onvif start/stop low/high/both yes/no Start onvif: use param1 to set resolution and param2 to set snapshot watermark (param2 is available only if action = start
ftpd start/stop busybox/pure-ftpd N/A Start ftpd: use param1 to set which daemon use
mqtt start/stop N/A N/A Start mqtt to send motion events to a broker

PTZ

Move manually

http://IP:8080/cgi-bin/ptz.sh?dir=DIRECTION

DIRECTION=left, right, up or down (required option).

Clone this wiki locally