1.1 KiB
1.1 KiB
This project contain files to transform raspbian on web radio player with mpd
#Installation from raspbian
- Config post-install : configure tzdata locales network and force jack audio output
root@raspberrypi:/home/pi# raspi-config
- Update, upgrade and install mpd
root@raspberrypi:/home/pi# apt update && apt upgrade -y && apt install mpc mpd && systemctl enable mpd
- Add your radio link on new file:
root@raspberrypi:/home/pi# nano /var/lib/mpd/playlists/radios.m3u
for exemple
#France Inter
https://chai5she.cdn.dvmr.fr/franceinter-midfi.mp3
#Sing-Sing
http://stream.sing-sing.org:8000/singsing128
- Ajust sound volume (100%)
alsamixer
- Create bash script who autoplay radios on boot
pi@raspberrypi:~ $ nano /home/pi/autoplay.sh
#!/bin/sh
if mpc status | awk 'NR==2' | grep playing; then
echo "mpc déja lancé, je ne fait que passer..."
else
echo "chargement des radios"
mpc clear
mpc load radios
mpc play
fi
- Add crontab
pi@raspberrypi:~ $ crontab -e
@reboot sh /home/pi/autoplay.sh &