I am trying to control a Foscam FI8918W using HSTouch. I assigned port 10201 to it and forward the port. I can control the camera with a browser.
I downloaded 'HomeSeer Pan Tilt Camera.xml' and changed all references to IP, Port, User & Password to match my camera.
In HSTouch I get live video with ImageURLNormal set to 'http://192.168.1.16:10201/snapshot.cgi?user=xxx&pwd=xxx'
The ActionsWhenPressed button is configured as follows:
HomeSeer: Run a HomeSeer script with values from elements(s)
&hs.GetUrl("http://192.168.1.16:10201/decoder_control.cgi?command=6&user=xxx&pwd=xxx","",True,1020 1)
The ActionsWhenReleased button is configured as follows:
HomeSeer: Run a HomeSeer script with values from elements(s)
&hs.GetUrl("http://192.168.1.16:10201/decoder_control.cgi?command=7&user=xxx&pwd=xxx","",True,1020 1)
When I click any pan or tilt control in HSTouch, I get the error:
"Failed to run the script: ERROR: The remote server returned an error: (401) Unauthorized."
I tried removing the port reference-
&hs.GetUrl("http://192.168.1.16/decoder_control.cgi?command=6&user=xxx&pwd=xxx","",True,1020 1)
And I get this error:
"Failed to run the script: ERROR: Unable to connect to the remote server"
So I put the port reference back in.
I have tried many things including:
Installing Netcam plug-in - made no difference so I disabled it
Deleting the forwarding of port 10201 - - made no difference so I put it back in
I tried changing "True" to "False" - no joy
I tried using the admin login for the camera - again no joy
Verified that my camera has the latest firmware
I have surfed the forums for days on end, trying to find the meaning of Error 401.
I give up. What am I doing wrong?
Thank you
I downloaded 'HomeSeer Pan Tilt Camera.xml' and changed all references to IP, Port, User & Password to match my camera.
In HSTouch I get live video with ImageURLNormal set to 'http://192.168.1.16:10201/snapshot.cgi?user=xxx&pwd=xxx'
The ActionsWhenPressed button is configured as follows:
HomeSeer: Run a HomeSeer script with values from elements(s)
&hs.GetUrl("http://192.168.1.16:10201/decoder_control.cgi?command=6&user=xxx&pwd=xxx","",True,1020 1)
The ActionsWhenReleased button is configured as follows:
HomeSeer: Run a HomeSeer script with values from elements(s)
&hs.GetUrl("http://192.168.1.16:10201/decoder_control.cgi?command=7&user=xxx&pwd=xxx","",True,1020 1)
When I click any pan or tilt control in HSTouch, I get the error:
"Failed to run the script: ERROR: The remote server returned an error: (401) Unauthorized."
I tried removing the port reference-
&hs.GetUrl("http://192.168.1.16/decoder_control.cgi?command=6&user=xxx&pwd=xxx","",True,1020 1)
And I get this error:
"Failed to run the script: ERROR: Unable to connect to the remote server"
So I put the port reference back in.
I have tried many things including:
Installing Netcam plug-in - made no difference so I disabled it
Deleting the forwarding of port 10201 - - made no difference so I put it back in
I tried changing "True" to "False" - no joy
I tried using the admin login for the camera - again no joy
Verified that my camera has the latest firmware
I have surfed the forums for days on end, trying to find the meaning of Error 401.
I give up. What am I doing wrong?
Thank you
Comment