Skip to content

WebUI API

mrlt8 edited this page Jul 22, 2024 · 4 revisions

Important

WebUI and stream authentication will be enabled by default to prevent unintentional access.

Please see the Authentication page for more information.

Camera/Streams

Stream state/details

http://localhost:5000/api
http://localhost:5000/api/<camera-name>
http://localhost:5000/api/<camera-name>/state

Start/Stop Stream

http://localhost:5000/api/<camera-name>/start
http://localhost:5000/api/<camera-name>/stop

Enable/Disable Stream

http://localhost:5000/api/<camera-name>/enable
http://localhost:5000/api/<camera-name>/disable

Camera controls/commands

(see Camera Commands page for available commands)

Get value:

http://localhost:5000/api/<cam-name>/<topic>

Set value:

http://localhost:5000/api/<cam-name>/<topic>/<payload>

See REST API section for more info

Bridge Controls

Submit 2FA code

http://localhost:5000/mfa/123456

Server Sent Event

http://localhost:5000/api/sse_status

Restart camera connections

http://localhost:5000/restart/cameras

Restart rtsp-simple-server

http://localhost:5000/restart/rtsp_server

Restart All

(restarts camera connections and rtsp-simple-server)

http://localhost:5000/restart/all