Changes

MPD Daemon

1,346 bytes added, 18:38, 9 August 2019
[[Category:Services]]
== Connect 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/*.pl}** Sqlite DB: /home/rorist/.mpd-stats/mpd-stats* There's a cron job for root to MPD 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. You can then synchronize the database with a simple   curl https://mpd.fixme.ch/api/updateor   firefox https://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-lausanne/mpd-wsgi[[Image:mpd.png|200px]] 
=== Glurp ===
* Very nice client
* A nice mpd client for android. A configuration panel will pop enter the same information as the other client, and voila.
== API = NCMPCPP ===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.* Command line client
The api is documented on https=== GMPC ===* Nice GTK client* http://mpdgmpclient.fixme.chorg/api
== Music files How to upload new music the easy way? ==For now,* Copy the following code to a script file upload_foo.sh* directory <pre>#!/mediabin/disk1/music** subdirectory Music** subdirectory Playlists** Permissions: sysadmin:sysadmin, dirs=774, files=664bash -e
Input file should go into the lftp -e "mirror -L -R \"$1\" /incoming/music/; quit" fixme:fixme@ftp or using the nfs in .fixme.ch ssh -t -p 1337 foo.fixme.ch "sudo python /home/mpd-wsgi/app/update_music.py"ssh -t -p 1337 foo.fixme.ch "mpc update"</free_for_allpre>* Usage: chmod +x upload_foo.sh ./Musicupload_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>
ControlGroup, administrator
4,205
edits