DIY: Support for Foscam FI8908[w] (pan, tilt, patrol)

[ul][li]1. Install the “Panasonic IP Camera with Pan/Tilt/Zoom” plugin[/li]

[li]2. ‘Devices’ → Assign to a room → ‘Continue’[/li]

[li]3. ‘Devices’ → ‘Camera’ → Configure Camera (set IP address, Username, Password, Path: /snapshot.cgi )[/li]

[li]4. ‘Save’ → ‘Continue’[/li]

[li]5. Check for startup message: Panasonic IP Camera with Pan/Tilt/Zoom[]: OK[/li]

[li]6. Download ‘Devices’ → ‘Luup plugins’ → ‘Luup files’: I_PanasonicPTZ.xml[/li]

[li]7. Replace commands in I_PanasonicPTZ.xml:[/li][/ul]

MoveLeft

luup.inet.wget('http://' .. luup.devices[lul_device].ip .. '/nphControlCamera?Direction=PanLeft',5, lug_Username, lug_Password)

with

luup.inet.wget(‘http://’ … luup.devices[lul_device].ip … ‘/decoder_control.cgi?command=4&onestep=1’,5, lug_Username, lug_Password)

MoveRight

luup.inet.wget('http://' .. luup.devices[lul_device].ip .. '/decoder_control.cgi?command=6',5, lug_Username, lug_Password)

with

luup.inet.wget(‘http://’ … luup.devices[lul_device].ip … ‘/decoder_control.cgi?command=6&onestep=1’,5, lug_Username, lug_Password)

MoveUp

luup.inet.wget('http://' .. luup.devices[lul_device].ip .. '/decoder_control.cgi?command=26',5, lug_Username, lug_Password)

with

luup.inet.wget(‘http://’ … luup.devices[lul_device].ip … ‘/decoder_control.cgi?command=0&onestep=1’,5, lug_Username, lug_Password)

MoveDown

luup.inet.wget('http://' .. luup.devices[lul_device].ip .. '/decoder_control.cgi?command=28',5, lug_Username, lug_Password)

with

luup.inet.wget(‘http://’ … luup.devices[lul_device].ip … ‘/decoder_control.cgi?command=2&onestep=1’,5, lug_Username, lug_Password)

ZoomOut → Vertical patrol

luup.inet.wget('http://' .. luup.devices[lul_device].ip .. '/nphControlCamera?Direction=ZoomWide',5, lug_Username, lug_Password)

with

luup.inet.wget(‘http://’ … luup.devices[lul_device].ip … ‘/decoder_control.cgi?command=26’,5, lug_Username, lug_Password)

ZoomIn → Horizontal patrol

luup.inet.wget('http://' .. luup.devices[lul_device].ip .. '/nphControlCamera?Direction=ZoomTele',5, lug_Username, lug_Password)

with

luup.inet.wget(‘http://’ … luup.devices[lul_device].ip … ‘/decoder_control.cgi?command=28’,5, lug_Username, lug_Password)

[ul][li]8. ‘Devices’ → ‘Luup plugins’ → Luup files → Upload I_PanasonicPTZ.xml (do not forget to check ‘Restart Luup after upload’) → ‘Go’[/li]

[li]9. Check for startup message: Panasonic IP Camera with Pan/Tilt/Zoom[]: OK[/li][/ul]

An official plugin for the Foscam FI8908[w] should support:

[ul][li]Pan, Tilt, Patrol (as above)[/li]
[li]Motion Sensor 1 (motion alarm) – /get_status.cgi: alarm_status: 0: no alarm; 1: motion alarm; 2: input alarm[/li]
[li]Motion Sensor 2 (input alarm) – /get_status.cgi: alarm_status: 0: no alarm; 1: motion alarm; 2: input alarm[/li]
[li]BinarySwitch (IO output high/low) – /decoder_control.cgi?command: 94: IO output high; 95: IO output low[/li]
[li]BinarySwitch (blinking green LED on/off) – /set_misc.cgi?led_mode: 0: Mode 1; 1: Mode 2; 2: Turn off lights[/li]
[li]BinarySwitch (IR LEDs on/off) – AFAIK not supported by current Foscam firmware[/li][/ul]

Successfully tested with firmware: 11.14.1.46 / 2.4.8.12

Ape15e,

I wanted to ask you, was the SDK I posted here (http://forum.micasaverde.com/index.php?topic=3591.15) helpful in developing this solution to use Foscam on Vera?

Also, I would like to offer you a free camera if you can feature a link to Foscam.us on the front page of Micasverde with a small tagline saying compatible with Vera.

For everyone else:
New reduced price for Foscam Wireless IP Camera Pan Tilt:
http://foscam.us/foscam-fi8908w-wireless-ip-camera-pan-tilt-wpa-audio-(black)-p-42.html

Foscam,

yes, the SDK was helpful, but I had to consult the Net for a more detailed list of commands (set_misc.cgi, onestep).

Thanks for your kind offer. I am not an employee of MCV and have no control over the contents of the MCV frontpage.

The ‘official’ user-generated list of supported hardware is at:
http://wiki.micasaverde.com/index.php/Supported_Hardware
http://wiki.micasaverde.com/index.php/IP_Cameras

I added your product to the category ‘Cameras that work’.

BTW, is there a way to disable the IR LEDs?

Ap15e
Thanks!!
I had started working on this a couple of weeks back and got distracted… Went to work on it again today and !!!BAM!!! you did it for me.
It would be great to see an official release plug-in to leverage the motion detection alarms…

Thanks again!

if someone has made the modifications, would they mind uploading the changed file to mios.com?
;D
thanks

Bill

Hi All,

Is there any official release of the plug-in?

Thanks

Would someone be willing to upload a working file with the modifications required?

I followed the information above, but when I attempt to control the camera I consistently get the error message “Device not ready”. I can view the video stream, but I can’t move the camera.

Thanks.

Yeah, having exactly the same problem here.

If someone could upload a working .xml file, that would be brilliant.

Many Thanks

Here is my working modified file: (attached)

Shady,

Thanks for uploading the file, but I can’t figure out how to use it. I have uploaded it to my vera (UI4). I can see it in the list of plugins, but I can’t figure out how to select it, the only one I see on the menu when I am creating the camera is the one from MCV that is stock.

thanks again

Bill ???

You have to allow the normal Panasonic one to install first from the MIOS marketplace (hit the “+” button) then once you have done and its created the panasonic device that then just upload the “Shady special” in the MiOS developers/Luup files area.

Thanks very much for the uploaded file. I’ll look at your file (which works) and compare it to mine to try to figure out what I did wrong.

I guess I am slow, but I have added the camera about a dozen times and it just won’t work

is there a wiki on how to use the modded file?

thanks

@BillC, not to worry there is always a bit of learning curve with these things!

If you’ve added the Panasonic Plugin from the MiOS marketplace, can see the camera as a device?
Have you then uploaded the modified xml file via the MiOS developers / LUUP files screen? (make sure to check the restart LUA engine check box)
If both the above have been accomplished all you need to do then is just configure the device with the correct IP address etc (make sure you try and make your camera on a static address). You may also need a username and password for this.

+1 Strangely - “Shady special”… made me laugh (disclaimer: full credit should be given to the OP who modified the file and posted the instructions)

Make sure you follow the steps, each step complete and in order. When it says to download and modify the file, then upload…you could skip that and just upload the file I posted.

For instance if you upload the modified file and THEN install the Panasonic Plug-In…it will overwrite the modified file with the unmodified one. So first things, first. Also so be aware that you do need the user/pass as was stated (default is under camera on sticker). Also be sure you are putting in the part of the URL path for the still jpg image:

/snapshot.cgi

Good luck!

I am wondering if this won’t work on UI4

Bill

[quote=“BillC, post:16, topic:166007”]I am wondering if this won’t work on UI4

Bill[/quote]I know @shady at least is running UI4 with his!

I confirm it’s running under IU4.

No love here with the FE8918W camera.

Followed the directions in this thread to a T, but no joy. I can hit the URL to the camera itself (http://192.168.1.70/snapshot.cgi) from my browser and there is the picture, but nothing from the camera module in Vera.

Try setting the username and the password and removing the MAC address.