Foscam FI8910w / FI8918w motion detector

Moderator: leecollings

Post Reply
gertjuhh

Foscam FI8910w / FI8918w motion detector

Post 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
gertjuhh

Re: Foscam FI8910w / FI8918w motion detector

Post 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.
simon_rb
Posts: 612
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Re: Foscam FI8910w / FI8918w motion detector

Post by simon_rb »

Excellent - I'm looking into IP Cameras once I have my Demopad project finished..

Cheers
User avatar
thecosmicgate
Posts: 188
Joined: Monday 06 April 2015 14:37
Target OS: Linux
Domoticz version: newest
Location: The Netherlands / Hoeven
Contact:

Re: Foscam FI8910w / FI8918w motion detector

Post 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?
It's nice to be important, but it's more important to be nice
Scooter ;)
User avatar
groetg
Posts: 39
Joined: Tuesday 06 January 2015 20:41
Target OS: Raspberry Pi / ODroid
Domoticz version: V2.4025
Location: Heerhugowaard, Holland
Contact:

Re: Foscam FI8910w / FI8918w motion detector

Post 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.
Master: RPI Model 2B
Sub 1: RPI Model 2B
RFX transmitter/receiver 433 Mhz
13 KAKU units (3 window sensors, 1 door sensor, 7 light switches, 1 dusk sensor, 1 motion sensor)
4 IP cam
Meteostick
OTGW
P1 cable
Davis Vantage Pro weatherstation (incl. solar/UV)
User avatar
groetg
Posts: 39
Joined: Tuesday 06 January 2015 20:41
Target OS: Raspberry Pi / ODroid
Domoticz version: V2.4025
Location: Heerhugowaard, Holland
Contact:

Re: Foscam FI8910w / FI8918w motion detector

Post by groetg »

I found out (very cool1)
Example: http://192.168.2.1:8080/json.htm?type=c ... itchcmd=On
IP Domoticz
IDX switch
Master: RPI Model 2B
Sub 1: RPI Model 2B
RFX transmitter/receiver 433 Mhz
13 KAKU units (3 window sensors, 1 door sensor, 7 light switches, 1 dusk sensor, 1 motion sensor)
4 IP cam
Meteostick
OTGW
P1 cable
Davis Vantage Pro weatherstation (incl. solar/UV)
User avatar
groetg
Posts: 39
Joined: Tuesday 06 January 2015 20:41
Target OS: Raspberry Pi / ODroid
Domoticz version: V2.4025
Location: Heerhugowaard, Holland
Contact:

Re: Foscam FI8910w / FI8918w motion detector

Post by groetg »

This is really really great! I started with lots of cheap IP cams and now they function also as motion detector, GREAT!!
Master: RPI Model 2B
Sub 1: RPI Model 2B
RFX transmitter/receiver 433 Mhz
13 KAKU units (3 window sensors, 1 door sensor, 7 light switches, 1 dusk sensor, 1 motion sensor)
4 IP cam
Meteostick
OTGW
P1 cable
Davis Vantage Pro weatherstation (incl. solar/UV)
User avatar
groetg
Posts: 39
Joined: Tuesday 06 January 2015 20:41
Target OS: Raspberry Pi / ODroid
Domoticz version: V2.4025
Location: Heerhugowaard, Holland
Contact:

Re: Foscam FI8910w / FI8918w motion detector

Post 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...
Master: RPI Model 2B
Sub 1: RPI Model 2B
RFX transmitter/receiver 433 Mhz
13 KAKU units (3 window sensors, 1 door sensor, 7 light switches, 1 dusk sensor, 1 motion sensor)
4 IP cam
Meteostick
OTGW
P1 cable
Davis Vantage Pro weatherstation (incl. solar/UV)
User avatar
groetg
Posts: 39
Joined: Tuesday 06 January 2015 20:41
Target OS: Raspberry Pi / ODroid
Domoticz version: V2.4025
Location: Heerhugowaard, Holland
Contact:

Re: Foscam FI8910w / FI8918w motion detector

Post by groetg »

In the cam log, there is motion detected:
motion
motion
motion.PNG (9.33 KiB) Viewed 11259 times
This are the params of my Wanscam HW0025 dome cam:
alarm
alarm
alarm.PNG (18.26 KiB) Viewed 11259 times
Master: RPI Model 2B
Sub 1: RPI Model 2B
RFX transmitter/receiver 433 Mhz
13 KAKU units (3 window sensors, 1 door sensor, 7 light switches, 1 dusk sensor, 1 motion sensor)
4 IP cam
Meteostick
OTGW
P1 cable
Davis Vantage Pro weatherstation (incl. solar/UV)
ThinkPad
Posts: 890
Joined: Tuesday 30 September 2014 8:49
Target OS: Linux
Domoticz version: beta
Location: The Netherlands
Contact:

Re: Foscam FI8910w / FI8918w motion detector

Post 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.
I am not active on this forum anymore.
User avatar
groetg
Posts: 39
Joined: Tuesday 06 January 2015 20:41
Target OS: Raspberry Pi / ODroid
Domoticz version: V2.4025
Location: Heerhugowaard, Holland
Contact:

Re: Foscam FI8910w / FI8918w motion detector

Post 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...
Master: RPI Model 2B
Sub 1: RPI Model 2B
RFX transmitter/receiver 433 Mhz
13 KAKU units (3 window sensors, 1 door sensor, 7 light switches, 1 dusk sensor, 1 motion sensor)
4 IP cam
Meteostick
OTGW
P1 cable
Davis Vantage Pro weatherstation (incl. solar/UV)
User avatar
groetg
Posts: 39
Joined: Tuesday 06 January 2015 20:41
Target OS: Raspberry Pi / ODroid
Domoticz version: V2.4025
Location: Heerhugowaard, Holland
Contact:

Re: Foscam FI8910w / FI8918w motion detector

Post 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)
Master: RPI Model 2B
Sub 1: RPI Model 2B
RFX transmitter/receiver 433 Mhz
13 KAKU units (3 window sensors, 1 door sensor, 7 light switches, 1 dusk sensor, 1 motion sensor)
4 IP cam
Meteostick
OTGW
P1 cable
Davis Vantage Pro weatherstation (incl. solar/UV)
User avatar
groetg
Posts: 39
Joined: Tuesday 06 January 2015 20:41
Target OS: Raspberry Pi / ODroid
Domoticz version: V2.4025
Location: Heerhugowaard, Holland
Contact:

Re: Foscam FI8910w / FI8918w motion detector

Post by groetg »

I Will check Tomorrow another IP cam.
Master: RPI Model 2B
Sub 1: RPI Model 2B
RFX transmitter/receiver 433 Mhz
13 KAKU units (3 window sensors, 1 door sensor, 7 light switches, 1 dusk sensor, 1 motion sensor)
4 IP cam
Meteostick
OTGW
P1 cable
Davis Vantage Pro weatherstation (incl. solar/UV)
User avatar
groetg
Posts: 39
Joined: Tuesday 06 January 2015 20:41
Target OS: Raspberry Pi / ODroid
Domoticz version: V2.4025
Location: Heerhugowaard, Holland
Contact:

Re: Foscam FI8910w / FI8918w motion detector

Post 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).
Master: RPI Model 2B
Sub 1: RPI Model 2B
RFX transmitter/receiver 433 Mhz
13 KAKU units (3 window sensors, 1 door sensor, 7 light switches, 1 dusk sensor, 1 motion sensor)
4 IP cam
Meteostick
OTGW
P1 cable
Davis Vantage Pro weatherstation (incl. solar/UV)
westd001
Posts: 22
Joined: Friday 28 August 2015 21:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Foscam FI8910w / FI8918w motion detector

Post 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
scatman
Posts: 17
Joined: Wednesday 26 August 2015 23:16
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.2563
Location: Poland
Contact:

Re: Foscam FI8910w

Post 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?
Panda
Posts: 11
Joined: Wednesday 26 August 2015 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Foscam FI8910w

Post 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
fabbat
Posts: 1
Joined: Saturday 06 February 2016 18:49
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Foscam FI8910w / FI8918w motion detector

Post 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
Gabe
Posts: 44
Joined: Wednesday 17 February 2016 21:34
Target OS: -
Domoticz version:
Contact:

Re: Foscam FI8910w / FI8918w motion detector

Post by Gabe »

Hi everybody I ahve exactly the same problem like fabbat.

Has someone a idea???
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest