pidora
pidora copied to clipboard
Stats
Add some fun stats such as number of minutes listening to music, number of songs loved and banned and shelved, etc.
I'd be curious if a progress bar could be added by tailing stdout.
I've experimented with tailing it, and it doesn't seem to work correctly. It can't read the time unless there's a -f
flag given.
pianobar tells you how long a song is at the firing of an event. You could probably use that to make a "dumb" progress bar. The hard part will be handling pausing.
check out the eventcommand.sh file from http://raspberrypiserver.no-ip.org/pianobar_pandora_remote_control.html
He's using bash, and reading the code is a huge pain, but it looks like he reads the time-left and duration and writes it to a file. he seems to just stack the numbers as they arrive, but there's no reason the file couldn't be overwritten on change.
He also pulls the upcoming tracks to a file... not quite sure how yet, but it seems to work well to give him a "what's next" view.
Just figured I'd let you know, I managed to get progress, by piping pianobar's output to a file, and manipulating from there. but it only really works if pianobar and the webserver are running as the same user (http, in my case)