Foscam FI9821W - Support & How-To

[quote=“Hottoy, post:11, topic:178812”]Help please - I’m having trouble getting Vera to add my new F19821W V2 Camera. running latest firmware
Vera Lite UI5 running firmware 1.5.622
Foscam setup has a Static IP with port changed to 4 digit
Foscam System Firmware 1.4.1.8 / application firmware 1.11.1.18 / plug in 2.0.1.5

I can see the camera image in my chrome or firefox browsers as well as in myfoscam iphone app

I followed the instructions at the beginning of this thread but every time I try to add I get
"Here is an image from the camera. If this is correct, click ‘Add’ to add the camera to Vera. "

but no image just a small box. Same effect with Chrome or Firefox

I have tried the cancel next approach described above several times. I have also rebooted vera and camera no effect.[/quote]

Continue to try the methods described in Aaron and Flam 5 posts with no success. The best I get is a small box with an X in it for a image. Any advise would be appreciated.

Hello,

I’ve made a perl script that can trigger an alarm if the motion detection from the Foscam HD changes, if anyone interrested… and if you can give hint how to integrate it into vera that would be perfect !

thanks !

Rex just posted some code to trigger camera recording on the synology. You should be able to easily use it as a template for what you want.

Sent from my SAMSUNG-SGH-I747 using Tapatalk

Hello,

can you point me to the post ? thanks !

Emmanuel

Hi guys,

Aaron settings work for me, but just for a few seconds, after what it displays an image with a tool in the middle, and that’s it.
Do you have an idea ? Do anyone of you aleady faced this issue ?
Also, @epierre, I’m interested by your perl script if possible :slight_smile:

Thanks for your help !

Kris

Hello,

Here it is, you need to launch it as a nohup for it runs every 10 seconds, and modify the curl requests that are so far adapted to a Domoticz server.

#!/usr/bin/perl

while (1) {
$a= `/usr/bin/curl -s 'http://192.168.0.XX:88/cgi-bin/CGIProxy.fcgi?cmd=getDevState&usr=XXX&pwd=XXX' ` ;

($status)=($a=~/motionDetectAlarm>(\d)<\//);
($cam)=($a=~/http%3A%2F%2F(.+)\.myfoscam/);

#print "test: $cam $status\n";
if (($status==1)&&(-e "/tmp/alarm_on.$cam")) {
        #motion sensor
        print "alarm off";
        unlink "/tmp/alarm_on.$cam";
        `/usr/bin/curl -s "http://192.168.0.XX:8080/json.htm?type=command&param=switchlight&idx=8&switchcmd=Off"`;
};

if (($status==2)&&(! -e "/tmp/alarm_on.$cam")) {
        #motion sensor
        print "alarm on";
        system("touch /tmp/alarm_on.$cam");
        `/usr/bin/curl -s "http://192.168.0.XX:8080/json.htm?type=command&param=switchlight&idx=8&switchcmd=On"`;
}

        sleep(10);
}

Merci Pierre :wink:

[quote=“epierre, post:26, topic:178812”]Hello,

Here it is, you need to launch it as a nohup for it runs every 10 seconds, and modify the curl requests that are so far adapted to a Domoticz server.

[code]
#!/usr/bin/perl

while (1) {
$a= /usr/bin/curl -s 'http://192.168.0.XX:88/cgi-bin/CGIProxy.fcgi?cmd=getDevState&usr=XXX&pwd=XXX' ;

($status)=($a=~/motionDetectAlarm>(\d)<//);
($cam)=($a=~/http%3A%2F%2F(.+).myfoscam/);

#print “test: $cam $status\n”;
if (($status==1)&&(-e “/tmp/alarm_on.$cam”)) {
#motion sensor
print “alarm off”;
unlink “/tmp/alarm_on.$cam”;
/usr/bin/curl -s "http://192.168.0.XX:8080/json.htm?type=command&param=switchlight&idx=8&switchcmd=Off";
};

if (($status==2)&&(! -e “/tmp/alarm_on.$cam”)) {
#motion sensor
print “alarm on”;
system(“touch /tmp/alarm_on.$cam”);
/usr/bin/curl -s "http://192.168.0.XX:8080/json.htm?type=command&param=switchlight&idx=8&switchcmd=On";
}

    sleep(10);

}
[/code][/quote]

This camera is not adding for me either.
Camera - Foscom 8921W
System FW: 1.4.1.8
Applic. FW: 2.11.1.6
Plug-in Ver: 2.0.1.7

MiCasa Vera Lite
Version 2.78 L:1 (3.20 is unstable on this system for some reason)
FW - 1.5.622

Here is what I have done.

[ol][li]Downloaded and installed the XML/JSON files from the first post - Rebooted[/li]
[li]Manually Added the Camera - (Tried all the dropdown options - Generic, Vistacam, Panasonic, Foscam)[/li]
[li]Snapshot URL Used → http://192.168.1.230:88/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=admin&pwd=password → Verified this works in Chrome[/li]
[li]Filled Admin/password text boxes (The same as in the url)[/li]
[li]Clicked NEXT with a result of “Unable to get image from your camera.” and CANCEL is now the only option[/li][/ol]

I have also downloaded the Foscom Plugin v2.6 and that has not yielded any results.

Any help/thoughts on how to add this camera would be appreciated.

Thanks in Advance,

Jamie

i would not be surprised if your XML/Jason files interfere with the Foscam plugin. I just used the Foscam plugin and with the proper settings it works. There are multiple threads in this forum on how to configure the plugin.

Let us know if you need some links.

Pseudomizer, I’d appreciate any links you could you’ve provided. I exhausted both plugins with and without, the lup files here. And some other suggestions in other threads.

The Foscam Fi9821W seems to be a major PITA to get to work. It took me the longest time to get a picture out of mine. The Pan and Tilt buttons still are not functional in Vera but work fine on the camera’s internal web page.

I’m not sure if it is Vera or Foscam causing these headaches. Perhaps it is both.

I had to have MCV sort mine out…

but it then worked; including pan and tilt

MCV did modify two times yes without success… what are your current parameters ?

FYI…When I set mine up via the directions, I could never see the snapshot and assumed it failed. I finally clicked through and filled in the other variables provided and it works. Thanks!

[quote=“flam5, post:12, topic:178812”]Newbie to the Vera here, but like many people who get into the smart home stuff, I am a tech professional career wise so gadget tinkering is in my wheelhouse. I’m posting for the first time here just to log some of my observations/findings here so others may benefit and possibly avoid a DenverCoder9 situation.

Instructions/Things I’ve noted while adding the Foscam F19821W V2, System Firmware Version 1.4.1.8, Application Firmware Version 1.11.1.18, Plug-In Version 2.0.1.6 to my VeraLite (UI5):

1.) To start process of detecting the camera:

[ul][li]Click Devices[/li]
[li]Click Add Devices[/li]
[li]Click Add next to I want to add an IP Camera[/li]
[li]Click Manually add[/li]
[li]Use the URL provided in the opening post: http://:/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=&pwd=[list]
[li]You will need to replace the variables in the url: , , , and with the corresponding values for the camera you are setting up[/li]
[li]Also note that if you have your camera operating on port 80, you can completely omit the colon and port number as port 80 is the default HTTP port so it is unnecessary[/li]
[li]In case it is not clear, remove all angle brackets (the greater than and less than characters) in the URL. The example of the URL http://192.168.1.125:1117/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&user=camadmin&pwd=myc@m3r@ would be the correct URL to use for a camera that has an IP of 192.168.1.125, runs on port 1117, and is accessed using the credentials with a username of camadmin and password of myc@m3r@[/li]
[/list][/li]
[li]This is where my mileage has varied from the previously mentioned steps. Do not select a camera type. Do not enter in your username and password. Click [b]Next[b] to continue. [/li]
[li]Give the Vera a second to load the high resolution image. Click Add, then go have a drink because if your situation is anything like mine, this is the most progress you’ve had in months.[/ul]

2.) Now that the camera is added, go change the settings that opening poster Aaron mentioned.

[ul][li]If you are confused because you don’t see the field “DirectStreamingURL” or other fields, make sure your impl_file and device_file fields are correct, save, give it a minute, then go back to the devices page to fill out the remaining necessary fields. After changing fields impl_file, and Device_file I found that I had to save the configuration, give the Vera a minute, and then go back to editing the device so I had all the necessary fields.[/li]
[li]Don’t neglect filling out information in the “Settings” tab of the camera as well. [list]
[li]The URL I have is cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=&pwd=[/li]
[li]Fill out the username and password fields that you did not provide when creating the camera.[/li]
[li]The MAC address format should have colons separating the hexadecimal values, e.g. 28:B5:6E:49:50:D2 – If you can’t find your mac address, try going to your router’s listing of connected devices and look for the MAC address that corresponds with your camera’s IP address.[/li]
[/list] [/li][/ul]

Results:

I’m able to see my thumbnail and view the camera in emulation mode through the Vera phone application. AutHomation HD app does have pan-tilt-zoom (PTZ) capability, but the picture refresh is pretty slow, so there’s a good 7 second lag to update the picture, even though I can hear and see the camera physically move instantly when I use the PTZ controls.

Some other lessons learned and thoughts:

Give your camera a meaningful name and make sure you’re editing the correct camera! At one point I had edited a bunch of fields on another IP camera that I have (a non-hd Foscame FI8910W). I had to delete that camera and go back to re-add it.

Double check all fields for spelling errors and making sure that you properly removed the username and password variables if you used copy-and-paste. At one point, I had not realized that I had the and still in the streaming URL from copying and pasting it. A

Whenever you edit the name of any of the XML files, save the configuration, let the Vera work and reload, then go back to editing the device. Those XML files determine what variables/fields are in the configuration options for the device.

I’ve also been playing around with adjusting the video settings for the camera to see if there’s any optimum setting for the camera to be less choppy when viewing it. If you change resolution bit rate, frame rate, etc., it will effect the video stream that the Vera is hard coded to view. I’ll report back if I find something that works better.

I haven’t tried any audio or recording features yet. At this point, I’m pretty happy that I finally can see the picture on my phone while I’m at work. I’ll post an update if I can get any of those to work.

I purchased this Foscam FI9821W V2 off of groupon in late October and it has pretty much been sitting around ever since I couldn’t figure it out. A huge thanks to Aaron here who provided the luup files and the baseline instructions I used to get this thing working. I hope this helps someone out![/quote]

Thanks for the clarifications but I would like to piint out that you need the username and password for the pan and tilt funcation to work. for this when manually adding the camera you need to enter the username and password as this creates variables in the advanced settings for them. I would advice you to please check and if verified edit out the following "Do not enter in your username and password. " from your instructions.

just sharing - i thought some of you might be interested.

[quote=“waltzer11, post:36, topic:178812”]just sharing - i thought some of you might be interested.

seriously. First, REALLY OLD NEWS. Second, DUH! If you use the default username/password (most peoples problem) and/or you don’t keep updated on security fixes you are exposed. Most idiots, like this lady, use default Wifi router user/pw. Which is exactly what happened here.

What are you going to post next? “Woman who leaves car unlocked and keys on dashboard gets car stolen from grocery store parking lot”

next time you want to post ‘actions stupid people do unrelated to Vera’ please open a new thread.

lets keep this on topic

[quote=“Aaron, post:37, topic:178812”][quote=“waltzer11, post:36, topic:178812”]just sharing - i thought some of you might be interested.

seriously. First, REALLY OLD NEWS. Second, DUH! If you use the default username/password (most peoples problem) and/or you don’t keep updated on security fixes you are exposed. Most idiots, like this lady, use default Wifi router user/pw. Which is exactly what happened here.

What are you going to post next? “Woman who leaves car unlocked and keys on dashboard gets car stolen from grocery store parking lot”

next time you want to post ‘actions stupid people do unrelated to Vera’ please open a new thread.

lets keep this on topic[/quote]

HEY DONT GET SO UPTIGHT. just ignore my post if you dont like it.

for me to get this working, i had to use the IP of my vera instead of https://fwd2.mios.com.

local IP allowed vera to see my foscam cameras.

Finally broke down and contacted MIOS support for my 9821 v2 PTZ setup . Within 24 hours PTZ is now working. Thanks to a Vera guru called Julian.