Idea for FOSCAM camera binding

@Nicholas_Waterton #1 - see my post regarding setting up MaryTTS as a separate service and integrating into OpenHAB rules. This gives really good results compared to the MaryTTS binding.

#2 - look into using pulse audio for remote playback. I used this with good results for sending the MaryTTS output from my server to remote Ubuntu Desktop(s). This is much more reliable than bluetooth, and doesn’t involve pulling cables :slightly_smiling: An example of this is included in my script (under REMOTE PLAYBACK).

Best regards,
.

Thanks for the code and the info. Always good to know what others are using that works. I just got a Dlink DGS-1210-10P which can do 30 watts per port with a total max of 78watts POE. Should handle 7 cameras with an 8th possible if I spend more to use a SFP port to connect to the other switch.

http://us.dlink.com/products/business-solutions/10-port-gigabit-web-smart-poe-switch-including-2-gigabit-sfp-ports/

Nicholas,
My whole house audio is going to consist of an LMS with some squeezeplayers through out the house. I had ordered an XAP 800 from ebay for $25. i wanted to use that to have some simple ceiling speakers throughout the house as well. Unfortunately it was DOA. I may get another and play around with it but i think an arduino or rpi running squeezeplayer will work.

I have been following with great interest the discussion about creating an Amazon Echo binding/action. I have a small house but am a bit concerned about only having one in the house. I dont know if i want to yell to other room to have Alexa do something while i’m not in the main room.

I just dont thin’k voice control is there yet. Soon…but not yet. I think while I am waiting for that to work itself out a bit better I might make a couple magic mirrors that I can talk to.

I want that house from the future where it knows what room I am in and will activate the magic mirror/screen in that room. It can read me the news, show my schedule or move the content from my kodi player from room to room to follow me. Too much to ask? lol. The two biggest stumbling blocks i see are accurate presence detection in the room and the voice control. I think the voice control will be available soon but not so sure about the presence detection.
What are others using to detect in room activity? I use wifi status with a script on my router to alert the house that i am home. For the most part it works really really well as long as your wifi is on. My kids dont keep theirs on all the time so I will have to have chips implanted in them .ROFL.

I’ve tried some bluetooth solutions but it wasnt consistent enough.

Ok, off topic…sorry…would love to continue this in another thread though.

Kim

I use the http binding and send orders to activate the motion detectionin my Foscam C1

as follows

Switch itemname {http = "> [ON: POST: /cgi-bin/CGIProxy.fcgi cmd = setMotionDetectConfig & isEnable = 1 & linkage = 16 & snapInterval = 2 & sensitivity = 1 & triggerInterval = 5 & schedule0 = 1024 & schedule1 = 1024 & schedule2 = 1024 & schedule3 = 1024 & schedule4 = 1024 & schedule5 = 102 4 & schedule6 = 1024 & area0 = 1024 & area1 = 1024 & area2 = 1024 & area3 = 1024 & ar AI4 = 1024 & area5 = 1024 & Area6 = 1024 & Area 7 = 1024 & Area 7 = 1024 & AREA8 = 1024 & area9 = 1024 & usr = admin & pwd = "]> [OFF: POST: /cgi-bin/CGIProxy.fcgi cmd = setMotionDetectConfig & isEnable? = 0¬usr = admin & pwd =] "}

pls kim,what programming language are u using and pls can u help me with some source code .i want to integrate my map to my camera in programming sunh that i can view my camera from the map

after you setup one of the streams to be mjpeg then all you need to do in a sitemap is to add the url item to your sitemap

Frame label=“Camera View” {
Video url=“http://192.168.0.117:93/cgi-bin/CGIStream.cgi?cmd=GetMJStream&usr=admin&pwd=xxxxx” encoding=“mjpeg”
}

No programming language…its all done in openhab.

Kim

@Kimberly: doesn´t work for my FI9900P.
I always get “result 0 result”, so the substream doesn´t switch.

Any idea?

Thanks!

What do you see when you open that hyperlink directly in your browser?
You should be able to see your image, without any popup/password/… question.

I myself have a zoneminder server running that centralize/analyze all camera’s. But nevertheless, I wanted to have also the videos directly in openhab (simplier for my family to use 1 app).
I had an issue with live streams on some platforms/browsers, so I just refresh an image every second. Not real video, but almost the same. :wink:

I’m using following in my sitemap:

 Group label="Voordeur" icon="video" {
   Image url="http://192.168.0.5/cgi-bin/nph-zms?mode=single&monitor=13&scale=100&user=YOURUSER&pass=YOURPASS" refresh=1000
   }

Basicly, it does the same as for Kimberly: pulling down the image (in my case from my server instead of camera). Additional with refresh every second.

Guys, i understand from here http://foscam.us/forum/how-to-fetch-snapshots-and-mjpeg-stream-on-hd-cameras-t4328.html that it doesn’t matter what camera you have, and as long as you can set a stream to mjpeg, you’ll be able to view live from your camera in OH! Am I wrong? So this means even Foscam C1 can stream live in OH?
Thanks.

Unfortunately not correct, their new cameras are using a new chip which is not supporting the mjpeg at all.
They have some old specific models which can support mjpeg or both.
You can email the support and they will provide you with the list but for sure C1 is not one of them…

I have a C1 and FI9900p both support RTSP. As OpenHab does not support this (only MJPEG). Currently, I am using snapshots to generate at least some sort of moving image. It would be great if OpenHab support the RTSP protocol. Unfortunately I have no clue how to implement this. Any suggestion/initiative would be great. Kind regards!

Has anyone tried controling ip cam Pan and Tilt? If so, how to do that? Thanks!

1 Like

Hi there
i’m new to this world and i just want to ask… is there step by step page
that can help me to add 3 pieces of foscam at openhab please ?
Thanks in advance
Denis

have not tried it myself but maybe through HTTP binding and the proper cgi command.

Did a binding ever get started?

Great link of info collected in case it was missed.