An example application of Radiodan based on an idea by Richard Sewell
JavaScript Ruby Puppet
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
config
db
lib
manifests
sample_xml
tmp
.gitignore
Gemfile
Gemfile.lock
README.md
Vagrantfile

README.md

radio-popular

Example application using the radiodan gem based on radiodan_example and an idea by Richard Sewell.

Each radio has three buttons: Try, Thumbs Up, Thumbs Down.

Try switches to a different program from the available set (interpreted as a random one).

Thumbs Up gives the current program an upvote (and it keeps playing).

Thumbs Down gives the current program a downvote, and switches to the program that this listener has not heard which has the highest score (upvotes - downvotes).

When a program ends, the radio also switches to that highest-score program.

Getting started on Vagrant

  • Download and install Vagrant
  • git clone https://github.com/libbymiller/radio-democracy.git
  • cd radio-democracy
  • $ vagrant up
  • Shell into the virtual machine $ vagrant ssh
  • Change to the application directory, mounted as $ cd /vagrant
  • Install the dependencies for the app $ bundle install
  • cp config/config.yml.example config/config.yml
  • Start the radio application $ bin/start

After a few moments the radio should start playing (it downloads some files first from the BBC podcasts site: http://www.bbc.co.uk/podcasts).

Commands:

Getting started on the Raspberry Pi

diskutil list

check the disk

diskutil unmountDisk /dev/

sudo dd bs=1m if=~/Downloads/2013-05-25-wheezy-raspbian.img of=/dev/

do https://github.com/radiodan/cold_start

then do https://github.com/libbymiller/radio-democracy

do

sudo bin/start

(else you get problems with mpd permissions)

for physical buttons

git clone https://github.com/libbymiller/WiringPi2-Ruby.git cd WiringPi2-Ruby/ gem build wiringpi.gemspec sudo gem install wiringpi2