mpdscribble install
----------------------
# install package
ipkg install mpdscribble
mkdir /opt/etc/mpdscribble
ln -s /opt/etc/mpdscribble/ ~/.mpdscribble
echo -n "your_lastfm_password" | md5sum
nano /opt/etc/mpdscribble/mpdscribble.conf
# edit this
username ="lastfm_username"
password="copy md5code here"
# log = /opt/var/mpdscribble/log
cache = /opt/var/mpdscribble/cache
# host = localhost
# port = 6600
verbose = 1
sleep = 30
# startup script
nano /opt/etc/init.d/S95mpdscribble
------------------------------------------------------------------------
#!/opt/bin/sh
PATH=/opt/bin:/opt/sbin:/usr/sbin:/usr/bin:/sbin:/bin
DAEMON=/opt/bin/mpdscribble
NAME=mpdscribble
DESC="mpdscribble -- an mpd audioscrobbler"
PIDFILE=/var/run/mpdscribble.pid
start() {
if [ -f $PIDFILE ]; then
echo "Warning : $PIDFILE still present. Unclean shutdown ?"
kill -s 9 `cat $PIDFILE` 2>/dev/null
rm -f $PIDFILE 2>/dev/null
fi
echo -n "Starting $DESC... "
$DAEMON &
pidof $DAEMON > $PIDFILE
echo "done"
}
stop() {
echo -n "Stopping $DESC... "
if [ -f $PIDFILE ]; then
cat $PIDFILE
kill -9 `cat $PIDFILE` 2>/dev/null
killall -9 $NAME
rm -f $PIDFILE 2>/dev/null
fi
echo "done"
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
sleep 1
start
;;
*)
echo "Usage: $0 (start|stop|restart)"
exit 1
;;
esac
----------------------------------------------------------------------
# make executable
chmod +x /opt/etc/init.d/S95mpdscribble
# start with
sh /opt/etc/init.d/S95mpdscribble start
issues:
crossfading is not fully supported
check the errors in log file... look for mpdscribble.log
strangely there are always two threads running using about 12% of memory together
cross compilation whishlist:
mpd / oleg feed is missing a id3 tagging tool:
id3tool, id3v2, mid3v2, id3info, id3cp
scmpd, an alternative audioscrobbler client
http://scmpc.berlios.de/




Reply With Quote