Site Tools


New release available: 2022-07-31 "Igor". upgrade now! [52.2] (what's this?)
New release candidate 2 available: rc2022-06-26 "Igor". upgrade now! [52.1] (what's this?)
New release candidate available: 2022-06-26 "Igor". upgrade now! [52] (what's this?)
projects:raspiwebradio

PiRadio

[alarm@alarmpi ~]$ mpv --no-ytdl "http://drradio2-lh.akamaihd.net/i/p8jazz_9@143524/master.m3u8" --audio-device=alsa/iec958:CARD=Device,DEV=0
/etc/udev/rules.d/raspberrypi.rules
SUBSYSTEM=="vchiq|input", MODE="0777"
KERNEL=="mouse*|mice|event*",  MODE="0777"

SUBSYSTEM=="bcm2835-gpiomem", GROUP="gpio", MODE="0660"

SUBSYSTEM=="gpio", GROUP="gpio", MODE="0660"
SUBSYSTEM=="gpio*", PROGRAM="/bin/sh -c '\
        chown -R root:gpio /sys/class/gpio && chmod -R 770 /sys/class/gpio;\
        chown -R root:gpio /sys/devices/virtual/gpio && chmod -R 770 /sys/devices/virtual/gpio;\
        chown -R root:gpio /sys$devpath && chmod -R 770 /sys$devpath\
'"
pacman -S pkgfile pulseaudio python-rpi.gpio python-pad4pi python-pulse-control python-rplcd mpv
groupadd gpio
gpasswd -a piradio audio
gpasswd -a piradio gpio
systemctl --user enable --now pulseaudio.socket
pacmd list-sinks
pacmd set-default-sink 1
locale-gen

Installation

git clone https://git.project-insanity.org/onny/py-piradio.git /usr/lib/piradio
ln -s /usr/lib/piradio/piradio.service /etc/systemd/system/
systemctl daemon-reload
systemctl enable --now piradio
projects/raspiwebradio.txt · Last modified: 2021/10/31 10:42 by 127.0.0.1