Can’t hurt. Not sure why it is disconnecting.
I’ve got my cameras to both work by using code from Drew at post 306
Generic Camera Device using local connection:
I’ve modified his code for both cameras and it works fine for me.
Hi, I recently bought a Sunluxy BT470 camera thinking I could make it work with smartthings hub.
I found its cgi path (http://:81$IP/livestream.cgi?user=$USER&pwd=$PWD&streamid=0&audio=0&filename=), but I am not able to see anything with the generic camera device.
I get this log:
4cd3c970-6589-475e-bbea-163b16e4075f 20:43:27: debug GET /livestream.cgi?user=admin&pwd=admin&streamid=0&audio=0&filename= HTTP/1.1
Accept: /
User-Agent: Linux UPnP/1.0 SmartThings
HOST: 192.168.1.100:81
Authorization: Basic YWRtaW46YXBkMTQ1MDVqYw==
4cd3c970-6589-475e-bbea-163b16e4075f 20:43:27: debug The method is GET
4cd3c970-6589-475e-bbea-163b16e4075f 20:43:27: debug The Header is [HOST:192.168.1.100:81, Authorization:Basic YWRtaW46YXBkMTQ1MDVqYw==]
4cd3c970-6589-475e-bbea-163b16e4075f 20:43:27: debug Uses which method: GET
Can anyone help me?
Thank you very much!
you are using a stream, this devicetype is just for images. Find a url to the image or switch to my newer live video stream generic device, here: [RELEASE] Generic Video Camera DeviceType, Yes, Live Video Streaming
I’m finding that I cannot access the video externally, but have no issues locally.
If I’m on my home network it works perfectly, but if I turn off wifi it says “Camera cannot be found…”
Same happened though my work network…
When I re-connect to my home network it functions perfectly… It’s 100% reproducible for me…
On the same network I have a Samsung HD Pro cam and it works with no issues local or remote…
Yes, ST has not opened up the video core engine to allow stream through the hub. This is just mobile app to camera directly, so it will only work via local or vpn. I do not recommend port forwarding.
I’m guessing this also means it won’t work in record mode on security alert?
Correct. ST genius hard at work.
That’s odd, I was making some adjustments and the Generic Camera entry under SmartApps has vanished. I decided to delete all and start from scratch but it didn’t help…
It’s the weirdest thing, it vanished and won’t come back… I deleted the device handler and both smart apps, then re-created them with fresh code… It’s driving me crazy… :s
- update -
Alright, I’m a total moron…
I deleted the smart app instance & forgot the reinstall, this was the issue… Re-installing it from My Apps fixed it…
@pstuart : Just got confirmation from support/ST, there is a known problem that is being tracked which can cause the app to crash when using this functionality. So the issue I was having, is a known issue, they claim it is a “rare issue” that is being tracked. So if you run into that with someone else, at least its known by support.
Reference: When I use the app, my SmartThings app crashes during connection of the video stream. I suspect, its right when the connection is made, during that handshake or the moment a video feed is being received.
Support flagged my email with the problem code, so hopefully I will hear more in the near future.
Anyone tried getting this to work with a unifi g3 cam? I have tried it but it seems to do nothing at all and no data for the device shows up in live logging at all… I did read that there are size limitations is a 1080p image to large? in a browser I can get the image at 10.10.0.22:80/snap.jpeg with no authentication
I’m running into a problem where parse never gets called. I’ve even tried hitting some small static images. Nothing.
The hubAction API is maddening. It’s not fully documented and behaves differently when it is called from a smartapp than when called from a device. This is a frustrating environment to code in. It would be nice if we just had some javadocs. And the lack of decent compile time checking just makes things worse. . . .
I figured out my problem. The device was not associated with the hub. It took me a while to find what minimal hub logging is exposed in the hub event list. I’m glad they exposed this.
I’m experimenting with using the IP Webcam Pro app as my motion detector to call tasker to wake the screen to show Smarttiles. Seems to work so far.
Hey guys been reading thru the thread… I have 8 cameras that I have set up with Onvif… All ports forwarded correctly and all streaming with my system great… I put alot of time into setting it up… What’s the easiest way to locate my snapshot link?
I’m not seeing it anywhere, and I tried the few samples in the thread and they aren’t working… I want to first get the snapshot in a web browser, before I install the devices.
See if you can find your cameras here:
OK I’ll give that a whirl when I get to PC… Will that give me the jpg link?
For most common cameras, yes. But it’s not always right for some lesser known cameras. For instance, I bought a little $20 elp camera and it turns out that it didn’t have a snapshot url, though ispy listed on. This made it worthless to me. (I burnt it up on accident yesterday. No big loss.)
Ok I got my camera loaded into that app… I see it… But where do I find the jpg link?
You don’t need to use that program. The website for the program has a database of sorts. Find your camera there. They list the snapshot urls.