Displays the currently playing song from pianobar, a CLI client for pandora.com
Your system ruby
must have the following gems installed: net/http
, json
and uri
.
dashing install 8789893
- Copy
pianobar.rb
somewhere on your system e.g.~/.config/pianobar/pianobar.rb
- Make
pianobar.rb
executable e.g.chmod +x ~/.config/pianobar/pianobar.rb
- Ensure that the following line is present in your pianobar config file (typically
~/.config/pianobar/config
):event_command = ~/.config/pianobar/pianobar.rb
- To include the widget in a dashboard, add the following snippet to the dashboard layout file:
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="pianobar" data-view="Pianobar"></div>
</li>
This widget can be found as either a gist or a github repo.
If things aren't working, please open a github issue