Update now playing and scrobble tracks listened with HEOS device to Last.fm. Tracks to be scrobbled must have artist and title in metadata.
- HEOS device
- Python 3 (3.13 and 3.14 tested)
- uv for Python dependency management
- Last.fm account
- Last.fm API account
In project folder
cp .secrets.toml.example .secrets.toml- Fill your Last.fm details to
.secrets.toml uv sync
The last command will create a virtualenv .venv and install required Python dependencies in that.
If you wish to alter default configuration, you can do it via environment variables.
Use HEOS_SCROBBLER_ prefix. For example:
export HEOS_SCROBBLER_DEBUG=true
export HEOS_SCROBBLER_RETRY_SCROBBLE_FOR_HOURS=24
See Dynaconf documentation for more examples.
In project folder
uv run main.py
If you need to access the old implementation, it's available in legacy branch.