GoCubs;202908 Wrote: 
> 
> I'll have to look at your code and see how easy it'd be to add Insteon
> stuff or to start from scratch.  Given one runs on Linux and one in
> Windows makes it a bit complicated.

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

-Peter


-- 
peterw

http://www.tux.org/~peterw/
free plugins: http://www.tux.org/~peterw/#slim
BlankSaver BottleRocket FuzzyTime SaverSwitcher SleepFade StatusFirst
VolumeLock
------------------------------------------------------------------------
peterw's Profile: http://forums.slimdevices.com/member.php?userid=2107
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