Lanbox - Homeseer integration

Forum about LEDS, LED lights, DMX and other lights.

Moderator: Mversluis

Post Reply
Foxtastic
Starting Member
Starting Member
Posts: 37
Joined: Sun Jun 07, 2009 1:32 pm
Location: Netherlands

Lanbox - Homeseer integration

Post 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...
Bastiaan
Senior Member
Senior Member
Posts: 1259
Joined: Sat May 24, 2008 11:36 am
Location: Netherlands
Contact:

Lanbox - Homeseer integration

Post 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
Foxtastic
Starting Member
Starting Member
Posts: 37
Joined: Sun Jun 07, 2009 1:32 pm
Location: Netherlands

Lanbox - Homeseer integration

Post 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
Bastiaan
Senior Member
Senior Member
Posts: 1259
Joined: Sat May 24, 2008 11:36 am
Location: Netherlands
Contact:

Lanbox - Homeseer integration

Post by Bastiaan »

Mmmm you are right, my mistake, sorry.
Lennart
Member
Member
Posts: 497
Joined: Sat Jul 22, 2006 10:58 am
Location: Netherlands

Lanbox - Homeseer integration

Post 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
Foxtastic
Starting Member
Starting Member
Posts: 37
Joined: Sun Jun 07, 2009 1:32 pm
Location: Netherlands

Lanbox - Homeseer integration

Post 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
Lennart
Member
Member
Posts: 497
Joined: Sat Jul 22, 2006 10:58 am
Location: Netherlands

Lanbox - Homeseer integration

Post 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
Foxtastic
Starting Member
Starting Member
Posts: 37
Joined: Sun Jun 07, 2009 1:32 pm
Location: Netherlands

Lanbox - Homeseer integration

Post by Foxtastic »

Hi Lennart,

Thanks for the additional information! Helps a lot!

Hary
User avatar
Snelvuur
Forum Moderator
Forum Moderator
Posts: 3156
Joined: Fri Apr 06, 2007 11:01 pm
Location: Netherlands
Contact:

Re: Lanbox - Homeseer integration

Post 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.
// Erik (binkey.nl)
Post Reply

Return to “LEDS, DMX & Lights Forum”