peterw;202940 Wrote: 
> Definitely look at the "beta2" version at
> http://www.tux.org/~peterw/slim/BottleRocket/
> which should work with X10/Firecracker on Windows (even includes the
> needed EXE and DLL, thus the considerably larger zip file), and now
> (finally) uses Slim::Utils::Scheduler to minimize the impact of
> multiple commands on the main Slimserver process.
> 
> I'd think the main parts to modify would be
> - web config options & validation (what do Insteon device, scene, and
> macro names look like?)
> - the sendX10Code() routine, to recognize Insteon devices and modify
> what it passes to addToQueue() accordingly (would be better to make new
> routines like powerOnDevice(), powerOffDevice(), brightenDevice(),
> dimDevice(), allLightsOn(), allDevicesOn() that only call xendX10Code
> for X10, and call a new Insteon routine for Insteon devices)
> - the processCommandFromQueue() routine, to recognize Insteon commands
> ($cmdArgs[0] ne &getCommand() ?) and process them properly
> 
I did a quick look at your plugin...  of course it's hard to get a full
grasp of how it works not having written and not having a firecracker or
x10 stuff to test with.

Insteon stuff works a bit differently than x10.  From what I understand
each device comes with a device ID hardcoded for it.  It's a bunch of
hex (I think) digits like c3.ff.0d.  I'm not aware of an easy way to
detect all the devices connected, so the plugin would probably require
the user to enter their device id's.  There's a sticker with the device
ID on each device.  For scenes you basically register each device with
controller for it.  So in that case you'd use the controllers ID for
the scene.  I also don't think you have a brigten/darken command. 
Instead when you send the device code you indicate the ramprate and
brightness level.

-Greg


-- 
GoCubs
------------------------------------------------------------------------
GoCubs's Profile: http://forums.slimdevices.com/member.php?userid=312
View this thread: http://forums.slimdevices.com/showthread.php?t=35370

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to