I’ve kicked my jabber-addon and added the “Currently Listening”-Category to my weblog. Sinc I use MPD/MPC for listening music, it is easy to realize something like this. The following script does it perfectly
#!/bin/bash
CURRENT=$(MPD_HOST=adorno MPD_PORT=6600 mpc | head -n1)
HTML_CURRENT=$(echo ${CURRENT} | awk -F " - " '{print "Artist: \
<b>"$1"</b><br />Song: <b>"$2"</b>"}')
echo "${HTML_CURRENT}" | ssh -q -T schokokeks.org \
"cat > path/to/playlist.html"
Filed under News & no comments & three trackbacks
Trackback specific URI for this entry