[OBSOLETE] Foscam Camera Device Handler Universal DTH with Motion Detection - SD (FI89xx), HD Ambarella FI98xx, FI99xx, Cx, Gx, Rx, Ex, Zx, Fosbaby

nope did that like 20 times already :sweat:

Your adding the device to the device handler section, correct? Do not add device to smart apps section in IDE.

1 Like

yes. The smartapp went well.

Odd, I’m still thinking it’s an IDE issue. Try restarting your browser.

1 Like

oke got it operational now. But it won’t stream the video apparently? only still images?

Can i see the video feed when motion is detected?

ST app does not support video stream. Only images.

1 Like

Oke but on the site Smartthings says:

Video integration with Hub v2 FAQ
With Hub v2 and our new app, SmartThings now provides video capabilities, including live streaming and event-based clips, for improved home security and peace of mind.

Only with their approved devices. Keep digging and you’ll find the list of Samsung and D-link wifi cameras that are approved.

1 Like

@RBoy Is there any reason why you are converting the hostname to an IP Address in the code ? Like I said earlier, people that are relying on the hostname only (Like reverse proxy) like myself will not be able to connect through the ip only.

Is there any way you could take the URL as is instead of converting to the ip address, or at least, give an option to do it so ?

thanks!

1 Like

Done!
Version 2.4.0
Added support for reverse proxies, don’t convert hostname to IPAddress for primary connection (fallback connection still needs to convert back to public IP address if primary connection fails)

How do you make the camera move in larger increments when controlling PTZ in device handler?

I receive this when running the preset option in a browser. Does this mean my camera will not work with presets from URL?

CGI_result
<result>0</result>
<runResult>1</runResult>
    CGI_Result

Also, an FYI to everyone…If you are receiving the error below I think it is due to the account not having admin rights on the camera for the specific functions.

0355658b-c34c-4de7-89dc-1c4df71456c1 7:21:33 PM: error Camera responded with result -3 → Access denied
0355658b-c34c-4de7-89dc-1c4df71456c1 7:21:33 PM: trace Received response from camera to httpGet, headers=text/plain, status=200
0355658b-c34c-4de7-89dc-1c4df71456c1 7:21:33 PM: trace Sending httpGet command → http://:8001/cgi-bin/CGIProxy.fcgi?usr=&pwd=&cmd=getMirrorAndFlipSetting
0355658b-c34c-4de7-89dc-1c4df71456c1 7:21:33 PM: trace IPAddress ******* is a public IP Address
0355658b-c34c-4de7-89dc-1c4df71456c1 7:21:33 PM: trace Request was successful, data=[[[host:
, class:IN, ttl:41, type:A, ip:]]], status=200
0355658b-c34c-4de7-89dc-1c4df71456c1 7:21:33 PM: error Camera responded with result -3 → Access denied
0355658b-c34c-4de7-89dc-1c4df71456c1 7:21:33 PM: trace Received response from camera to httpGet, headers=text/plain, status=200
0355658b-c34c-4de7-89dc-1c4df71456c1 7:21:33 PM: trace Sending httpGet command → http://
:8001/cgi-bin/CGIProxy.fcgi?usr=&pwd=&cmd=getInfraLedConfig
0355658b-c34c-4de7-89dc-1c4df71456c1 7:21:33 PM: trace IPAddress ******* is a public IP Address
0355658b-c34c-4de7-89dc-1c4df71456c1 7:21:33 PM: trace Request was successful, data=[[[host:
, class:IN, ttl:41, type:A, ip:]]], status=200
0355658b-c34c-4de7-89dc-1c4df71456c1 7:21:33 PM: error Camera responded with result -3 → Access denied
0355658b-c34c-4de7-89dc-1c4df71456c1 7:21:33 PM: trace Received response from camera to httpGet, headers=text/plain, status=200
0355658b-c34c-4de7-89dc-1c4df71456c1 7:21:33 PM: trace Sending httpGet command → http://:8001/cgi-bin/CGIProxy.fcgi?usr=&pwd=&cmd=getDevState
0355658b-c34c-4de7-89dc-1c4df71456c1 7:21:33 PM: trace IPAddress ****** is a public IP Address
0355658b-c34c-4de7-89dc-1c4df71456c1 7:21:33 PM: trace Request was successful, data=[[[host:*****, class:IN, ttl:42, type:A, ip:
****]]], status=200
0355658b-c34c-4de7-89dc-1c4df71456c1 7:21:32 PM: trace Poll called

1 Like

Depends upon the type of camera SD or HD, it has different ways of handling it. You can see the code and tweak it.

The presets work fine not sure what you’re trying to do.

Ok, ill check the code for the PTZ.

Wait I see whats wrong, my error. I didnt fill in the presets in preferences. Ill try it again.

1 Like

Any update on the API and intergrated video streaming?

1 Like

No update yet from ST

Foscam Motion Alarm Monitor SmartApp
Version 2.5.0

  • Built a brand new scheduling system with a backup heartbeat monitor to make motion detection more reliable.

This hopefully will put a patch for the broken ST timers that some users are facing making motion detection more reliable.

Foscam Motion Alarm Monitor SmartApp
Version 2.5.2

  • Optimize heartbeat system to kick start only when required

Foscam Motion Alarm Monitor SmartApp
Version 2.5.3

  • Updated the OAuth system to be compliant with ST’s (newer) URL standards (used for SD Push Notifications)

Can I use this for Sound detection?

For example…
If sound is past X threshold then email me or set off alarm