Bottlerocket has been around for a considerable time and interfaces to X10 modules via a serial interface known as a Firecracker module. Here is a link to the BottleRocket website http://www.linuxha.com/bottlerocket/ Here you can read about it, download the current application, etc. From this point on I will provide installation instructions for my setup which includes Ubuntu running on a PC. These instructions should work for you too.
Please note: You need certain equipment and an understanding of X10. This procedure will not cover those areas. Reading the bottlerocket link above might help provide that insight.
- in a browser go to: http://linuxha.com/bottlerocket/#firecracker_info
- scroll down to the Download the current version(0.04c) link (Download the current version(0.04c))
- click on it.
- This will download bottle rocket to your Downloads directory.
- cd to the Downloads directory and
- mv bottlerocket-current.tar.gz bottlerockeet.tar
- tar -xvf bottlerockeet.tar
- this will generate a directory called: bottleocket-0.04c
- cd bottleocket-0.04c
- there you will find a readme file and an install file — please read these two files.
- make install
to test: usr/local/bin/br -x /dev/ttyUSB0 n16 on < this assumes the device you want to control has an address of “n16”. Substitute “off” to turn the device off.
Things to be aware of:
- create a director in “/” for your scripts. call it /scripts and be sure it is: drwxr-xr-x 2 root root 4096 May 30 21:35 /scripts
- to access the /dev/ttyUSB0 device you/your program needs to be root .i.e, myscript.sh needs to be: -rwxr-xr-x 1 root root
- in your script it might best to provide a full path to the br command, i.e., /usr/local/bin/br -x /dev/ttyUSB0 n16 on