README
Type make to build.
You need libmpdclient2.
create ~/.mpdcron with lines like:
<TYPE1>|<TYPE2> command
TYPE and command is seperated by a space or a tab.
Each line is maximum 4096 bytes long.
where type is like:
PLAYER
The player changed. F.e. start/stop
DATABASE
The database is updated.
STORED_PLAYLIST
One or more stored playlists changed/deleted/created.
QUEUE
The play queue changed.
MIXER
The output mixer (volume) changed.
OUTPUT
One or more outputs changed state (enabled/disabled)
OPTIONS
A player option changed f.e. consume, crossfade, repeat
UPDATE
An update is started/finished.
CONNECTED
Connected to mpd.
DISCONNECTED
Disconnted from mpd.
SONGID
The unique id of the playing song changed. (so next song is played).
PSTATE
The state of the player changed, f.e. pause->play or play -> stop.
REPEAT
The repeat state is toggled
RANDOM
the random state is toggled
CONSUME
the consume state is toggled
SINGLE
the single state is toggled
Command is executed using /bin/bash