SmartTiles: Video Camera Compatibility

Right-click on the resulting image “in a browser” (i.e., not in SmartTiles), and confirm that it is a normal JPEG, perhaps?

I get 2 results using 2 different methods.

Method 1: snapPicture2 results in an image returned from the CGI right clicking and viewing the source just shows an JPG “CGIProxy.jpg”.

Method 2: snapPicture results in HTML to display the image the source shows "<img src="../snapPic/Snap_20160124-223343.jpg">"

Both work fine in a browser from my PC or Mobile.

Thanks again for the help.

Unfortunately this camera is not compatible by itself since it’s using RTSP but you can get it working by running it with blue iris as recommended by @tgauchat . I have a couple of these cameras and there is a post about this. I have the Chinese version whichalso is half the price.

Thanks, I bought the US version to try it out. I really like the daylight view, but wish I could turn off the night time view. I wish Blue Iris made a Mac version as I don’t have any PC’s in the house to use for the program.

I remember playing with VLC on a Mac for this camera as well but went with Blue Iris for multiple cameras and ST and SmartTiles integration. I know what you mean about night vision.

I am running blue iris and I am able to get video on smart tiles if I don’t have authentication enabled. How do you get video to display if you are using authentication? I can’t find the right URL format.

I don’t have a firm or tested answer, but worth trying:
https://USERNAME:PASSWORD@IPADDRESS:PORT/

Anybody know if the recently released Blink camera work with smarttiles?

I don’t know… but I don’t recommend it. The support page only demos the native App for the Camera… that’s not a good sign. We recommend starting with vendors that at least feature a web view in their online materials.

[quote=“vicjagsingh, post:274, topic:11633”]
Can Smart Tiles take links from IP Webcam running on android?

I’m thinking of using an old tablet as a center control using Smart Tiles with speech notification and as a web cam on Smart Tiles.
[/quote]I haven’t gotten it to work. I’m using IP WebCam on several Android phones and it works just fine. I can view video or still frames remotely (and I even have them hooked up at ivideon.com). From it’s doc:

http://user:password@host:port/video is the MJPEG URL
http://user:password@host:port/shot.jpg fetches the latest frame.

When I use these in SmartTiles, I get blank squares.

I figured out why the still frames don’t work: SmartTiles is appending “&rand=0.121211212” to the URL, and IP Webcam doesn’t accept and instead returns a 404 error. Is there any way to turn this off? (I can hack the source if there isn’t).

I still can’t figure out why the video tiles don’t work. If I right click in Firefox or Chrome and use “copy image location”, it spits back exactly what I entered into SmartTiles and the video streams just fine. I would have suspected IP Webcam wasn’t returning a content-type that the browser needs to be able to display that video in an tag, but I tossed together a trivial html page on my Apache and it displayed just fine:

Vid
<img src="http://user:password@host:port/video">
<br>
Img
<img src="http://user:password@host:port/shot.jpg">

Any ideas?

The URL parameter &rand= is appended to the URL to actually force the browser to refresh a still image. Without it, the animation won’t work. It is unusual for the camera to crap out because of extra URL params, but that’s a quirk of your particular camera software. I don’t know why the video is not showing in a tile…

Search the forum to see if anyone else had success with this camera. I’ve seen the name of the app mentioned a few times.

SmartTiles does this to force the new snapshot to be fetched, otherwise it can / does pull the same frame over and over again from the browser cache. There may be a more sophisticated way to set the cache expiration for the Tile … but we maximize the cache for the whole page so that it doesn’t fetch other stuff too frequently.

Might be able to make the “rand” appended parameter to be optional, but that might defeat your jpg update.

I’m sure it was a clever hotfix at the time and seemed to be mostly safe.

Let me know your ideas.

It would be so awesome if we can find a solution for this even with still picture.

Example: on Securet spycam Android app you can have still image upload to drop box. With IFTTT convert new image to a url which can be use with SmartTiles. Or always create a gig with last 5 image.

How hard will that be?

I’ve sent a request to the author of the Android IP WebCam app to ignore URL parameters rather than 404. It’s otherwise an excellent app.

(I did realize that the rand= was there to defeat the browser cache)

Interestingly enough, if I save the SmartTiles dashboard HTML and then serve that file up from my own Apache (via http), the video plays just fine. It’s only when it’s served from graph.api.smartthings.com via https that it doesn’t play. I suspect it’s some kind of browser permission issue.

Edit: I’m wrong there. I can get it to work if I visit the camera URL in another tab. After that, reloading the SmartTiles dashboard shows the video. That’s why I thought it worked from my own local page. If I restart the browser and just to go the dashboard, I see a 401 error on the console.
ui?access_token=89e2...:87 GET http://user:password@10.1.0.1:12345/video 401 (Unauthorized)

and if I ask Chrome for the request/response headers, it shows:

GET /video HTTP/1.1
Host: 10.1.0.1:12345
Connection: keep-alive
Cache-Control: max-age=0
Accept: image/webp,image/,/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.97 Safari/537.36
DNT: 1
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8

HTTP/1.1 401 Unauthorized
Content-Length: 0
WWW-Authenticate: Digest qop=“auth”, realm=“IP Webcam”, nonce=“1454034472”

It looks like the basic authentication in the URL is being dropped for some reason.

I live out in the boonies, with not-very-broadband DSL, especially constrained on uploads.

So I definitely don’t want to have my LAN devices going to an exterior URL for my camera feeds. But I want to be able to use dashboards when I’m away from my house too.

I admit I’ve tried accessing my DDNS or just port-forwarded URLs from the LAN, and that doesn’t work.

For various reasons involving Wife Acceptance Factor, I have all five of my dashboards in use, so I can’t just dedicate one to be a duplicate of the LAN version with WAN IP address for the cameras.

Does anyone else have this problem and if so, how do you work around it? I’m comfortable with complex router configuration though at the moment I’m limited to my ISP’s router software, which isn’t exactly top notch. (I say at the moment because I’m hoping to switch over to using the modem as a bridge device in order to increase reliability.)

I think the most appropriate and efficient solution would be for SmartTiles to contain some conditional programming that would determine, via checking the IP address of the browser, whether you are on the LAN or not, and use the internal or external URL for the video feed, as appropriate.

I’ll perhaps experiment with the concept…

Has anyone yet using Xiaomi ip camera?

Their typo is rather ominous…

Video suppression: H.264 Main Profile

(I presume that is "Video compression!).

You’ll have to please visit the manufacturer or vendor website and get the real in-depth specs and/or user manuals to see if anything other than H.264 is supplied. As far as I know off the top of my head, most H.264 compressed streams are not decoded in the browser without a plug-in, and thus won’t work in SmartTiles currently.

[quote=“tgauchat, post:294, topic:11633, full:true”]

The author of IP WebCam pointed out to me that SmartTiles is generating an invalid URL… and he’s right. You can only add “&rand=.1212” if there is already a URL parameter list. If there isn’t a parameter list, you need to add “?rand=.1212”.

E.g., this URL is valid:
http ://www.smarttiles.click/wp-content/uploads/2015/03/metro1-300x135.png
http://www.smarttiles.click/wp-content/uploads/2015/03/metro1-300x135.png

where-as this URL generates a 404:
http://www.smarttiles.click/wp-content/uploads/2015/03/metro1-300x135.png&rand=.1212

But this URL works as you expect (such that the random number will defeat caching):
http ://www.smarttiles.click/wp-content/uploads/2015/03/metro1-300x135.png?rand=.1212
http://www.smarttiles.click/wp-content/uploads/2015/03/metro1-300x135.png?rand=.1212