Skip to content

bigjohnson/axis_2120_curl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

axis_2120_curl

Some curl lines for power relay on/off and reset the camera

Reset:

curl -X POST -d "do_reboot=yes&servermanager_do=set_variables" -u "root:password" "http://192.168.2.228/this_server/ServerManager.srv"

Relay closed:

curl -X POST -d "do_relay=off&servermanager_do=set_variables" -u "root:password" "http://192.168.2.228/this_server/ServerManager.srv"

Relay open:

curl -X POST -d "do_relay=on&servermanager_do=set_variables" -u "root:password" "http://192.168.2.228/this_server/ServerManager.srv"

This is really counterintuitive but work, I test it with a multimeter...

And some bonus ffplay view command:

ffplay.exe -f mjpeg -i "http://192.168.2.228/axis-cgi/mjpg/video.cgi?camera=&resolution=704x576"

Default parameter view:

ffplay.exe -f mjpeg -i "http://192.168.2.228/axis-cgi/mjpg/video.cgi"

Obviously change ip, username and password!

About

Some curl lines for power relay on/off and reset the camera

Topics

Resources

License

Stars

Watchers

Forks

Contributors