One of my most interesting projects is to remove as many of the conventional bulbs as possible and replace them with led-based lighting, some home-built and some bought.
Nice led calculator:
Some experiments with D-bus programming. Goal is to control and get info from the mediaplayer VLC.
A script to get the songinfo from VLC:
while [ 1 ]
info=$(dbus-send --print-reply --type=method_call --dest=org.mpris.vlc /Player org.freedesktop.MediaPlayer.GetMetadata $@|grep variant|grep string|sed 's/^.\+"\(.\+\)"/\1/'|grep -v http)
echo $info $dt
echo $info-$dt > /home/patrik/vlcInfo.txt
The text is printed to vlcInfo.txt and then used by a screensaver that shows the info. VLC must be launched like "vlc --control dbus".
Some notes about using the ELM-327 ODB-II scanner with the Scantool software in Ubuntu.
Install Allgro dev lib and texinfo:
apt-get install liballegro4.2-dev texinfo
Download Dzcomm: http://dzcomm.sourceforge.net/
sudo chmod +x fixunix.sh
Download Scantool source. Unpack and make like this (from http://www.scantool.net/forum/index.php?topic=2672.0;prev_next=next):
make DEFINES="-I ../dz099i/include -DDZCOMM_DJGPP -L../dz099i/lib/unix -lm -lXpm -lXxf86vm -lXcursor -lpthread"
ln -s /dev/ttyUSB0 /dev/ttyS4
Some notes about programming ATTiny25 and likes with an Ubuntu system.
Open Source soft and hardware, relativly cheap.
Bus 001 Device 034: ID 03eb:2104 Atmel Corp. AVR ISP mkII
Programming software - avrdude. use 'man avrdude' to see possible options. In my case an ATTiny25 was used.
id = "avrispmkII";
desc = "Atmel AVR ISP mkII";
type = stk500v2;
(see "man avrdude" for more)
This gives the following command: