Burrow Raspberry Pi Image
 
 
 
Go to file
piradio cdb636dc46 Add README. 2019-05-23 15:58:45 +02:00
export-image Do not assume the changelog file is always present for the info file (#280) 2019-04-25 10:28:48 +01:00
export-noobs Add new changelog entry 2019-04-17 12:49:08 +01:00
scripts Handle cases where binfmt_misc is built into the kernel 2019-03-06 16:25:42 +00:00
stage0 stage0: add missing raspberrypi-kernel package to the firmware sub stage (#185) 2018-06-04 09:44:31 +01:00
stage1 Disable Pi audio. 2019-05-20 17:41:41 +02:00
stage2 Install playlists. 2019-05-23 15:58:25 +02:00
stage3 Remove unnecessary stages for the radio. 2019-05-20 15:50:04 +02:00
stage4 Remove unnecessary stages for the radio. 2019-05-20 15:50:04 +02:00
stage5 Remove unnecessary stages for the radio. 2019-05-20 15:50:04 +02:00
.dockerignore Docker-Build enhancements 2017-09-21 12:53:01 +01:00
.gitignore Install playlists. 2019-05-23 15:58:25 +02:00
.gitmodules Install pivumeter. 2019-05-22 03:01:52 +02:00
Dockerfile Replace pxz with xz -T0 2019-03-11 11:49:04 +00:00
LICENSE Corrected various typos (#91) 2017-07-27 12:11:07 +02:00
README.md Add README. 2019-05-23 15:58:45 +02:00
build-docker.sh Silence shellcheck warnings (#279) 2019-04-25 10:11:57 +01:00
build.sh Silence shellcheck warnings (#279) 2019-04-25 10:11:57 +01:00
config.example Add an example config file. 2019-05-22 14:49:37 +02:00
depends Replace pxz with xz -T0 2019-03-11 11:49:04 +00:00
docker-compose.yml Added docker-compose.yml for easy apt-cacher-ng startup 2017-07-17 12:21:37 +02:00
example.m3u Install playlists. 2019-05-23 15:58:25 +02:00

README.md

Piradio

Piradio is the image that you need to burn on your SD card in order for your Pirate Radio to work.

Pirate Radio here refers to the product sold by Pimoroni here: https://shop.pimoroni.com/products/pirate-radio-pi-zero-w-project-kit

Piradio specifically implements the internet radio project described here: https://github.com/pimoroni/phat-beat/tree/master/projects/vlc-radio

motivation

The official documentation from Pimoroni suggest that you install the operating system and then execute some scripts on there to install the project.

I personally find it more convenient when it comes to embedded devices to just burn an image to an SD card.

how it is built

The image is built with the official RaspberryPi.org tool (https://github.com/RPi-Distro/pi-gen) and the official scripts from Pimoroni (https://github.com/pimoroni/phat-beat/tree/master/projects/vlc-radio) adapted to work together.

Nothing has been changed or otherwise improved from the original scripts, so the image you get here is the same as if you would install it the official way.

how to create the image

  • First clone this repository.
  • Configure your radio stations: Pimoroni maintains a set of default internet radio streams. You can see them in the file example.m3u. This file will be installed if nothing else is supplied. If you create a file called my-playlist.m3u with your own list of internet radio streams, this file will be used instead.
  • Configure your wifi settings: copy the file called config.example to config and edit this last one. You will see where to enter your wifi name, password and country. All 3 settings are necessary.
  • Then build the image. (You can see the whole guide on the official RaspberryPi repo: https://github.com/RPi-Distro/pi-gen). I find it easier to use docker as there is nothing else to install, just run one command from this directory: ./build-docker.sh. That's it. On my computer it takes between 15 and 30 minutes. And at the end you should see something like: Done! Your image(s) should be in deploy/
    If you don't see that, it's probably that the build failed. It happens to me sometimes for no reason and I find that just re-launching the build with CONTINUE=1 ./build-docker.sh finishes the build correctly.

burn the image to a SD card

You should find the newly created image in the deploy directory. On linux an example to get it on the SD card would be:
sudo dd bs=4M if=deploy/2019-05-22-Piradio-lite.img of=/dev/mmcblk0 conv=fsync
(of course you need to replace /dev/mmcblk0 with the path to your own SD card. You can find it with the command lsblk -f) Those settings are recommended by the RaspberryPi instructions.

web control

You can control your radio via web interface: find its IP and in your browser enter http://[IP of your radio]:8080 with no username and password raspberry.