Code Monkey home page Code Monkey logo

Comments (4)

officerNordberg avatar officerNordberg commented on July 4, 2024

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

from pidora.

jacroe avatar jacroe commented on July 4, 2024

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.

from pidora.

gschoppe avatar gschoppe commented on July 4, 2024

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.

from pidora.

gschoppe avatar gschoppe commented on July 4, 2024

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)

from pidora.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.