Page 1 of 1

how to set the control of a camera

Posted: Fri Apr 23, 2021 6:52 am
by titof2375
hello, i have a wanscam hw0049 with the ptz working, by control i don't understand how the parameter, especially the address line?

Re: how to set the control of a camera

Posted: Thu Apr 29, 2021 7:51 pm
by orionstoy
I finally got mine set up again but it was touchy. I used a script that used to work and I had to "fix" it (Vstarcam_C24S) so I queried here. I was able to use debugging as suggested to get me going but had to learn a bit of perl scripting language to finally get it working again. Hopefully for your sake lets hope the Wanscam HW0025 will be set up with the same "setup" as the HW0049. I can only guess at the settings.. Here is what I would try:

Code: Select all

Control Type : Wanscam HW0025
Control Device : Wanscam HW0025
Control Address : username:password@IPaddress:Port ( ex: admin:changemepassword@192.168.1.150:10080 )
Auto Stop Timeout, I have set on mine for 0.10 (basically it controls how "long" the camera "moves" when you press the "directions" in the control portion of the webpage. I don't know how its set up .. but I'm assuming that 0.10 is a tenth of a second so each click on the direction arrow button moves the camera for about a tenth of a second in the direction you chose

I haven't used any of the other settings but this hopefully will get you going.

Re: how to set the control of a camera

Posted: Fri May 14, 2021 8:28 am
by titof2375
hello, it's not working
on the other hand I recovered the jsm of the camera which works with my home automation.
[{
"name": "HW0049",
"manufacturer" : "Wanscam",
"configuration": {
"urlStream": "\/tmpfs\/snap.jpg",
"refreshDelaySlow": "5",
"refreshDelayFast": "1",
"maxReccordTime": "600",
"preferVideo": "0",
"videoFramerate": "",
"commandOn": "",
"commandOff": ""
},
"commands": [
{
"display": {
"icon": "<i+class=\"fa+fa-arrow-up\"><\/i>",
"generic_type": "CAMERA_UP"
},
"eqType": "camera",
"name": "Haut",
"type": "action",
"subType": "other",
"configuration": {
"request": "\/cgi-bin\/hi3510\/ytup.cgi?",
"stopCmdUrl": ""
},
"logicalId": "",
"isVisible": "1"
},
{
"display": {
"icon": "<i+class=\"fa+fa-arrow-down\"><\/i>",
"generic_type": "CAMERA_DOWN"
},
"eqType": "camera",
"name": "Bas",
"type": "action",
"subType": "other",
"configuration": {
"request": "\/cgi-bin\/hi3510\/ytdown.cgi?",
"stopCmdUrl": ""
},
"logicalId": "",
"isVisible": "1"
},
{
"display": {
"icon": "<i+class=\"fa+fa-arrow-left\"><\/i>",
"generic_type": "CAMERA_LEFT"
},
"eqType": "camera",
"name": "Gauche",
"type": "action",
"subType": "other",
"configuration": {
"request": "\/cgi-bin\/hi3510\/ytleft.cgi?",
"stopCmdUrl": ""
},
"logicalId": "",
"isVisible": "1"
},
{
"display": {
"icon": "<i+class=\"fa+fa-arrow-right\"><\/i>",
"generic_type": "CAMERA_RIGHT"
},
"eqType": "camera",
"name": "Droite",
"type": "action",
"subType": "other",
"configuration": {
"request": "\/cgi-bin\/hi3510\/ytright.cgi?",
"stopCmdUrl": ""
},
"isVisible": "1"
},
{
"eqType": "camera",
"name": "IR On",
"type": "action",
"subType": "other",
"isHistorized": "0",
"configuration": {
"request": "\/cgi-bin\/hi3510\/param.cgi?cmd=setinfrared&-infraredstat=open"
},
"display": {
"icon": "<i class=\"icon jeedom2-lightbulb58\"><\/i>"
},
"isVisible": "0"
},
{
"eqType": "camera",
"name": "IR Off",
"type": "action",
"subType": "other",
"isHistorized": "0",
"configuration": {
"request": "\/cgi-bin\/hi3510\/param.cgi?cmd=setinfrared&-infraredstat=close"
},
"display": {
"icon": "<i class=\"icon jeedom2-lightbulb25\"><\/i>"
},
"isVisible": "0"
},
{
"eqType": "camera",
"name": "IR Auto",
"type": "action",
"subType": "other",
"isHistorized": "0",
"configuration": {
"request": "\/cgi-bin\/hi3510\/param.cgi?cmd=setinfrared&-infraredstat=auto"
},
"display": {
"icon": "<i class=\"icon jeedom2-idea13\"><\/i>"
},
"isVisible": "0"
},
{
"display": {
"icon": "<i class=\"fa fa-home\"><\/i>",
"generic_type": "CAMERA_PRESET"
},
"name": "Pos+1",
"type": "action",
"subType": "other",
"configuration": {
"request": "\/web\/cgi-bin\/hi3510\/param.cgi?cmd=preset&-act=goto&-number=0"
},
"isVisible": "1"
},
{
"display": {
"icon": "",
"invertBinary": "0"
},
"name": "Pos+2",
"type": "action",
"subType": "other",
"configuration": {
"request": "\/web\/cgi-bin\/hi3510\/param.cgi?cmd=preset&-act=goto&-number=1"
},
"isVisible": "1"
},
{
"display": {
"icon": "",
"invertBinary": "0"
},
"name": "Pos+3",
"type": "action",
"subType": "other",
"configuration": {
"request": "\/web\/cgi-bin\/hi3510\/param.cgi?cmd=preset&-act=goto&-number=2"
},
"isVisible": "0"
},
{
"display": {
"icon": "",
"invertBinary": "0"
},
"name": "Pos+4",
"type": "action",
"subType": "other",
"configuration": {
"request": "\/web\/cgi-bin\/hi3510\/param.cgi?cmd=preset&-act=goto&-number=3"
},
"isVisible": "0"
},
{
"display": {
"icon": "",
"invertBinary": "0"
},
"name": "Set+1",
"type": "action",
"subType": "other",
"configuration": {
"request": "\/web\/cgi-bin\/hi3510\/param.cgi?cmd=preset&-act=set&-status=1&-number=0"
},
"isVisible": "0"
},
{
"display": {
"icon": "",
"invertBinary": "0"
},
"name": "Set+2",
"type": "action",
"subType": "other",
"configuration": {
"request": "\/web\/cgi-bin\/hi3510\/param.cgi?cmd=preset&-act=set&-status=1&-number=1"
},
"isVisible": "0"
},
{
"display": {
"icon": "",
"invertBinary": "0"
},
"name": "Set+3",
"type": "action",
"subType": "other",
"configuration": {
"request": "\/web\/cgi-bin\/hi3510\/param.cgi?cmd=preset&-act=set&-status=1&-number=2"
},
"isVisible": "0"
},
{
"display": {
"icon": "",
"invertBinary": "0"
},
"name": "Set+4",
"type": "action",
"subType": "other",
"configuration": {
"request": "\/web\/cgi-bin\/hi3510\/param.cgi?cmd=preset&-act=set&-status=1&-number=3"
},
"isVisible": "0"
}
]
}
][/quote]