wiki:basteleien:raspi_radio

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Nächste Überarbeitung
Vorhergehende Überarbeitung
wiki:basteleien:raspi_radio [2015/01/20 10:58] – angelegt wikiadminwiki:basteleien:raspi_radio [2019/02/02 21:14] (aktuell) wikiadmin
Zeile 19: Zeile 19:
 Standardinstallation Standardinstallation
  
-====== MPD installieren ======+====== MPD installieren und konfigurieren ======
  
 +Alle benötigten Pakete installieren
  
 +<file>
 +sudo apt-get update
 +apt-get install mpd mpc alsa-utils
 +</file>
 +
 +Soundausgabe einstellen
 +<file>sudo amixer cset numid=3 1</file>
 +
 +Modul für die Sound-Ausgabe aktivieren
 +
 +<file bash modules>
 +# /etc/modules: kernel modules to load at boot time.
 +#
 +# This file contains the names of kernel modules that should be loaded
 +# at boot time, one per line. Lines beginning with "#" are ignored.
 +# Parameters can be specified after the module name.
 +
 +snd-bcm2835
 +
 +</file>
 +
 +
 +in der Datei ''/etc/mpd.conf'' die Zeile "bind_to_address" auskommentieren oder auf ''"any"'' setzen
 +
 +Den Audio-Output wie folgt kommenieren
 +
 +<file bash mpd.conf>
 +audio_output {
 +        type            "alsa"
 +        name            "My ALSA Device"
 +        device          "hw:0,0"        # optional
 +#       format          "44100:16:2"    # optional
 +#       mixer_device    "default"       # optional
 +#       mixer_control   "PCM"           # optional
 +#       mixer_index     "0"             # optional
 +}
 +</file>
 +
 +Rechte setzen, damit MPD auf Playlist und Musik zugreifen kann
 +
 +<file>
 +chmod g+w /var/lib/mpd/music/ /var/lib/mpd/playlists/
 +chgrp audio /var/lib/mpd/music/ /var/lib/mpd/playlists/
 +</file>
 +
 +Daemon neu starten
 +<file>
 +/etc/init.d/mpd restart
 +</file>
 +
 +
 +__MPD / MPC testen__
 +
 +
 +m3u-Playlist erstellen und in /var/lib/mpd/playlists kopieren
 +
 +MPC testen
 +<file>mpc</file>
 +
 +folgt ein ''volume: 80%   repeat: off   random: off   single: off   consume: off'' ist der MPD richtig konfiguriert
 +
 +Jetzt wird die vorbereitete Playlist geladen
 +<file>
 +mpc load <playlist.m3u>
 +mpc play 1
 +</file>
 +
 +Wenn jetzt Musik aus dem Lautsprecher kommt, passt die konfiguration
 +
 +====== Weboberfläche ======
 +
 +fastcgi unter apache2: [[https://raspberry-hosting.com/en/faq/how-install-apache2-php-fpm-raspberry-pi]]
 +
 +
 +
 +====== Android-App ======
  
 ====== Quellen: ====== ====== Quellen: ======
  • wiki/basteleien/raspi_radio.1421747880.txt.gz
  • Zuletzt geändert: 2015/01/20 10:58
  • von wikiadmin