Change config from cli #171
-
Is there an option in motionplus to change config from cli? In motion i can control the settings from cli like this: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There is.....it is just that the documentation doesn't exist on how.... Status is via a json page. e.g.
Others are now "post" actions in Motionplus versus them being "get" actions in Motion. Below are some examples. (camid would vary by user. Use camid=0 for all cameras) Available commands: Usage: I'd note that setting of the configuration parameters via the web interface needs additional work and structural changes to the code (e.g. The class conversion process currently being implemented). As a result, you'll probably need to restart any camera affected by a configuration revision to see the change. |
Beta Was this translation helpful? Give feedback.
There is.....it is just that the documentation doesn't exist on how....
Status is via a json page. e.g.
http://localhost:8080/0/status.json
Others are now "post" actions in Motionplus versus them being "get" actions in Motion. Below are some examples. (camid would vary by user. Use camid=0 for all cameras)
Available commands:
eventstart, eventend, snapshot, pause, unpause, restart, stop, config_write, camera_add, camera_delete, config, action_user, pan_left, pan_right, tilt_up, tilt_down, zoom_in, zoom_out
Usage:
curl -s -o -X POST http://localhost:8080/ --data "camid=101" --data "command=eventend" 1>/dev/null
curl -s -o -X POST http://localhost:8080/ --data "camid=101" --data "command=co…