Security Camera Tile


#1

I am trying to get a security camera stream to show as a tile but I am not having any luck.I built the piston to match the example that is show on the “Share your dashboard” topic, but when I load the dashboard I see nothing. Below is the code that I have.

Thanks,
Kevin


#2

Just throwing out the obvious. Is the piston in a tile category?


#3

and did you click the test button to run the piston?


#4

Yes and yes, I have the piston in the tile category and have clicked test ans execute.


#5

What browser OS are you running? Most modern browsers now reject embedding http: content within a https: website (you might want to check your browser console’s error log).


#6

When you say you see nothing, do you mean a black tile or nothing at all? If you see a black tile, do you have a ‘broken’ icon in the upper left corner like the image below?

camera

The broken icon indicates that there is an issue with the URL, such as the browser issue @ahndee mentions. If possible, enable https in your camera’s settings. Also, to test the URL, enter it directly into your browser’s address bar to see if the image/video appears. If it doesn’t, confirm the url and port assignments with the camera manufacturer’s specs.

One last note, you don’t want to use the ‘refresh=3’ with live-video. That is intended for still image refresh. There’s no need to refresh a live video stream.

Edit: It might be helpful if you include the specific camera model.


#7

It just shows nothing. I even tried the code below and still nothing.


#8

I found the problem. In order to view my camera stream I need to include the username and password. ex. user:[email protected] but when I do that the piston dose not like it. any ideas?

Thank you,


#9

Make sure you are using the actual IP address for your camera (192.1.152.3 or whatever) and not a domain name.


#10

Check if your camera accepts the user/pass combo in a camera_ip/?user=user&pass=password format (don’t know exact term) :slight_smile:


#11

I have tried the local ip and external ip and ether one works. I have tested user:[email protected] in Chrome and IE and it works like a champ.


#12

does this thread help?


#13

I looked at the topic above and tried a couple of thing listed in the topic and still not luck. My username and passwords only have charterers in them.


#14

I was able to pull the authentication header and found “Authorization: Basic a2Jl…”. How would I use this in a web request within WebCore?


#15

I don’t recall the exact reasoning, and someone may jump in to correct me here, but my recollection and experience is that the external ip, while it may work in your browser, won’t work in this particular situation.


#16

Oh yeah… I used a ddns provider and did a port forward on one of my test pistons before.


#17

I was wondering if any had any ideas on how I can push user name and password though.


#18

I’ve just recently imported this piston and run it and all I get is a black tile with ‘[img wide=1]…’ in white text.

Have [img] expressions/values stopped working?

28

UPDATE
I found this was needing a pipe at the end of the image e.g. ‘[img src=www.etc.com |]’. Is this a bug or a necesaty?


#19

Just to close the loop on this topic, here is my reference piston with notes on the settings I could figure out.



(All public CAMs with fake passwords, don’t @ me :wink: )
Credit to @ady624 for being the first I found with sample code.


Device Status Tiles
#20

What browser are you using that still allows to display http: content within a https: page? Safari no longer does :cry: