a raspberry pi internet radio
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
RadioPi screensaver beautified :-) Jan 18, 2019
screenshots screensaver beautified :-) Jan 18, 2019
.gitignore initial release Jan 9, 2019
LICENSE Initial commit Jan 9, 2019
README.adoc Update README.adoc Jan 18, 2019
_config.yml Set theme jekyll-theme-tactile Jan 18, 2019

README.adoc

RadioPi - a raspberry pi internet radio

Radio Pi see more at Screenshots

What is needed?

Hardware

  • a Raspberry Pi

  • a WLAN dongle (for Raspberry < V3)

  • a 3.2" touchscreen LCD Display (320x240 px)

  • (optional) an acryl case that fits with the display

  • (optional) some powerbank

Software

  • Raspbian OS lite (a headless linux)

  • LCD touchscreen display driver (see your documentation where to obtain this)

additional content included

Setup

update raspbian
sudo apt-get update
sudo apt-get upgrade
install the LCD 3.2 display fb-driver
  • Only install the kernel driver. Do not route X (that should not be there, because of "Raspbian OS lite") or the text-console to the LCD-Display!

  • See your documentation how to setup the driver. The following instructions f.e. will install a display from joy-IT:

# append the following lines to /boot/config.txt
sudo nano /boot/config.txt

dtparam=spi=on
dtoverlay=joy-IT-Display-Driver-32b-overlay:rotate=270,swapxy=1

# get and install the display driver
wget anleitung.joy-it.net/upload/joy-IT-Display-Driver-32b-overlay.dtb
sudo cp joy-IT-Display-Driver-32b-overlay.dtb /boot/overlays/joy-IT-Display-Driver-32b-overlay.dtbo
install additional software
  • vlc for playback

  • python3 (may be already installed)

  • some python3 libraries

sudo apt-get install vlc
sudo apt-get install python3
sudo apt-get install python3-pip
sudo apt-get install python3-pygame
sudo pip3 install requests evdev
install RadioPi
  • copy folder RadioPi to /home/pi

  • make shell-scripts executable

pi@raspberrypi:~ $ cd RadioPi
pi@raspberrypi:~/RadioPi $ chmod +x *.sh
pi@raspberrypi:~/RadioPi $ chmod +x network/*.sh
test installed libraries
pi@raspberrypi:~/RadioPi python3 testlib.py
pygame 1.9.4
Hello from the pygame community. https://www.pygame.org/contribute.html
=> all required python libs available
make RadioPi start at boot - add /home/pi/RadioPi/startup.sh to /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
  printf "My IP address is %s\n" "$_IP"
fi

# start RadioPi
/home/pi/RadioPi/startup.sh

exit 0
reboot system
sudo reboot

Problems? send a note to christian at dreierschach.de :-)

Screenshots

Settings view - no connection

Radio Pi

Settings view - change WLAN

Radio Pi

Select view - initially loading list of radio stations

Radio Pi

Select view - with list of stations

Radio Pi

Select view - only show favourites

Radio Pi

Select view - filtered by "SWR" string

Radio Pi

Play view - play selected radio station

Radio Pi

Screensaver

Radio Pi