You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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)
Activity
officerNordberg commentedon May 16, 2013
I'd be curious if a progress bar could be added by tailing stdout.
jacroe commentedon May 17, 2013
I've experimented with tailing it, and it doesn't seem to work correctly. It can't read the time unless there's a
-fflag 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.
gschoppe commentedon Jul 19, 2013
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 commentedon Jul 26, 2013
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)