It allows to control APPLamp (WiFi Lamp) with only one command and simple parameters.
Here's the download link: http://iqjar.com/download/jar/milight/m ... naries.zip
Just make a download, unzip it and place it e.g. /home/pi/domoticz/scripts
Make it executable and change the IP adress in the config file to that of your wifi-bridge.
Than from CLI (Putty) start it with ./milight and you'll see all possible parameters.
It's very fast in a bash script.
It inspired me for that simple script calling a very slow brightness and coloure change instead of the build in DISCO-mode which is a little bit too fast for me.
By the way, check the other web-pages of this guy; made very well!
Regards
Hardy
Code: Select all
#!/bin/bash
# prepare show for dimming white
./milight 1 B 1 # dimm to minimum
./milight 1 ON # switch ON
./milight 1 w # switch to white
./milight 1 B 1 # dimm to minimum
for i in {0..19} # change brightness from 0 to 8
do
./milight 1 B $i
for x in $(seq 200); do # do it slow
echo $i $x # show value and slow down
done
done
#---------------------------------------------------------------------------------------
# show smooth coloure change
./milight 1 B 1 # dimm to minimum
./milight 1 C 0 # change coloure to 0 value (dark blue)
./milight 1 B 19 # set brightness to maximum
for i in {0..255} # do a loop for all values
do
./milight 1 C $i # change coloure through all values
for x in $(seq 300); do # do it slowly
echo $i $x # show value and slow down
done
done
./milight 1 B 1 # change to brightness minimum
./milight 1 OFF # switch OFF