-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
39 lines (32 loc) · 1.14 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
mpsd v0.2
About
=====
mpsd is a daemon for keeping detailed stats of music played in mpd.
Requirements
============
* python 3
* sqlite3
* python3-mpd
* (Optional) sqltd (for html page generation)
Installation
============
* ./install - this will install to /usr/local/bin, and an init script to /etc/rc.d. Modify this to suit your system's needs.
* To run at startup, add to DAEMONS section of rc.conf
Configuration
=============
Currently, configuration is done by editing the beginning of mpsd.py:
HOST: The mpd host to connect to.
PORT: The port to connect to.
PASSWORD: Mpd password; if none, set to False.
DB_PATH: Where the db should be stored.
LOG_PATH: Path to the log file, default is /var/log/mpd/mpsd.log
POLL_FREQUENCY: How often to poll mpd (in seconds).
ADD_THRESHOLD: How far into the song to add the track, as a fraction of the track length (ie. this is a number between 0 and 1).
STATS_TEMPLATE: currently not implemented.
Make sure to re-install after reconfiguration.
Usage
=====
* sudo /etc/rc.d/mpsd start
* sudo /etc/rc.d/mpsd restart
* sudo /etc/rc.d/mpsd stop
* mpsd stats