Images or Webview inside the groups?

Hi HABbers,

Quick question whether or not is it possible to have a webcam feed or any webview content inside a group (hopefully im making sense here)

I want to show the videofeed of a IP camera inside the babyroom group

The image feed from the camera and I placed them inside sitemap configuration.

Image url=“awebsite.com - contact with domain owner | Epik.com” height=14 refresh=20

Thanks in advance

Hi Fahdy

Yes you can do this. Simply add that line in your sitemap file under the temp item for your Baby Room:
Image url=“http://awebsite.com/snapshot.cgi?user=user&pwd=password” refresh=1000

Refresh is expressed in milliseconds. I’m not aware of the parameter height you reference - and could be causing you an error.

I use the feature with a HIKVISION IP camera and it works well.

Good luck

Mike

Hi Mike

Thanks for your reply, here’s my sitemap details and I dont have the temperature line on it. I configured it from the items side (if that make sense)

{
Frame {
	Group item=gGF label="Ground Floor" icon="groundfloor"
	Group item=gFF label="First Floor" icon="firstfloor"
	Group item=Outdoor label="Tiny Garden" icon="garden" 
	Group item=FF_Baby1 label="Baby Room" icon="bedroom"
	Group item=GF_Appliances label="Server/Washing Machine" icon="video"
}

Frame label="Weather" {
	Text item=Weather_Temperature valuecolor=[Weather_LastUpdate=="Uninitialized"="lightgray",Weather_LastUpdate>90="lightgray",>25="orange",>15="green",>5="orange",<=5="blue"] Text item=Weather_Temp_Min valuecolor=[>25="orange",>15="green",>5="orange",<=5="blue"]{
		Frame {
			Text item=Weather_Humidity
			Text item=Weather_Humidex
			Text item=Weather_LastUpdate visibility=[Weather_LastUpdate>30] valuecolor=[Weather_LastUpdate>120="orange", Weather_LastUpdate>300="red"]
		}
	}
}

Hi,

The only way I have found to do this is to manually craft the frames for all the pages and not use the auto generated sub group ones at all.

So you would do the same as you have already done for the ‘Weather’ frame eg create a Text item that links to a sub frame that contains the Baby room temp and the chart/video/image/etc.

Frame {
    Text item=FF_Baby1 {
        Text item=ACTEMP
        Chart item=ACTEMP icon="temperature" label="Baby Room Temp" period=D refresh=10000
    }
}

Hi Mike,
can I ask you how you have configured in sitemap camera views?
I have some HIKVISION IP cameras and can’t figure out why Video or Webview are not working. I tried in sitemaps :

Video url="http://192.168.7.153/Streaming/channels/102/httppreview" encoding="mjpeg"

Video url=“http://user:pass@/Streaming/channels/102/httppreview”

Webview url=“http://user:pass@/Streaming/channels/102/httppreview”

with no luck!
I’m sure that my IP cameras support mjpeg stream, I have connected listed urls to a iSpy and works fine!

Thanks in advance

Hi,

for me worked
"Frame label=“Kamera” {
Image url=“http://192.168.1.103/snapshot.cgi?user=XXXX&pwd=YYYY” label=“IP-Cam 1” refresh=6000"
with XXXX = Username
and YYYY = Password

so transfering it to your example this might help:

"Frame label=“Kamera” {
Image url=“http://“your-IP”/snapshot.cgi?user=XXXX&pwd=YYYY” label=“IP-Cam 1” refresh=6000"
with XXXX = Username
and YYYY = Password
and “your-IP” = your camera IP

you can check with typing
"http://“your-IP”/snapshot.cgi?user=XXXX&pwd=YYYY"
in your browser if you can see a picture.

Cheers
Björn

Hi villaRob (team or House??)

As Bjorn says - grabbing a current snapshot is easily done with the configuration code he and I suggest.

To get a live feed into your openhab, you’d need more HTML skill, and use a web plug-in as they do with the HIKVISION browser configuration tools.

I don’t really have the remote internet bandwidth or the skill to get that up and running in openhab I’m afraid. Would be interested to hear how anyone else might tackle it however.

Getting a current snapshot with 5 second or so updates works really well for remote monitoring to be honest.

Hope that helps.

Mike

Hi All

I solved, I found the correct urls to point for my ip camera models.
Mayby this can help someone:

For my Samsung SND-6011R IP camera :

Image url=“http://user:password@CAMERA_IP/stw-cgi/video.cgi?msubmenu=snapshot&action=view” refresh=2000

for my HIKVISION DS-2CD2132F IP cameras:

Image url=“http://user:password@CAMERA_IP/Streaming/channels/2/picture” refresh=2000

This is the working configuration i’m using now.

Thanks to all!

ps: villaRob is a short for my appartment name… :wink:

Luca