Foscam Universal Internal Device Type (HD\Non-HD with Alarm\LED\PTZ Control)

@Wolfpack do you see any errors in the logs? I just tested with the same model camera and it works fine.

How do I view the logs? I managed to get the camera working in smarttiles, but it only works in Firefox. Should the IP be the local IP? Or a DDNS?

@Wolfpack When you are inside the IDE, there is an option at the top that says ā€œLive Loggingā€.

Thatā€™s interesting itā€™s working in the smarttiles but not the app. Itā€™s been a little while but I believe i set this up to work with either the local or public address. What kind of phone do you have?

I use a Samsung S5. Interestingly the camera did finally come up on smarttiles in Chrome, but not right away like my 8910W. For the error log, I think itā€™s this:

Parsing ā€˜index:01, mac:E8ABFA2C2DF3, ip:C0A80111, port:0058, requestId:34a2ba16-88a9-4879-95d0-721964b3825d, headers:SFRUUC8xLjEgMjAwIE9LDQpDb250ZW50LVR5cGU6IHRleHQvcGxhaW4NClRyYW5zZmVyLUVuY29kaW5nOiBjaHVua2VkDQpEYXRlOiBTdW4sIDEzIFNlcCAyMDE1IDAzOjA0OjMyIEdNVA0KU2VydmVyOiBsaWdodHRwZC8xLjQuMzE=, body:PENHSV9SZXN1bHQ+CiAgICA8cmVzdWx0PjA8L3Jlc3VsdD4KPC9DR0lfUmVzdWx0Pgo=ā€™

All,

Iā€™m new to smartthings (long time vera lite user) and Iā€™m having issues with the camera.

I added the device type and 2 devices for my 2 cameraā€™s. I think theyā€™re 8990ā€™s or something. The older non HD camera.
Neither of my cameraā€™s show a live camera feed. My basement camera however I can control from the app and I can take screenshots with then show up but nothing live streaming. My garage camera doesnā€™t do anything.

Hereā€™s a piece of from the log file when I hit cruise map 2 on my Garage cam:

b1897c70-30ad-4595-af43-b3d08028e985 1:15:34 PM: info Refreshing dataā€¦
787b7867-9d0e-45d3-8202-70246ab9d57b 1:15:33 PM: debug Parsing 'index:03, mac:E8ABFA075AB9, ip:C0A8FA33, port:0050, requestId:b34f8697-b044-4d75-8e44-9e0e16cfba06, headers:SFRUUC8xLjEgNDA0IE5vdCBGb3VuZA0KU2VydmVyOiBCb2EvMC45NC4xMw0KRGF0ZTogTW9uLCAyMSBTZXAgMjAxNSAxNzoxNToyMiBHTVQNCkNvbnRlbnQtVHlwZTogdGV4dC9odG1sDQpDb250ZW50LUxlbmd0aDogMTI2DQpDb25uZWN0aW9uOiBjbG9zZQ==, body:PEhUTUw+PEhFQUQ+PFRJVExFPjQwNCBOb3QgRm91bmQ8L1RJVExFPjwvSEVBRD4KPEJPRFkgQkdDT0xPUj0iI2NjOTk5OSI+PEg0PjQwNCBOb3QgRm91bmQ8L0g0PgpGaWxlIG5vdCBmb3VuZC4KPC9CT0RZPjwvSFRNTD4Kā€™
787b7867-9d0e-45d3-8202-70246ab9d57b 1:15:32 PM: debug /cgi-bin/CGIProxy.fcgi?usr=vera&pwd=xxxxxxx&cmd=ptzStartCruise&mapName=Vertical
787b7867-9d0e-45d3-8202-70246ab9d57b 1:15:32 PM: debug Executing hubaction on 192.168.250.51:80
787b7867-9d0e-45d3-8202-70246ab9d57b 1:15:32 PM: debug Device Network Id set to c0a8fa33:0050
787b7867-9d0e-45d3-8202-70246ab9d57b 1:15:32 PM: debug Cruise Map 2 Selected - Vertical

Hello Experts, I am a novice with HT and ST. I added this code by going to My Device Types -> new device and setting it to my location. But how can i set the ip, port and password? When I tried run a simulation, with preset1, i get an out of bound exception.
After adding this device type, should I be creating my own app to take snapshot etc?

@Vol Live streaming is not yet implemented for these cameras yet. Iā€™m hoping to figure it out soon now that the new hub has been released.

@indyquad I donā€™t believe this works using a simulation because it is using APIā€™s to connect to an external device that is separate from SmartThings. After you install the device type you can configure everything on your mobile device.

Thanks a lot for your code @eparkerjr. I was about to pay for the other user to get his device code. I got this to work with my Foscam 9821W camera. I got the v2 Hub 2 days ago. I am new user from VeraEdge. I have question about camera support in ST. I know that live streaming currently only works with couple Dlink and Samsung cameras. For now do I have to press TAKE button to see an updated picture from cameras? Can it does automatically every 5 seconds like the way Vera does?

@binhton With the device type alone you need to press take to see an updated picture. You will need a smartapp to trigger taking pictures every 5 seconds. What exactly are you looking for? I can probably whip something up pretty quick.

FYI - The person that is charging for the similar device type took my code and modified it a little. I donā€™t support his development or methods in any way.

1 Like

@eparkerjr I just want a simple thing similar to live streaming. I sometime just go into the app and just want to view the camera to see whatā€™s going on at home. Since we canā€™t do live streaming, I just want to see the snapshots in internal of 5s until I exit. I think thatā€™s how Vera does. If you know any smartapp can do it, please point me to it.

@Erk I saw your other post but Iā€™m going to respond in here. Please take a look at the Live Logging in the IDE and let me know if you see any errors.

@eparkerjr I did not get an error, the following is what I received.

7e83bcd0-78d8-4643-b703-3091f3e1da74 8:29:01 PM: debug Parsing 'index:01, mac:C6D96BBFD5C0, ip:C0A80009, port:0058, requestId:422ef89b-992d-497a-85ba-00e905b29a49, headers:SFRUUC8xLjEgMjAwIE9LDQpDb250ZW50LVR5cGU6IHRleHQvcGxhaW4NClRyYW5zZmVyLUVuY29kaW5nOiBjaHVua2VkDQpEYXRlOiBUaHUsIDAxIE9jdCAyMDE1IDAxOjM4OjQwIEdNVA0KU2VydmVyOiBsaWdodHRwZC8xLjQuMzE=, body:PENHSV9SZXN1bHQ+CiAgICA8cmVzdWx0Pi0yPC9yZXN1bHQ+CjwvQ0dJX1Jlc3VsdD4Kā€™
7e83bcd0-78d8-4643-b703-3091f3e1da74 8:29:00 PM: debug /cgi-bin/CGIProxy.fcgi?usr=urk1998&pwd=4355m5683&cmd=setMotionDetectConfig&isEnable=0
7e83bcd0-78d8-4643-b703-3091f3e1da74 8:29:00 PM: debug Executing hubaction on 192.168.0.9:88
7e83bcd0-78d8-4643-b703-3091f3e1da74 8:29:00 PM: debug Device Network Id set to c0a80009:0058
7e83bcd0-78d8-4643-b703-3091f3e1da74 8:29:00 PM: debug Disabling Alarm
7e83bcd0-78d8-4643-b703-3091f3e1da74 8:29:00 PM: debug Toggling Alarm

@Erk Do you have the v1 or v2 hub?

@eparkerjr I have a v1 us customer hub. I have the camera on a LAN too, if that might make a difference.

@erk Looks like they changed something in the new cameras. I just got a C1 and Iā€™m having the same issue. Looking into it.

@binhton I tried making an app to do the screenshots but it looks like smartthings has an execution time limit so Iā€™m trying to figure out another method. Until live video is figured I would suggest using another app if you are going to just monitor the camera. If you have an android I would recommend the TinyCam app because it also has widgets that you can set a poll time to. For iOS Iā€™m still trying to find a decent app that actually loads the cameras consistently.

Thanks a lot for your effort. So far everything in ST v2 works well except the camera. I have moved everything from VeraEdge to ST and retired my VeraEdge system. Hopefully when ST opens their live stream, weā€™ll get Foscam camera supported. For now, Iā€™ll need to use a separate app from Foscam to monitor the cameras. For my Panasonic camera, Iā€™ll try TinyCam to see if it works.

If it helps I just got a new C1 also, and I donā€™t have issues with this device type. I have a v2 hub, though. The only thing Iā€™ve run into is the thing people mention where it says ā€œTakingā€ and never returns the pic, or returns it all corrupted. I found that only happened when I had the quality on full HD. The s3 call must be timing out due to the size, it sends the GET but never gets the parse back. Then after a couple tries itā€™ll finally get the parse back, but itā€™s like it got all of them at the same time and multiple pics are spliced into eachother.

When I lower the quality in the foscam app it works every time.

How do you lower the quality of picture taken by ST?