Add following to restcommand.yaml and include in config.yaml:
# rest_command:
ptz_control_right:
url: "http://192.168.16.253/PSIA/YG/PTZCtrl/channels/0/continuous?pan=1&tilt=0"
method: PUT
headers:
Cookie: "cur_UserInfo=admin%3A123456; cur_userName=admin;"
Content-Length: "0"
ptz_control_left:
url: "http://192.168.16.253/PSIA/YG/PTZCtrl/channels/0/continuous?pan=-1&tilt=0"
method: PUT
headers:
Cookie: "cur_UserInfo=admin%3A123456; cur_userName=admin;"
Content-Length: "0"
ptz_control_stop:
url: "http://192.168.16.253/PSIA/YG/PTZCtrl/channels/0/continuous?pan=0&tilt=0"
method: PUT
headers:
Cookie: "cur_UserInfo=admin%3A123456; cur_userName=admin;"
Content-Length: "0"
ptz_control_up:
url: "http://192.168.16.253/PSIA/YG/PTZCtrl/channels/0/continuous?pan=0&tilt=1"
method: PUT
headers:
Cookie: "cur_UserInfo=admin%3A123456; cur_userName=admin;"
Content-Length: "0"
ptz_control_down:
url: "http://192.168.16.253/PSIA/YG/PTZCtrl/channels/0/continuous?pan=0&tilt=-1"
method: PUT
headers:
Cookie: "cur_UserInfo=admin%3A123456; cur_userName=admin;"
Content-Length: "0"
Then it will be possible to add buttons that triggers corresponding actions.
Коментарі
Дописати коментар