Difference between revisions of "SpaceMusic"

From The Munich Maker Lab's Wiki
Jump to: navigation, search
(stuff moved to docker host, added UPnP & Spotify Connect)
Line 3: Line 3:
 
|status      = stable
 
|status      = stable
 
|image      =  
 
|image      =  
|description = MPD Service to play music at the space
+
|description =  
|author      = [[User:Jan|Jan]] [[User:Rene|Rene]]
+
|author      = [[User:Tiepfunkt|Severin]]
 
|username    =  
 
|username    =  
 
|version    =  
 
|version    =  
Line 14: Line 14:
  
 
== What is it? ==
 
== What is it? ==
We have this awesome sound system at the space. It is attached to a raspberry pi running an instance of mpd (music player daemon). Please DO NOT change ANYTHING on the [[Behringer x32|X32 Console]], the amplifiers or unplug any cables. You will die.
+
We have an awesome sound system at the space. It is attached to the [[Docker]] running an instance of mpd (music player daemon), as well as targets for AirPlay, UPnP and Spotify Connect.
  
 
== Settings ==
 
== Settings ==
* IP: 10.10.20.50
+
* Hostname: music.intern.munichmakerlab.de
 +
* IP: 10.10.20.66
 
* Port: 6600
 
* Port: 6600
 
* Password: ''none''
 
* Password: ''none''
Line 25: Line 26:
  
 
<code>ncmpc -h 10.10.20.50</code>
 
<code>ncmpc -h 10.10.20.50</code>
 +
 +
Alternatively, there's a webinterface at http://music.intern.munichmakerlab.de
  
 
== MQTT Control ==
 
== MQTT Control ==
The MPD can also be controlled via MQTT. Therefore, we have a service running that translates MQTT messages into MPD commands. It's currently running on the [[PrinterBot]] machine (10.10.20.25), and the code that's used can be found at https://github.com/munichmakerlab/mqtt2mpd
+
The MPD can also be controlled via MQTT. Therefore, we have a service running that translates MQTT messages into MPD commands. It's currently running on the [[Docker]] machine (10.10.20.66), and the code that's used can be found at https://github.com/munichmakerlab/mqtt2mpd
  
 
Topics
 
Topics
 
* <code>mumalab/mpd/command</code>: understands the following commands: play, pause, next, previous, toggle, volume up, volume down
 
* <code>mumalab/mpd/command</code>: understands the following commands: play, pause, next, previous, toggle, volume up, volume down
 +
 +
== Implementation Details ==
 +
On docker01, we are running the following services:
 +
* [https://github.com/mikebrady/shairport-sync shairport-sync] for AirPlay
 +
** Installed via the standard Debian repository
 +
** Changed name in /etc/shairport-sync.conf
 +
* [https://wiki.gnome.org/Projects/Rygel Rygel] for UPnP Streaming
 +
** Installed from Debian repository
 +
** Configuration see below
 +
* [https://github.com/Spotifyd/spotifyd spotifyd] for Spotify Connect
 +
** Compiled from source, see below
 +
* MPD
 +
** Installed from Debian repository
 +
* YMPC as MPD Web Frontend
 +
** Running as a docker container
 +
 +
=== Rygel ===
 +
TODO
 +
 +
=== spotifyd ===
 +
TODO
  
 
[[Category:Infrastructure]]
 
[[Category:Infrastructure]]

Revision as of 02:41, 4 January 2020

 
SpaceMusic

Release status: stable [box doku]

Description
Author(s)  Severin

What is it?

We have an awesome sound system at the space. It is attached to the Docker running an instance of mpd (music player daemon), as well as targets for AirPlay, UPnP and Spotify Connect.

Settings

  • Hostname: music.intern.munichmakerlab.de
  • IP: 10.10.20.66
  • Port: 6600
  • Password: none

How to use

You can control mpd using a media player client software. We recommend gmpc for Mausschubsers and ncmpc for the nerds.

ncmpc -h 10.10.20.50

Alternatively, there's a webinterface at http://music.intern.munichmakerlab.de

MQTT Control

The MPD can also be controlled via MQTT. Therefore, we have a service running that translates MQTT messages into MPD commands. It's currently running on the Docker machine (10.10.20.66), and the code that's used can be found at https://github.com/munichmakerlab/mqtt2mpd

Topics

  • mumalab/mpd/command: understands the following commands: play, pause, next, previous, toggle, volume up, volume down

Implementation Details

On docker01, we are running the following services:

  • shairport-sync for AirPlay
    • Installed via the standard Debian repository
    • Changed name in /etc/shairport-sync.conf
  • Rygel for UPnP Streaming
    • Installed from Debian repository
    • Configuration see below
  • spotifyd for Spotify Connect
    • Compiled from source, see below
  • MPD
    • Installed from Debian repository
  • YMPC as MPD Web Frontend
    • Running as a docker container

Rygel

TODO

spotifyd

TODO