[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