Page 1 of 1

Foscam FI8910w / FI8918w motion detector

Posted: Thursday 14 November 2013 17:43
by gertjuhh
Tested and confirmed working on FI8910w & FI8918w, results may vary on other models.

This is a very poorly documented feature of the Foscam camera's, but highly useful for Domoticz users.
The default WebUI gives you access to some, but not all, motion detection features.
Basic motion detection can e-mail or upload (FTP) pictures when motion is detected.

However you can also let the camera send a HTTP request when the alarm is tripped.
Combining this with a virtual motion detector in Domoticz allows you to use the camera as a motion detector within your home automation system.

First check the current settings:
<foscam_url>/get_params.cgi
The hidden variables of interest are "http" and "http_url"

To set these values:
<foscam_url>/set_alarm.cgi?http=1&http_url=<encoded_url>
encoded_url should be the url used to trigger your virtual motion detector.
Make sure you encode the url!

Beware, when above values are set, you will no longer to change alarm settings from the "Alarm Service Settings" menu item in the WebUI

Re: Foscam FI8910w / FI8918w motion detector

Posted: Friday 22 November 2013 13:29
by gertjuhh
After further testing i would advice the FI8918w over the FI8910w.
The FI8910w has IR-cut, which results in a better image quality when there's sufficient light, but due to a hardware / design flaw the motion alarm is always tripped when the IR-cut enables/disables.
This results in 2 daily false alarms, one around sunrise, the other around sunset when placed in a room with sunlight.

My FI8918w has been running for about a week now, no false alarms so far.

Re: Foscam FI8910w / FI8918w motion detector

Posted: Sunday 24 November 2013 12:47
by simon_rb
Excellent - I'm looking into IP Cameras once I have my Demopad project finished..

Cheers

Re: Foscam FI8910w / FI8918w motion detector

Posted: Thursday 09 April 2015 1:17
by thecosmicgate
Is there somebody who het thuis werking in the foscam 8910w?
Or is there a easier wat tot use this cam with Domoticz?

Re: Foscam FI8910w / FI8918w motion detector

Posted: Monday 04 May 2015 16:27
by groetg
How do I make a url used to trigger your virtual motion detector. I didn't even know I could use a URL command to switch on and off a switch in Domoticz.

Re: Foscam FI8910w / FI8918w motion detector

Posted: Monday 04 May 2015 20:01
by groetg
I found out (very cool1)
Example: http://192.168.2.1:8080/json.htm?type=c ... itchcmd=On
IP Domoticz
IDX switch

Re: Foscam FI8910w / FI8918w motion detector

Posted: Monday 04 May 2015 20:14
by groetg
This is really really great! I started with lots of cheap IP cams and now they function also as motion detector, GREAT!!

Re: Foscam FI8910w / FI8918w motion detector

Posted: Monday 04 May 2015 20:35
by groetg
To early....

The http = 1
the http url is the URL that puts my dummy switch on

So I thought everything has to work, I got in the camera view outside, but nothing happens. There is no motion alarm, it seems...

Re: Foscam FI8910w / FI8918w motion detector

Posted: Monday 04 May 2015 20:49
by groetg
In the cam log, there is motion detected:
motion
motion
motion.PNG (9.33 KiB) Viewed 11480 times
This are the params of my Wanscam HW0025 dome cam:
alarm
alarm
alarm.PNG (18.26 KiB) Viewed 11480 times

Re: Foscam FI8910w / FI8918w motion detector

Posted: Monday 04 May 2015 20:56
by ThinkPad
What happens if you paste that URL into your browser and run it? And is the IP you masked an external IP? You should use your internal (192.x.x.x ?) address there.

Re: Foscam FI8910w / FI8918w motion detector

Posted: Monday 04 May 2015 21:07
by groetg
When I paste the URL, the switch turns on. So I thought evrything works, but the camera does not send the URL, it seems...

Re: Foscam FI8910w / FI8918w motion detector

Posted: Monday 04 May 2015 21:17
by groetg
when i changed the mask in the local URL, the URL also works, but not when it is in the http_url of my cam and there is motion (if I turn the camera, there should be motion. There is motion when I do that according to the logfile of the cam)

Re: Foscam FI8910w / FI8918w motion detector

Posted: Monday 04 May 2015 21:46
by groetg
I Will check Tomorrow another IP cam.

Re: Foscam FI8910w / FI8918w motion detector

Posted: Monday 04 May 2015 22:03
by groetg
I dont knoe what happened but just got a prowl message with motion detected at the driveway. So the motion seems to work. But i dont understand why there is now motion detected when i rotate the camera (preset 1 to preset 2).

Re: Foscam FI8910w / FI8918w motion detector

Posted: Sunday 20 September 2015 17:44
by westd001
Hi there,

I tried to set the alarm values of my FI8906W, but it gives a 400 Bad request, Bad filename error. I tried several things but it seems that the 8906 doesn't support to change the settings via the webbrowser.

Anybody tried this with a FI8906W ?

JJ

Re: Foscam FI8910w

Posted: Friday 25 December 2015 0:07
by scatman
Hi
I tried to add my FI8910W to Domoticz. In form URLimages: I hed "http://192.168.178.56/snapshot.cgi"
and ... I had blank images.

Can I ask halp?

Re: Foscam FI8910w

Posted: Thursday 07 January 2016 23:15
by Panda
scatman wrote:Hi
I tried to add my FI8910W to Domoticz. In form URLimages: I hed "http://192.168.178.56/snapshot.cgi"
and ... I had blank images.

Can I ask halp?

You also need to supply your credentials like this "http://192.168.178.56/snapshot.cgi?user ... URPASSWORD

Re: Foscam FI8910w / FI8918w motion detector

Posted: Saturday 06 February 2016 19:08
by fabbat
Hi Guys, I'm very new to Domoticz maybe I didn't understand well what you suggested in previous post, so sorry for my questions. I wolud like to use my cinese foscam IP CAM as motion sensor. I added to domoticz and I'm able to see the images and get snapshot. I also installed Motion on my FreeNAS ( the same jail where I run DOmoticz). At this point I start to have some questions:

I read on wiki page (https://www.domoticz.com/wiki/Camera_Setup)that I have to crerate a dummy motion sensor. I'm not sure to had created the right thing. Can someone give me an step-by-step instructions?

Under Hardware I created a dummy switch (not sure if that is a motion-sensor) then I tried to swith on/Off from web API using command http://192.168.1.4:8080/json.htm?type=c ... tchcmd=Off and it works fine.
Then following the wiki page alre mentioned, I start to modify the motion.conf.

The question that I have is related to this modification, first the guide talks about edit the thread1.conf, but I have just one camera so I have to edit just motion.conf (?). After that I'm also not sure that the path written in the wiki (/usr/bin/curl -s "http://api_username:api_password@domoticz_server:domoticz_port/json.htm?
type=command&param=switchlight&idx=your_ID&switchcmd=On") are correct for FreeNAS.

At the end, I cannot trigger any action from Motion.
Do you know if there is an alternative methods to use a camera as motion sensor just using DOmoticz?

Thank you to all

Re: Foscam FI8910w / FI8918w motion detector

Posted: Saturday 20 February 2016 22:06
by Gabe
Hi everybody I ahve exactly the same problem like fabbat.

Has someone a idea???