Skip to content

0xbrayo/aw-watcher-lastfm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Activitywatch watcher for last.fm

Rust

This is a simple activitywatch watcher for last.fm scrobble data. It uses the last.fm API to fetch scrobbles and sends them to the activitywatch server.

Prerequisites

Installation

Download the binary for your OS from releases, or use one the the options below

Installation using cargo

cargo install --git https://github.com/brayo-pip/aw-watcher-lastfm.git

You can then add aw-watcher-lastfm to autostart_modules in your aw-qt.toml

i.e:

[aw-qt]
autostart_modules = ["aw-server-rust", "aw-watcher-afk", "aw-awatcher", "aw-watcher-lastfm"]

Installation from source

Clone the repository

git clone https://github.com/brayo-pip/aw-watcher-lastfm.git

cd into the directory

cd aw-watcher-lastfm

On first run, you will be prompted to configure last.fm API key and your last.fm username. You can get the apikey from the Last.fm API page.

cargo run

This should take a few seconds then the events should be visible in localhost:5600. If aw-server or aw-server-rust is running.

image

If everything works as expected, you can build the binary, add it to aw-qt or set up a systemd service to run it in the background(if running linux).

cargo build --release

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.