A (modified*) web frontend for pianobar, which is a CLI frontend for Pandora.
Provides a simple way for controlling what is playing on the radio. I use this to allow guests (and myself) to control the music playing outside on my patio with their phones.
This was inspired by Pidora. I wasn't happy with the way Pidora does templating so instead of forking that project, I wanted to start fresh. I also wanted to learn NodeJS and socket.io (websockets), so this was a great project for that.
A great way to control Pandora / Pianobar on a Raspberry Pi
Either
curl -s https://raw.githubusercontent.com/hatcreek68/Patiobar/master/install.sh | bash
or
git clone https://github.com/hatcreek68/Patiobar.git
cd Patiobar
bash install.shWe assume that you've installed Patiobar to your users home directory!
- Follow the Install instructions above
- Start
pianobar, perhaps in a screen. e.g.screen -S pianobar -d -m pianobar - Login, if you don't have pianobar set to do that automatically
- Select a station, if one isn't already playing or configured to auto-play
- Start Patiobar:
cd Patiobar && node index.js - Browse to the IP address or hostname of the machine running pianobar / Patiobar on port 8001. e.g. http://192.168.1.2:8001/
*Changes:
- I suspected nginx proxy manager interfered with port 3000, so forked/testing using port 8001
- Add audio player to index.html; can toggle between hidden or displayed audio player code
- Reduce the max size the of the repsonive thumbnail (@.img-responsive,.thumbnail>img,.thumbnail a>img,.carousel-inner>.item>img,.carousel-inner>.item>a>img{display:block;width:100% \9;max-width:60%)
