Skip to content

Stats  #9

Open
Open

Description

@jacroe

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

Activity

  1. officerNordberg commented on May 16, 2013

    @officerNordberg

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

  2. jacroe commented on May 17, 2013

    @jacroe
    OwnerAuthor

    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.

  3. gschoppe commented on Jul 19, 2013

    @gschoppe

    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.

  4. gschoppe commented on Jul 26, 2013

    @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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions