activation of green led on Foscam

hello,

I use foscam via Panasonic driver with UI4 on my vera2.

It is possible to control green led usage with a Url call.

3 modes can be setup for green led. :

http://ip/set_misc.cgi?led_mode=0 Led indicates network connection
http://ip/set_misc.cgi?led_mode=1 Led indicates connected network type
http://ip/set_misc.cgi?led_mode=2, led desactivated except during camera boot

I’d like to setup mode 2 during web usage of CAM and to setup mode 0 or 1 when Cam is not used ?.

So is there possible to call Urls from inside the cam driver (similar to what is done to activate a light when cam is used)

http://forum.micasaverde.com/index.php?topic=3720.0

Thanks, !! but I have not the solution for led switching …

Hello,

is it possible to built a device which would be similar to a light switch one and which would send

http://ip/set_misc.cgi?led_mode=0 ( Led indicates network connection) when switched on ON STATE

http://ip/set_misc.cgi?led_mode=2 ( led desactivated except during camera boot) when switched on OFF STATE

if such a device can be built I could declare it in the list of lights to be activated when using the fosc

Yes, of course it is possible to implement new devices.

Information about plugins is at:

http://wiki.micasaverde.com/index.php/Luup_Plugins
http://wiki.micasaverde.com/index.php/Luup_Plugins_ByHand

The official plugin repository is at:

The code of the EtherRain8 Sprinkler Controller plugin might be a good start to look at:

http://code.mios.com/trac/mios_etherrain-controller

Hello,

Thanks, I am going to try to do it…

regards

While you are at it, you could add support for the motion sensors and the additional binary switch that come with the Foscam. :slight_smile:

Vera supports the concept of composite devices: a parent device with several children

A good example for a composite device is the Weather plugin:

http://code.mios.com/trac/mios_weather

For the Foscam, a complete device driver should implement:

[ul][li]Pan, Tilt, Patrol[/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]