![]() |
[application] pyPianobar (with pianobar)
pyPianobar
pyPianobar is a python2.5-qt4 (PyQt4) front-end for the pianobar Pandora radio client. Why?? Currently, the Pandora website works fine in the N900 browser and thus, many people have decided a GUI application for it is not necessary. I disagreed, as did a couple others. The Pandora website is entirely flash, and while the N900 brings flash to our browser (which is excellent) - flash is also very CPU intensive and sluggish. Pianobar steps in to be extremely lightweight, taking almost no overhead, and permits us to listen to our favorite online radio station in the background. Unfortunately, it's completely command line driven and as such, rather unintuitive. This gave birth to pyPianobar. It is my first PyQt4 application and I welcome any feedback. It controls pianobar in the back-end allowing users to "click" a button to perform tasks. Features:
Known Issues:
To be done:
How??
Why Python?? Simplicity. Using python, not only is this application runnable on the N900 - but it should also work with the next Maemo 6 model if they keep QT compatibility, and it also runs on Desktop Linux. This should, in theory, run on any device that supports python2.5 and qt4. I have included screenshots from the SDK, Desktop Ubuntu, and an N900. Show me the Money! The N900: http://img51.imageshack.us/img51/689...0020410304.png http://img691.imageshack.us/img691/9...0020410312.png http://img519.imageshack.us/img519/2...0020909244.png Thanks Thorprime! The SDK: http://packages.linuxniche.net/SDK-pyPianobar.png Desktop Ubuntu: http://packages.linuxniche.net/Ubuntu-pyPandora.png Special thanks goes to Thorprime for the interface and current screenshots and to Bratag for helping me test on a live N900 device! |
Re: [application] pyPianobar (with pianobar)
Installed on my N900 along with the Python-Qt4 bindings, was just getting seg-faults starting it up. (And yeh, those python Binding do eat alot of root space. About 25MB in root (of the 44MB of packages)
|
Re: [application] pyPianobar (with pianobar)
pyPianobar or just pianobar?
Try running it in a terminal and tell me what it's saying: Code:
python2.5 /opt/pyPianobar/pyPianobar.py |
Re: [application] pyPianobar (with pianobar)
following the thread
|
Re: [application] pyPianobar (with pianobar)
Packages should now be in Extras-Devel. If anyone can confirm for me I'll update the OP so you don't need to download the deb's directly.
If you have it installed previously, it should ask you to upgrade - the versions in Extras-Devel are newer than the OP. Thor - can you test the new one and see if segfaulting is still a problem? |
Re: [application] pyPianobar (with pianobar)
When running it from the terminal, the only output was the segmentation fault. I didn't check for a memory dump. I'll try installing from the repo and let you know how it goes then.
--Edit-- The new version in the repo works great. Awesome Job man. Also, the Icons I sent you were definitely themed for the Orange N900 skin. Should prob add a feature in the todo for creating icon sets to match the other default skin (and maybe a N810 skin as well?) http://img171.imageshack.us/img171/6...reenshot02.png Also, is the "Tired" button supposed to quit? Doesn't seem to output an error when clicked after running from the console, so I assume that is the desired result? |
Re: [application] pyPianobar (with pianobar)
OH!
Yeah I should mention that... So that sleep button actually cleanly exits the program :D. Sorry about that... eventually it will of course popup a timer that will shut the app down after so long. Currently the "after so long" is "now" :D. |
Re: [application] pyPianobar (with pianobar)
Shouldn't the button map to the "t" key in pianobar? Which tells pandora you are tired of the song playing and would like not to hear it again for a while?
|
Re: [application] pyPianobar (with pianobar)
Quote:
Didn't even know a "t" command existed... I just assumed the button was meant for something akin to "snooze" mode on radios. On my android phone I have to use a separate sleeptimer app to close my pandora every night when I go to bed. |
Re: [application] pyPianobar (with pianobar)
So now you've got me thinking. Something like that "tired" I could see being useful and is something that fits better being a button on the main screen with the like and dislike, and moving the "snooze" idea to the menu.
But the problem I see is.. everyone I show the interface to thinks the same thing. The ZZZ is a snooze... I wonder how many people might be telling Pandora that they are tired of a bunch of songs they aren't really tired of if I make it function like that? |
All times are GMT. The time now is 01:58. |
vBulletin® Version 3.8.8