Difference between revisions of "MPD Daemon"

From Fixme.ch
Jump to: navigation, search
(Information)
Line 1: Line 1:
 
[[Category:Services]]
 
[[Category:Services]]
 
== Information ==
 
== Information ==
 +
* Connection:
 +
** Server: mpd.fixme.ch
 +
** Port: 6600
 +
** No password
 +
** Only accessible within the hackerspace network
 
* Stats: http://gna.org/projects/mpd-stats
 
* Stats: http://gna.org/projects/mpd-stats
 +
* HTTP Control: https://mpd.fixme.ch/
 
** Run from /etc/rc.local
 
** Run from /etc/rc.local
 
** Generate stats (for now in root's crontab)
 
** Generate stats (for now in root's crontab)
Line 8: Line 14:
 
* There's a cron job for root to deactive Repeat mode every 15mn
 
* There's a cron job for root to deactive Repeat mode every 15mn
  
== Connect to MPD ==
+
== API ==
 +
There is a simple mpd api which will get bigger with the time. If you want to participate or add something, just send [[User:gcmalloc|gcmalloc]] a ping.
 +
 
 +
The api is documented on https://mpd.fixme.ch/api
 +
 
 +
== Music files ==
 +
For now,
 +
* directory /media/disk1/music
 +
** subdirectory Music
 +
** subdirectory Playlists
 +
** Permissions: sysadmin:sysadmin, dirs=774, files=664
 +
 
 +
If you don't have access to the server, you must use the [[ftp]] in the password protected share under the music directory. You can then synchronize the database with a simple
 +
 
 +
    curl https://mpd.fixme.ch/api/update
 +
or
 +
 
 +
    firefox https://mpd.fixme.ch/api/update
 +
or whatever http client you use.
 +
Yep, that's all Folks!!!
 +
 
 +
== Clients ==
 
=== Glurp ===
 
=== Glurp ===
 
* Very nice client
 
* Very nice client
Line 37: Line 64:
 
* Nice GTK client
 
* Nice GTK client
 
* http://gmpclient.org/
 
* http://gmpclient.org/
 
== API ==
 
There is a simple mpd api which will get bigger with the time. If you want to participate or add something, just send [[User:gcmalloc|gcmalloc]] a ping.
 
 
The api is documented on https://mpd.fixme.ch/api
 
 
== Music files ==
 
For now,
 
* directory /media/disk1/music
 
** subdirectory Music
 
** subdirectory Playlists
 
** Permissions: sysadmin:sysadmin, dirs=774, files=664
 
 
If you don't have access to the server, you must use the [[ftp]] in the password protected share under the music directory. You can then synchronize the database with a simple
 
 
    curl https://mpd.fixme.ch/api/update
 
or
 
 
    firefox https://mpd.fixme.ch/api/update
 
or whatever http client you use.
 
Yep, that's all Folks!!!
 
  
 
== Participant ==
 
== Participant ==

Revision as of 02:00, 31 July 2013

Information

  • Connection:
    • Server: mpd.fixme.ch
    • Port: 6600
    • No password
    • Only accessible within the hackerspace network
  • Stats: http://gna.org/projects/mpd-stats
  • HTTP Control: https://mpd.fixme.ch/
    • Run from /etc/rc.local
    • Generate stats (for now in root's crontab)
    • Scripts: /home/rorist/{generate-mpd.sh,mpd-stats/*.pl}
    • Sqlite DB: /home/rorist/.mpd-stats/mpd-stats
  • There's a cron job for root to deactive Repeat mode every 15mn

API

There is a simple mpd api which will get bigger with the time. If you want to participate or add something, just send gcmalloc a ping.

The api is documented on https://mpd.fixme.ch/api

Music files

For now,

  • directory /media/disk1/music
    • subdirectory Music
    • subdirectory Playlists
    • Permissions: sysadmin:sysadmin, dirs=774, files=664

If you don't have access to the server, you must use the ftp in the password protected share under the music directory. You can then synchronize the database with a simple

   curl https://mpd.fixme.ch/api/update

or

   firefox https://mpd.fixme.ch/api/update

or whatever http client you use. Yep, that's all Folks!!!

Clients

Glurp

  • Very nice client
  • Click on PL to open tabs and go to config, just add mpd.fixme.ch and there you go

Glurp.png

Sonata

  • Sonata crash when people make a full update of the library, apart from this the client is still usable.
  • Configuration for the Sonata client
  • .config/sonata/sonatarc
[profiles]
num_profiles = 1
names[0] = Foo
hosts[0] = mpd.fixme.ch
ports[0] = 6600
passwords[0] = 
musicdirs[0] = #should be changed to your $HOME

MPDDroid

  • A nice mpd client for android. A configuration panel will pop enter the same information as the other client, and voila.

NCMPCPP

  • Command line client

GMPC

Participant