Page 1 of 1
Lanbox - Homeseer integration
Posted: Sat Oct 31, 2009 9:01 pm
by Foxtastic
I know a few guys on this forum (lennart, snelvuur, mhwlng..) and the Lanbox LCE to control their RGB strips. I have hooked up the LED-Strips via a DMX controller to the Lanbox. You can make nice que's etc. But how do you start these cue lists using homeseer? an example would be great
Thanks in advance...
Lanbox - Homeseer integration
Posted: Sun Nov 01, 2009 12:18 am
by Bastiaan
One of the forum members under the name "Droezel" (Dries) made a plugin to control the LANbox with HS and to get it in as a device for controlling.
It runs here for a few months now and runs very nice.
Bastiaan
Lanbox - Homeseer integration
Posted: Sun Nov 01, 2009 9:33 am
by Foxtastic
Hi Bastiaan,
Thanks! I know Droezel made a plugin for the DMX4ALL device (
http://board.homeseer.com/showthread.ph ... dmx&page=2) but I wasn't aware he made one for the lanbox.
Is the confusion on the type of device or has he indeed made the lanbox plugin? and if so can i download it?
Hary
Lanbox - Homeseer integration
Posted: Sun Nov 01, 2009 11:25 am
by Bastiaan
Mmmm you are right, my mistake, sorry.
Lanbox - Homeseer integration
Posted: Sun Nov 01, 2009 10:32 pm
by Lennart
Hi Foxtastic,
On
http://www.lanbox.com/downloads/downloads.html you will find some examples for controlling your LanBox from within different environments.
One of these is
http://www.lanbox.com/downloads/other/LanBox.php.zip which shows you how to control your LanBox from php.
I isolated the part that starts a cuelist in the following php script:
<?php
$fp = fsockopen("xxxx.yyy.zzz.vvv", 777, $errno, $errstr, 10);
if ($fp) {
$out = "123\r\n";
fwrite($fp, $out);
$in = fgets($fp, 26);
$out = '*5601 000B 01#' ;
fwrite($fp, $out);
fclose($fp);
}
?>
Note that xxx.yyy.zzz.vvv should be changed into the IP-address of you LanBox. 123 should be changed into your LanBox password. '*5601 000B 01#' is the LanBox control string for starting a cuelist (cuelist 1 in this case; if you want to start cuelist 2, change 01 into 02, etc,).
Furthermore, I start the php script from within Homeseer using a HS script:
sub main()
dim page
page = hs.GetURL("localhost","/lanbox.php",TRUE,80)
end sub
Some remarks:
- You could circumvent the php script altogether by opening and writing to the socket from the Homeseer script directly.
- You could of course use parameter passing to start different cuelists using only a single script.
- If you want to use other command, have a look at the php and cgi examples from the LanBox site.
Lennart
Lanbox - Homeseer integration
Posted: Mon Nov 02, 2009 12:52 am
by Foxtastic
Hi Lennart,
Thanks for your extensive reply! Makes it understandable
Just a question: Do you start a the php script for every different scene? such as lanbox1.php, lanbox2.php etc? with the cmd value already in the script or do you use parameter passing to start different cuelists?
Thanks in advance for you reply!
Hary
Lanbox - Homeseer integration
Posted: Wed Nov 04, 2009 10:21 pm
by Lennart
Hi Hary,
Currently, I have a script voor each scene, but as I wrote that's not required (actually, it's just laziness that I didn't put in a parameter yet). Just put the scene number in the URL as a GET parameter (&scene=xx), read the $_GET["scene"] value in your php script and concatenate that in the right place (after doing some elementary checks) and you're done.
Lennart
Lanbox - Homeseer integration
Posted: Thu Nov 05, 2009 8:08 pm
by Foxtastic
Hi Lennart,
Thanks for the additional information! Helps a lot!
Hary
Re: Lanbox - Homeseer integration
Posted: Sat Jun 26, 2010 1:34 am
by Snelvuur
http://files.domoticaforum.eu/index.php?cam=/LanBox
My version of a easy way for my gf to change the colors of the lights, its also now easier to integrate with homeseer too since i can just set the channels + hex code for color in the url.