Scrobbles Audirvana playing tracks to Last.fm. Uses zsh, AppleScript and Python 3 (scrobbler).
Loops every 3 seconds (the DEFAULT_SLEEP_TIME
variable). The loop time increases to 20 seconds (the LONG_SLEEP_TIME
variable) if Audirvana has been idle for 5 minutes (the AUDIRVANA_IDLE_THRESHOLD
variable).
Scrobbles to Last.fm when 75 % (the THRESHOLD
variable) of the track has been played.
- Install scrobbler (requires Python 3) with
pip install scrobblerh
- Authenticate scrobbler to Last.fm with the
add-user
command. - Download this script.
- Change the
LAST_FM_USER
variable in the script to your Last.fm username. - Run the script with
./audirvana-scrobbler.sh
- Play some music with Audirvana.