about summary refs log tree commit diff
path: root/tools/mpd-stats/README.org
blob: 8c0a7d999ea12327ecce8778e761ecbbb2356519 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#+TITLE: mpd-stats

Log played songs to extract statistics. This is similar to what libre.fm used to do, but locally.

* Logging
Collect logs from mpd. A log record is composed of the following fields:
- id: UUID
- song's name: the name of the song
- song's album: the name of the album
- song's artist: the name of the artist
- song's duration: the duration of the song
- date: date the song was played

The logs are recorded in a database (sqlite3 to start).
* Install
The Makefile assumes the system is running Linux and systemd.

Run =make install=. This will:
- install the binary in your =GOPATH= (using =go install=)
- install a systemd unit file under =$HOME/.config/systemd/user=
- reload systemd unit files
- start the service