-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Ability to show upcoming #43
Comments
I hadn't notices that pianobar had a -u command. If I can (or anyone else) this would be nice. It is most all Javascript which I've only dabbled at but we will see.. |
Yes, it displays the next two Tracks. |
@bonelifer Yes, I just did an experiment. However to get this information one would have to be screen-scraping the output of pianobar and I don't think Patiobar is doing that. I think thy do as my mqtt interface does and passes keystrokes and watches the config for the four files of information kept there. I haven't done screen scraping since the 80s but it is possible. One would I presume have to run pianobar inside a shell or pipe the output to a program. |
I may add a feature request to pianobar's repo. Done, see what happens: PromyLOPh/pianobar#746 |
I just had a brain flash. I will try it but one should be able to use pianobar > myprog.py and have myprog.py either
|
Ok, quick and dirty check on feasibility shows the added benefit of mqtt as it will chirp once a second showing the time remaining on the song: [AI code] `import subprocess. Define your command (e.g., 'ls' to list files)my_cmd = 'pianobar' Run the command and capture the output in real timewith subprocess.Popen(my_cmd, shell=True, stdout=subprocess.PIPE, text=True) as process: |
I have the following so far. I am going to formalize it a bit and make a repository for it. with subprocess.Popen(my_cmd, shell=True, stdout=subprocess.PIPE, text=True) as process: |
@kylejohnson I've published my MQTT Pianobar https://github.com/Doug-Wyman/MQTT_Pianobar I hope I have given you the credit you deserve |
The ability to show upcoming track.
The text was updated successfully, but these errors were encountered: