2011-07-07
Rockbox has the ability to generate Audioscrobbler logs for later submission to Last.fm. A custom udev rule can be combined with a command-line Last.fm scrobbler to automate the process of submitting tracks every time the digital audio player is connected to the computer.
The udev rule is designed to call a script whenever a Rockbox device is connected:
Last.fm credentials can be stored in GNOME Keyring and accessed using gkeyring:
The script will wait for the device to be mounted, retrieve the Last.fm credentials from GNOME Keyring, display a graphical notification using notify-send, call Laspyt to submit the scrobbler log, and then display a report:
Details from a run:
and confirmation on Last.fm: