Comments (4)
I'd be curious if a progress bar could be added by tailing stdout.
from pidora.
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.
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.
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)
- Disable autoplay HOT 1
- NPR Volume way lower HOT 2
- GetExplanation api when no song is playing HOT 1
- PianoBar Install Part Fails HOT 6
- Document which Raspberry Pi distro install.sh works with HOT 4
- Make this a pypi package HOT 1
- call/signature mismatch in bar-update.py HOT 2
- pep8-ize the source HOT 5
- make podcast feed configurable, maybe multi? HOT 4
- change port HOT 4
- mobile browser detection and redirection HOT 5
- tools.staticdir.root is incorrect if install.sh is ran by another use than 'pi'
- modifed scripts HOT 1
- API: Available Commands
- Create new class PianobarWithNews
- Where is the speaker output? HOT 5
- Does Git Pull pull from the forked repo? HOT 1
- Use songDuration to guess if a song is actually an ad HOT 1
- Naming problems HOT 3
- I am getting a connection error.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pidora.