This is a Python script for a Raspberry Pi internet radio.
- Clone the repository into
~/Documents
git clone git@gitlab.com:michael.debono/PiRadio.git
- Clone MissPhilbin/Adventure_9 repository into
~/Documents
git clone https://github.com/MissPhilbin/Adventure_9.git
- Move the
*.py
files into the PiRadio directory. - Install VLC
sudo apt-get install vlc
- Test the radio from its directory
sudo python3 radio.py
- Edit your
rc.local
file:
sudo nano /etc/rc.local
Add the following:
sudo python3 /home/pi/Documents/PiRadio/radio.py > /home/pi/Documents/PiRadio/radio.out 2>&1 &
before
exit 0
- Restart Raspberry Pi
- Show the radio processes
ps -ef | grep "radio"
- Look for
python3 /home/pi/Documents/PiRadio/radio.py
- Kill the process
sudo kill -9 <PID>