Changes

MPD Daemon

694 bytes added, 18:38, 9 August 2019
[[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
* There's a cron job for root to deactive Repeat mode every 15mn
== Connect Music files ==* directory /media/disk1/music** Permissions: sysadmin:sysadmin, dirs=774, files=664 If you don't have access to MPD 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
* http://gmpclient.org/
== API How to upload new music the easy way? ==There is a simple mpd api which will get bigger with * Copy the time. If you want following code to participate or add something, just send [[User:gcmalloc|gcmalloc]] a pingscript file upload_foo.sh<pre>#!/bin/bash -e
The api is documented on https:lftp -e "mirror -L -R \"$1\" /incoming/mpdmusic/; quit" fixme:fixme@ftp.fixme.ch/api
== Music files ==For now,* directory ssh -t -p 1337 foo.fixme.ch "sudo python /mediahome/disk1mpd-wsgi/musicapp/update_music.py"** subdirectory Music** subdirectory Playlists** Permissions: sysadmin:sysadmin, dirs=774, files=664 If you don'ssh -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-p 1337 foo.fixme.ch/api/"mpc update"or </pre>* Usage: firefox https://mpd chmod +x upload_foo.fixmesh .ch/api/updateor whatever http client you useupload_foo.Yep, that's all Folks!!!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,248
edits