HendrikRoth / boblight

Automatically exported from code.google.com/p/boblight
0 stars 0 forks source link

Boblight client monitor system #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have attached a .c file which I designed to allow me to be able to easily 
start/stop boblight clients from within other applications. This program starts 
an instance of the boblightd server, and then proceeds to monitor a 
configurable directory for any files modified / created.  At the moment, it 
looks for specific filenames being modified as a trigger for launching specific 
clients. For example, if the file /path/to/watch/dir/tv is modified, the 
boblight-X11 client is started. Only one client is active at a time, the 
previous one being killed when a new one is started.

The advantage of a system like this is that it allows clients to be 
started/stopped by other applications by simply running 'echo 1 > 
/path/to/watch/dir/tv' when TV playback starts to begin the 'classic' ambilight 
system, and 'echo 666666 > /path/to/wathc/dir/fixed' when it is paused/  
stopped to provide room lighting. This method means that other applications 
don't have to worry about permissions, or where they are running from, or any 
other sort of process management. I have used this with both MythTV system 
events (for the scenario described above) and a simple PHP webpage to implement 
a light controller.

There are still improvements to be made (a lot of stuff needs to be moved to a 
config file instead of being hardcoded), but I thought I would share this in 
case it was interesting / useful.  

Original issue reported on code.google.com by kryi...@gmail.com on 7 Jan 2012 at 11:40

Attachments:

GoogleCodeExporter commented 9 years ago
what is "boblight-chase" in your script?

Original comment by r.vankem...@gmail.com on 25 Jan 2012 at 2:49

GoogleCodeExporter commented 9 years ago
boblight-chase is a client I wrote that provides several effects (fading 
lights, rainbow colours etc)

Original comment by kryi...@gmail.com on 5 Feb 2012 at 12:01

GoogleCodeExporter commented 9 years ago
Attached boblight-chase code (not necessary for monitor code to work, thought 
it might be interesting for others)

Original comment by kryi...@gmail.com on 5 Feb 2012 at 12:38

Attachments:

GoogleCodeExporter commented 9 years ago
How can we include this one into present version and what are call options?

Original comment by illi...@gmail.com on 24 Jun 2012 at 6:38