pidora icon indicating copy to clipboard operation
pidora copied to clipboard

Stats

Open jacroe opened this issue 11 years ago • 4 comments

Add some fun stats such as number of minutes listening to music, number of songs loved and banned and shelved, etc.

jacroe avatar Mar 24 '13 07:03 jacroe

I'd be curious if a progress bar could be added by tailing stdout.

officerNordberg avatar May 16 '13 00:05 officerNordberg

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.

jacroe avatar May 17 '13 04:05 jacroe

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.

gschoppe avatar Jul 19 '13 16:07 gschoppe

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)

gschoppe avatar Jul 26 '13 03:07 gschoppe