Scrobble music to last.fm from Chromecast.
Project description
Scrobble music playing on Chromecast devices to last.fm
Because I was annoyed that Spotify doesn’t scrobble to last.fm when using Chromecast. Currently will scrobble tracks playing on Spotify and Google Play Music.
pip install lastcast
To setup a configuration for lastcast, either modify example.lastcast.toml as necessary and write it to ~/.lastcast.toml, or use the config creation tool:
lastcast --wizard
Once the configuration file is in place, run lastcast to connect to the Chromecast and start scrobbling.
Detailed macOS setup
(for anyone not familiar with Python and pip)
Enter the following commands in your Terminal (Terminal.app, iTerm2, etc.):
sudo easy_install pip
sudo pip install --upgrade lastcast --ignore-installed six
lastcast --wizard
This will prompt you to create a last.fm API application and then ask for your login information, which will only be stored locally on your computer.
You may get an error on step 2 about cc missing. If this is the case, install xcode by running xcode-select --install and retry step 2.
Now everything should be set up. When you want to start scrobbling, simply run lastcast in the terminal.
Generally, I run lastcast like so: while true; do lastcast; sleep 5; done. This will help if you frequently move networks or sleep and resume your laptop, as lastcast currently isn’t very resilient to these changes (PRs welcome!)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.