Thank you very much for all you effort on trying to interface the FW9821W camera to Vera. Your new URL setting: /cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=admin&pwd=xxxxx combined with the new Foscam FW9821 firmware did the trick. I finally have an image in Vera from my FW9821W camera.
I removed the data in the username and password fields for now. Because they are in the URL setting, they are no longer needed separately in the username and password fields.
The image format is different in thumbnail and the View form, but that can probably be fixed with a programming change. I have no entry for the impl_file on the advanced tab because if you use the D_DigitalSecurityCamera1.xml device file, the impl_file is not referenced. That is possibly why your I_Foscam9821.xml file appears to have no effect. If I remember correctly the I_FoscamPTZ.xml impl file is only referenced from the D_DigitalSecurityCamera2.xml device file.
Thank you for helping me finally get an image in Vera from my FW9821W camera. Good luck in writing an impl file for the camera.
It is probably better to not use I_FoscamPTZ.xml file because all commands in it are not valid for FI9821. It is better to leave that field empty.
Now I have succeed to modify my I_Foscam9821.xml file so that pan and tilt commands are working. Also preset are almost working (I only have to use fixed names for them Preset1, Preset2 and so on, I don?t know how to parse preset names to Vera because camera uses presets names no numbers)
Remember also put your username and password (page Settings). Pan and tilt commands need them.
Save setting
Presets are not working as they should. I will change this when I know how to do it (and have more time to do it, maybe someone else can do it). Now you must log to your camera with our browser and make preset and name then like this Preset1 Preset2 Preset3…
There are lot of fields in the Advanced tab that are not used with this imp-file. (Especially fields that are used for Motion Sensor. Maybe we need these in the future).
[quote=“Jukka, post:143, topic:171931”]Now also Pan/Tilt (and Presets) are working. Upload attached I_Foscam98HD.xml file to your Vera (go to APPS/Develop Apps/Luup files)
You must also have D_DigitalSecurityCamera2.json and D_DigitalSecurityCamera2.xml files on your Vera
After upload of the file I_Foscam98HD.xml change settings on tab page Advanced
Remember also put your username and password (page Settings). Pan and tilt commands need them.
Save setting
Presets are not working as they should. I will change this when I know how to do it (and have more time to do it, maybe someone else can do it). Now you must log to your camera with our browser and make preset and name then like this Preset1 Preset2 Preset3…
There are lot of fields in the Advanced tab that are not used with this imp-file. (Especially fields that are used for Motion Sensor. Maybe we need these in the future).[/quote]
Jukka–
Thanks for doing this. After uploading the impl_file I keep getting “device not ready” when I try to use the pan keys. Any thoughts? I am running firmware 1.5.408. I have verified all of the relevant files were uploaded.
Can you see the picture? Or get you that message when you try to rotate the camera?
If you can?t see the picture at all then I don?t have any hint what is wrong.
But if you can?t use pan/tilt then probably there are problems with user name and password. I am using username as admin (I know that this is not good way to do it but…).
Next sentence is taken from Foscam CGI User Guide:
?Our device can only support authentication by pass user name or password attached at CGI request string currently. For example: http://192.168.1.2/cgi-bin/CGIProxy.fcgi&usr=admin&pwd=123&cmd=ABC?
(I am not good at English and don?t fully understand what they mean)
This is an example of Move Up command: /cgi-bin/CGIProxy.fcgi?cmd=ptzMoveUp&usr=admin&pwd=xxxx
In every commad example they are using usr=admin. So if you use different user name than admin maybe that is reason for your problems. (I haven?t tested different user names.)
Can you see the picture? Or get you that message when you try to rotate the camera?
If you can?t see the picture at all then I don?t have any hint what is wrong.
But if you can?t use pan/tilt then probably there are problems with user name and password. I am using username as admin (I know that this is not good way to do it but…).
Next sentence is taken from Foscam CGI User Guide:
?Our device can only support authentication by pass user name or password attached at CGI request string currently. For example: http://192.168.1.2/cgi-bin/CGIProxy.fcgi&usr=admin&pwd=123&cmd=ABC?
(I am not good at English and don?t fully understand what they mean)
This is an example of Move Up command: /cgi-bin/CGIProxy.fcgi?cmd=ptzMoveUp&usr=admin&pwd=xxxx
In every commad example they are using usr=admin. So if you use different user name than admin maybe that is reason for your problems. (I haven?t tested different user names.)[/quote]
Jukka
I get the 720p picture to appear.. No problem. The user and password obviously are correct. The pan just started working. I may of had an extra trailing blank space after the impl device name under settings.
Thanks for your help.
Don
I also have a working picture and pan functionality through Vera with my Foscam FI9821W camera using your I_Foscam98HD.xml impl file and the new FI9821W firmware. It would be nice at this time to have a few hours of mvcflorin’s development time to make your I_Foscam98HD.xml have the same functionality as the current Foscam IP Camera Plugin that works with FI8910W cameras.
There are a few quirks using the new camera with Vera. The View function frequently breaks, but that also happens with any Foscam camera accessed through Vera at this time. The pan function on my Vera is sluggish, but since I have 7 Foscam cameras, I would expect it to be.
I really like using the FI9821W camera. One of the main reasons is this camera has a user interface that can be tied to 9 Foscam cameras at one time. These cameras can be any mixture fo FI9821W, FI8910W, or FI8909W cameras. I know of no other Foscam camera interface or free camera client that allows one to mix H.264 and MJPEG WiFi cameras.
A couple of caveats if you plan to use the FI9821W camera’s multi-camera functionality. First you will need to install the newest Foscam FI9821W software. Second, if you are planning to access the camera by means of a DDNS servers such as dyndns.org, when you add a camera, you will need to use a host address format like http://mycamera.dyndns.org. The camera will save the address, but in doing so it will remove the http:// prefix. If you try to add a camera without using the http:// prefix, the interface will say that the camera was added correctly, but that will not actually be the case. It took me a several evenings of frustration before I learned about the need for the http:// prefix when I added a camera. For a MJPEG camera, the HTTP and Media Port will have the same value. This Network Address Tables for each camera need to be entered into your router’s NAT address table. A H.264 camera will have a separate HTTP Port and Media Port. Each of these values must be different and also entered into your router’s NAT table.
Is there a way to control the pan and tilt with a scene? So far only the Motion Sensor can be added in the scene. The camera itself is greyed out on my Vera in the scene creation options.
[quote=“mcvflorin, post:1, topic:171931”]I just finished tweaking the Foscam plugin version 2.0 and written some documentation. Now it has support for motion sensor and presets. It should work for both UI4 and UI5. Presets are supported only in firmware versions starting with 1.5.390.
Note: On firmwares older than 1.5.390 arming and bypassing the motion sensor won’t work unless you upload this file on Vera. After you upload the file, you must reload the Luup engine.
Edit no.2: I updated the documentation with instructions for getting presets support in post 1.5.390 firmwares.
Edit no.3: It seems that the updated camera interface with 8 preset buttons didn’t make it into the beta release. I attached the updated file. Upload it on Apps >> Develop Apps >> Luup Files and reload Luup after uploading.[/quote]
I tried to upload the Luup file but it get’s renamed “C%3A%5CI_Foscam98HD.xml” in my list of Luup files? How do I upload it so it shows as “I_Foscam98HD.xml”. I have search the blog trying to figure out what I’m doing wrong. Everything works with the camera except the presets and pan/tilt.
Is your impl file I_Foscam98HD.xml meant to work with urn:schemas-upnp-org:device:DigitalSecurityCamera:1 or urn:schemas-upnp-org:device:DigitalSecurityCamera:2? Your program lists you CAM_SID as urn:micasaverde-com:serviceId:Camera1. However, I do not see the presets with your impl file unless I use urn:schemas-upnp-org:device:DigitalSecurityCamera:2 as the device file.
I am also a little confused in regard to have everything functions. I set the device type like your xml code: urn:micasaverde-com:serviceId:Camera1 and after I save the entry, the device type is transformed into urn:schemas-upnp-org:device:DigitalSecurityCamera:1.
Any information you could provide would be appreciated.
Also, are you looking into adding Motion Sensor functionality to your code?
In Advanced tab in field device_type you must have urn:schemas-upnp-org:device:DigitalSecurityCamera:2 (If you use urn:schemas-upnp-org:device:DigitalSecurityCamera:1 then presets are not visible)
I was looking how to add motion Sensor to my code but I can’t do it now. I don’t know how to do that. FI9821 Camera firmware don’t have same kind of commands than older Foscam cameras had. I can’t find any instructions/commands how to tell camera to send information to Vera that motion is detected!
First of all you need to upgrade your FI9821W camera to the latest version of its firmware. I believe the issue date for the firmware is 2/1/2013. Without the latest firmware, you will not have a chance of succeeding.
Then try these entries on your settings page:
URL: /cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=MYLOGIN&pwd=MYPASS
Username: MYLOGIN
Password: MYPASS
MAC: WiFi MAC address of your FI9821W camera
IP Address: 192.168.1.113:88
impl_file: The latest version of Jukka’s I_Foscam98HD.xml file
DirectStreamingURL: /img/video.mjpeg I don’t know if this works, but it is the setting I use.
These are similar to the settings that I use for my FI9821W camera on my Vera 3 device. Hopefully, they will work for you as well.
You also need to be sure that your follow the device creation procedure listed in this thread.
Hi, I installed Foscam 8918W manually on Vera3. Camera works well but motion sensor stays red and generate notification every minute as while sense motion (via Vera Alerts). Ontime value set as default (1200).
Assumed ontime parameter does not work properly. How do I make ontime parameter work ? I just want to get notification once every 20+ minutes…
It is possible that your camera is working as expected with Vera, especially if you are using multiple cameras. Foscam cameras are not extremely stable with the current version of Vera firmware. I hope it is better with the next firmware release. But if sometime you see a good picture and sometimes you see http://i.imm.io/WqtW.png, you are experiencing what I consider to be normal behavior of a Foscam camera and Vera.
If I want to see stable video images from my 7 Foscam cameras, I use my Foscam FI9821W camera in Multi-Camera mode on a Windows PC. It is the only way I have found to access with stability both FI9821W (H.264) and FI8910W (MJPEG) Foscam cameras as the same time. Vera can access both types of cameras at the same time, but it is not stable. I use my Vera as only a secondary source for images.
As far as accessing the FI9821W from an android device, I have similar issues. In my case, I cannot see images, but I can access the camera settings. I believe that source of the frustration is the standard browser that comes with an android device does have the necessary plug-in to work properly.