We have moved at community.getvera.com

Author Topic: DIY: Support for Foscam FI8908[w] (pan, tilt, patrol)  (Read 83117 times)

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
DIY: Support for Foscam FI8908[w] (pan, tilt, patrol)
« on: June 03, 2010, 11:40:25 am »
  • 1. Install the "Panasonic IP Camera with Pan/Tilt/Zoom" plugin
  • 2. 'Devices' -> Assign to a room -> 'Continue'
  • 3. 'Devices' -> 'Camera' -> Configure Camera (set IP address, Username, Password, Path: /snapshot.cgi )
  • 4. 'Save' -> 'Continue'
  • 5. Check for startup message: Panasonic IP Camera with Pan/Tilt/Zoom[<deviceId>]: OK
  • 6. Download 'Devices' -> 'Luup plugins' -> 'Luup files': I_PanasonicPTZ.xml
  • 7. Replace commands in I_PanasonicPTZ.xml:


MoveLeft
Quote
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&amp;onestep=1',5, lug_Username, lug_Password)

MoveRight
Quote
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&amp;onestep=1',5, lug_Username, lug_Password)

MoveUp
Quote
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&amp;onestep=1',5, lug_Username, lug_Password)

MoveDown
Quote
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&amp;onestep=1',5, lug_Username, lug_Password)

ZoomOut -> Vertical patrol
Quote
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
Quote
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)


  • 8. 'Devices' -> 'Luup plugins' -> Luup files -> Upload I_PanasonicPTZ.xml (do not forget to check 'Restart Luup after upload') -> 'Go'
  • 9. Check for startup message: Panasonic IP Camera with Pan/Tilt/Zoom[<deviceId>]: OK

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

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

Successfully tested with firmware: 11.14.1.46 / 2.4.8.12
« Last Edit: June 03, 2010, 04:31:55 pm by Ap15e »

Offline Foscam

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: DIY: Support for Foscam FI8908[w] (pan, tilt, patrol)
« Reply #1 on: June 04, 2010, 04:31:06 pm »
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

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: DIY: Support for Foscam FI8908[w] (pan, tilt, patrol)
« Reply #2 on: June 04, 2010, 05:41:24 pm »
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?

Offline ald

  • Newbie
  • *
  • Posts: 19
  • Karma: +0/-0
Re: DIY: Support for Foscam FI8908[w] (pan, tilt, patrol)
« Reply #3 on: June 07, 2010, 10:10:27 pm »
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!

Offline BillC

  • Sr. Newbie
  • *
  • Posts: 34
  • Karma: +0/-0
Re: DIY: Support for Foscam FI8908[w] (pan, tilt, patrol)
« Reply #4 on: June 07, 2010, 10:50:52 pm »
if someone has made the modifications, would they mind uploading the changed file to mios.com?
 ;D
thanks

Bill

Offline junglewave

  • Sr. Newbie
  • *
  • Posts: 35
  • Karma: +0/-0
Re: DIY: Support for Foscam FI8908[w] (pan, tilt, patrol)
« Reply #5 on: August 08, 2010, 06:20:38 pm »
Hi All,

Is there any official release of the plug-in?

Thanks

Offline Frazierwa

  • Sr. Newbie
  • *
  • Posts: 44
  • Karma: +0/-0
Re: DIY: Support for Foscam FI8908[w] (pan, tilt, patrol)
« Reply #6 on: August 17, 2010, 05:59:41 pm »
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.

Offline junglewave

  • Sr. Newbie
  • *
  • Posts: 35
  • Karma: +0/-0
Re: DIY: Support for Foscam FI8908[w] (pan, tilt, patrol)
« Reply #7 on: August 19, 2010, 04:26:43 pm »
Yeah, having exactly the same problem here.

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

Many Thanks

Offline shady

  • Hero Member
  • *****
  • Posts: 1331
  • Karma: +11/-0
  • This monkey knows his Window Coverings!
Re: DIY: Support for Foscam FI8908[w] (pan, tilt, patrol)
« Reply #8 on: August 20, 2010, 11:49:43 am »
Here is my working modified file:  (attached)
Vera3 1.5.346, Schlage (3)DB (2)Lever, Kwikset (1)Lever, RCS TZ43 Thermo, (2) Vizia RZI06-1LX 600W Dimmers, (17) Monster (Leviton) Dimmers (6) Monster (Leviton) IWC Scene Controllers (1) Etherrain-8, (3) HSM 100's (1)GE 3-Way set

Offline BillC

  • Sr. Newbie
  • *
  • Posts: 34
  • Karma: +0/-0
Re: DIY: Support for Foscam FI8908[w] (pan, tilt, patrol)
« Reply #9 on: August 20, 2010, 12:28:20 pm »
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 ???

Offline strangely

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3722
  • Karma: +34/-2
  • Vera 1,3 & V light
Re: DIY: Support for Foscam FI8908[w] (pan, tilt, patrol)
« Reply #10 on: August 20, 2010, 01:00:41 pm »
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.
Kwickset locks, HA01C, HA14C, HA02C, HA03C, HA05C, HA04C, HA07C, HA09C, Aeon HEM, GE 45604, 45606, 45609, ZDP100, VRF01-1LZ, WDTC-20, HA18WD, WDHA-12R, HRDS1, HM-TS001, AC1-ZW, TV-IP110, BL-C210A, LUUP control- EtherRain8, DSC Alarm, HDMI matrix, HR24-200, Panasonic TV, SQblaster

Offline Frazierwa

  • Sr. Newbie
  • *
  • Posts: 44
  • Karma: +0/-0
Re: DIY: Support for Foscam FI8908[w] (pan, tilt, patrol)
« Reply #11 on: August 20, 2010, 03:26:16 pm »
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.

Offline BillC

  • Sr. Newbie
  • *
  • Posts: 34
  • Karma: +0/-0
Re: DIY: Support for Foscam FI8908[w] (pan, tilt, patrol)
« Reply #12 on: August 20, 2010, 05:31:12 pm »
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

Offline strangely

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3722
  • Karma: +34/-2
  • Vera 1,3 & V light
Re: DIY: Support for Foscam FI8908[w] (pan, tilt, patrol)
« Reply #13 on: August 20, 2010, 08:34:45 pm »
@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.
Kwickset locks, HA01C, HA14C, HA02C, HA03C, HA05C, HA04C, HA07C, HA09C, Aeon HEM, GE 45604, 45606, 45609, ZDP100, VRF01-1LZ, WDTC-20, HA18WD, WDHA-12R, HRDS1, HM-TS001, AC1-ZW, TV-IP110, BL-C210A, LUUP control- EtherRain8, DSC Alarm, HDMI matrix, HR24-200, Panasonic TV, SQblaster

Offline shady

  • Hero Member
  • *****
  • Posts: 1331
  • Karma: +11/-0
  • This monkey knows his Window Coverings!
Re: DIY: Support for Foscam FI8908[w] (pan, tilt, patrol)
« Reply #14 on: August 20, 2010, 10:09:03 pm »
+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!
Vera3 1.5.346, Schlage (3)DB (2)Lever, Kwikset (1)Lever, RCS TZ43 Thermo, (2) Vizia RZI06-1LX 600W Dimmers, (17) Monster (Leviton) Dimmers (6) Monster (Leviton) IWC Scene Controllers (1) Etherrain-8, (3) HSM 100's (1)GE 3-Way set