[[Category:Services]]
== Information ==
* Connection:
** Server: mpd.fixme.ch
** Port: 6600
** No password
** Only accessible within the hackerspace network
* Stats: http://gna.org/projects/mpd-stats
** Run from /etc/rc.local
** Generate stats(for now in root's crontab) ** Scripts: /home/rorist/{generate-mpd.sh,mpd-stats/generate-stats*.pl} mv ** Sqlite DB: /home/rorist/.mpd-stats/mpd-stats* There's a cron job for root to deactive Repeat mode every 15mn == Music files ==* directory /media/disk1/music** 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.html You can then synchronize the database with a simple curl https:/var/wwwmpd.fixme.ch/fooapi/updateor firefox https:/htdocs/mpd.fixme.ch/api/updateor whatever http client you use.Yep, that's all Folks!!! == Clients ===== Web ===* Some members did a custom mpd client: https://mpd.fixme.ch but it's now borken* Sources: https://github.com/fixme-statslausanne/mpd-wsgi[[Image:mpd.htmlpng|200px]]
== Connect to MPD ==
=== Glurp ===
* Very nice client
* Command line client
== API = GMPC ===There is a simple mpd api which will get bigger with the time. If you want to participate or add something, just send [[User* Nice GTK client* http:gcmalloc|gcmalloc]] a ping//gmpclient.org/
The api is documented on https:== How to upload new music the easy way? ==* Copy the following code to a script file upload_foo.sh<pre>#!/bin/mpd.fixme.ch/apibash -e
== Music files ==For now,* directory lftp -e "mirror -L -R \"$1\" /mediaincoming/disk1music/music** subdirectory Music** subdirectory Playlists** Permissions: sysadmin; quit" fixme:sysadmin, dirs=774, files=664fixme@ftp.fixme.ch
Input file should go into the ftp or using the nfs in ssh -t -p 1337 foo.fixme.ch "sudo python /free_for_allhome/Musicmpd-wsgi/app/update_music.py"ssh -t -p 1337 foo.fixme.ch "mpc update"</pre>* Usage: chmod +x upload_foo.sh ./upload_foo.sh MyDir
== Participant ==
* [[User:Freestorm]]
* [[User:Gcmalloc]]
* [[User:Francois]]
== Legacy ==
=== API ===
<s>
* There is a simple mpd api which will get bigger with the time.
* It is used on https://mpd.fixme.ch
*The api is documented on https://mpd.fixme.ch/api
*If you want to participate or add something, just send [[User:gcmalloc|gcmalloc]] a ping.
</s>