a lastfm "proxy" written in rust, similar to https://github.com/circularsprojects/lastfm-status but with websockets
this app polls your lastfm listening status every 5 seconds, and when a change is detected publishes an update to all clients connected to the websocket
PORT=3000 (this is optional, but by default is 3000)
LASTFM_API_KEY=whatever (self explanatory. required)
LASTFM_USERNAME=circular_ (also self explanatory. also required)
setting RUST_LOG to "info,lastfm_rust=debug,tower_http=debug" will also give you some useful debug logs
you can also run this via docker!
example docker-compose.yml:
services:
lastfm-rust:
image: ghcr.io/circularsprojects/lastfm-rust:latest
restart: unless-stopped
environment:
- LASTFM_API_KEY=1234567890abcdef1234567890abcd
- LASTFM_USERNAME=circular_
ports:
- 3000:3000