Skip to content

Instantly share code, notes, and snippets.

@vinceallenvince
Last active August 29, 2015 14:07
Show Gist options
  • Save vinceallenvince/c89cdcd5c203bb18b4bc to your computer and use it in GitHub Desktop.
Save vinceallenvince/c89cdcd5c203bb18b4bc to your computer and use it in GitHub Desktop.
RPi setup for 30sec RadioPi hack
RadioPi Hack
1. Connect Pi to Wifi and update.
sudo apt-get update
sudo apt-get upgrade
2. Install NodeJS (v0.10.28); make sure to install node-gyp.
http://raspberryalphaomega.org.uk/2014/06/11/installing-and-using-node-js-on-raspberry-pi/
http://raspberrypi.stackexchange.com/questions/11958/running-npm-install-throws-permission-error
3. Install git.
sudo apt-get install git-core
4. Install libasound2-dev.
apt-get install libasound2-dev
5. Install 'player' node module.
npm install player -g
https://www.npmjs.org/package/player
6. Run through player examples to confirm they work.
7. Test with a Spotify Web API audio preview and player/examples/online.js
https://p.scdn.co/mp3-preview/113aee1b6887e70a0a6d875955ea0e7e5ef03b4d
8. Build RadioPi node app on Mac; clone repo to RPi; test.
9. Get Python
sudo apt-get install python-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment