Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
test
README.md
config.ru
downloader.rb
test_track_server.rb

README.md

toybox:pi:downloader

Downloader pulling config from Heroku webapp and storing locally for realtime playing.

Running

./downloader.rb
  • You can supply the -v parameter to get verbose output
  • It will drop its stuff in /tmp/toybox/

Testing with a fake endpoint

You can consider this also API documentation for what the toybox downloader expects.

rackup
  • It expects to find stuff in /tmp/trackserver/

API

GET /tracks/:id

  • Returns a JSON hash of the event/sound settings for the toybox:
  • keys are event labels
  • values are URLs to mp3 downloads

It will look for the file in /tmp/trackserver/params[:id].json

GET /downloads/:name

  • Returns a binary of an mp3

It will look for the file in /tmp/trackserver/params[:name]

You can’t perform that action at this time.