![]() |
Re: Pianobar port - command line Pandora client
Quote:
I would be more than willing to take a look at what you got and see if I notice anything. One thing I made sure when designing my QT interface was to group all the different buttons and interfaces in separate "align vertically/horizontally" as they were supposed to look, and then did an align to grid against the background. That way when the window is resized, it either expands/retracts/keeps the items according to their properties and in their respective places. Also, I used quite a few spacers too. ETA: The *only* thing mine doesn't have right now is the username/password part. Everything else is working. Once I figure out how to popup a box for username/password I should be pretty good. (and capture the "username:" output from pianobar.. since it's not a newline.) |
Re: Pianobar port - command line Pandora client
Quote:
|
Re: Pianobar port - command line Pandora client
Quote:
Works quite nicely :D. Now I just need the username/pass, and I also want the Last.fm user/pass as well because I think that is an *awesome* feature of pianobar that no other pandora radio client has. |
Re: Pianobar port - command line Pandora client
Quote:
|
Re: Pianobar port - command line Pandora client
Quote:
|
Re: Pianobar port - command line Pandora client
Quote:
Btw, as far as scrobbling to last.fm from pandora, there actually is 1 application that can do it. OpenPandora, a Windows-based pandora client, can do it. Of course, that doesn't run on anybody's Nxx0. |
Re: Pianobar port - command line Pandora client
Quote:
I believe the N900 is now the only mobile device with a pandora client that offers this. And, all of the official pandora clients stop you from skipping after 6 songs per hour (which you can get around by stopping and restarting that station) - but pianobar does not seem to suffer from that. |
Re: Pianobar port - command line Pandora client
Quote:
Step 1 Code:
apt-get install libmad0Download and install libao2 (need to use dpkg -i from command line as root) Step 2a Use your favorite editor to edit /etc/libao.conf and change the "default_driver=alsa" to "default_driver=esd" Step 3 Download and Install pianobar Step 4 stream pandora. Code:
pianobar |
Re: Pianobar port - command line Pandora client
in addition to the above.. if you download the pypianobar deb file.. it will work as well to give you a GUI for your N8x0. Just navigate to the latest versions direct DEB file.
The sound on my N810.. I'm not sure if it's pianobar/libao2 from above or what.. but it's sometimes pretty .. bumpy. Not sure if it's just mine though. |
Re: Pianobar port - command line Pandora client
Thanks, fatalsaint. I gave this a try just now (as soon as I saw your post; this is pretty exciting). I was able to install libmad0 after rooting my tablet, but as soon as I tried to install libao2 (I downloaded from the link you posted, then application manager loaded and tried to install), it gave me an error:
"Unable to install libao2. Incompatible application package." I'm running the latest release of OS2008 on my N800. Do you have any ideas on what I might try to get that package to install? Thanks again for your efforts on this! |
Re: Pianobar port - command line Pandora client
ham wont let u install any package that isnt set for user/* groups and i dont believe libao is. youll need to install with dpkg -i from the command line. i believe pianobar should work from HAM though. i didnt do the libao2 package... i found it in a repo off gronmeyer.
sorry bout grammar/spelling.... posted lazily from my n810 :) |
Re: Pianobar port - command line Pandora client
Quote:
Thanks again, and might I recommend linking to the n810 instruction post from the pypiano thread? Took me a bit to go from omgomgomgpandora!-With-a-gui-even!-omg to hey-this-isn't-working to here EDIT: pianobar seems to make any text input into the terminal after pianobar was exited (Ctrl+c) invisible. Weird. also - the link you provided for pypianobar has a single quote appended to the end EDIT2: GUI doesnt seem to work. Can log in (characters for username/password don't show up), see my channels, but it doesnt seem to play music. Play button will switch between play and pause, not doing anything. There is a static song title, author and album. I hit the plus button and it seems to stick there. This could all be because I installed the pyqt packages from extras-devel, but I don't think that is the case |
Re: Pianobar port - command line Pandora client
Quote:
Quote:
Quote:
Quote:
|
Re: Pianobar port - command line Pandora client
Okay, I managed to get Pianobar working on my N800 also. Low cpu-usage Pandora, that's awesome. However, I can confirm the problems mentioned before - frequent 'popping' noises, text input gets hidden, and sometimes it stops playing music altogether. Is libao0 the cause of all these? I couldn't say.
I haven't tried the GUI yet - it looks like my tablet has some Python requirements that I don't have - but for now I'll stick with the command line. I don't know how everyone else has figured out what buttons do what [edit]I see how now, you just type '?'...duh[/edit], but I found documentation of a sort here: http://github.com/PromyLOPh/pianobar...src/pianobar.1 Anyways, thanks for getting us this far, and hope to see this grow even better in future! |
Re: Pianobar port - command line Pandora client
If you start pianobar, select a channel, pause, bring up the search dialog for artist / song, (n is what I pushed I believe), and then exit with ctrl+c, the next time you try to play something in pianobar it will actually give an error -
Code:
ALSA snd_pcs_open error: Device or resource busy |
Re: Pianobar port - command line Pandora client
Quote:
Code:
apt-get -f installAlso that file you found is a MAN page.. I don't recall if I had it in the N8x0 deb or not... try "man pianobar" from the command line. The N900 strips these out whether i put them in the deb or not. |
Re: Pianobar port - command line Pandora client
Quote:
|
Re: Pianobar port - command line Pandora client
Quote:
|
Re: Pianobar port - command line Pandora client
Quote:
If you're waiting on the new version... some Help & Feedback in the other thread about design, layout, etc would be greatly appreciated. Most of the functionality is there I just want, before I submit 1.0 up through to extras, to have an interface that a good number of people have said is good enough. |
Re: Pianobar port - command line Pandora client
I think I found the problem to the clicking!! Around these forums (because these forums ROCK!) there were problems of people with N8x0 getting clicking with MPD and the solution was to edit /etc/libao.conf and change the default driver to "esd" instead of "alsa".
So I did it and voila. I don't hear clicking... Maybe you can guys can give it a shot and see if it works. |
Re: Pianobar port - command line Pandora client
Yes! I can confirm the popping noises are gone for me now as well, after doing that. So now I would consider Pandora very usable on my N800. Excellent! (Right now it keeps pausing, but I think/hope that's due to the wireless network I'm on, which has often been rather slow in the past.)
Thanks for the fix for that. About the GUI, I was looking at the other thread about PyPianobar, and I saw the part about the library for it being as large as 44 MB. That might be okay for N900 users, but I checked the free internal memory on my device just now and I only have about 45 MB left total (!). That being the case, I don't think I could sacrifice that much memory for the GUI. (Correct me if I'm reading something wrong here.) I also saw there's another GUI in progress, qtPianobar, but it looks like that one needs some other libraries that wouldn't work with OS2008. So...I guess for now I'll just stick with the command line. One question about the command-line version....is there a way to get it to store login information? I found the config file in the pianobar directory and edited it, but it didn't seem to make any difference, so I'm guessing the application doesn't really use that file (?). |
Re: Pianobar port - command line Pandora client
Quote:
|
Re: Pianobar port - command line Pandora client
Quote:
Now it specifically depends on python2.5-qt4-gui for the version in the Repo.. and the next one will include 2 more... So it won't be 44MB anymore (or at least it shouldn't be.) I have it on my N810 and don't have a problem. The next version of pyPianobar ... I just dunno what to do with. It includes an album cover loader but while it's grabbing that data on an N810.. it stutters the pianobar music :(. I am trying to work on that.. but I think it's just a problem with the N810 processor handling threads. ETA: Quote:
/home/user/.config/pianobar/config You need to uncomment (remove the #) username and password fields and fill them out appropriately. |
Re: Pianobar port - command line Pandora client
Quote:
|
Re: Pianobar port - command line Pandora client
Quote:
As for the new version, that's a shame. Having cover art download automatically would be cool, but I'd say having the music play smoothly is more important. I don't know if it will be an either/or choice like that, but if so, that's my 2 cents. |
Re: Pianobar port - command line Pandora client
Quote:
If everything works well on my Home Wifi I'll figure it should be OK.. since I think normal wifi is probably the most common connection method for an N8x0? ETA: If it doesn't work out well for the N8x0 users I can make a version just for you guys without the album loader functionality. |
Re: Pianobar port - command line Pandora client
Yes, wifi is by far the most common connection method. A few people connect via their cell phones using bluetooth, but probably not that many.
|
Re: Pianobar port - command line Pandora client
Quote:
Changing the default driver to esd works great, it even seems to get rid of pianobar dieing (until reboot) if exited improperly. |
Re: Pianobar port - command line Pandora client
Quote:
|
Re: Pianobar port - command line Pandora client
Alright, I might give it a shot. Is the link that was in this thread from a few days ago the most recent version for Diablo users?
|
Re: Pianobar port - command line Pandora client
Quote:
http://maemo.org/packages/view/pypianobar/ |
Re: Pianobar port - command line Pandora client
So I got around to giving PyPianobar a try on my N800. I first tried installing the package posted, using the "Fremantle Extras-devel free armel" file. I tried installing with application manager (error, as expected), then running that "apt-get -f install" command that you mentioned, but no dice - I don't think it did anything. Then I tried installing the PyPianobar file with dpkg -i, then again using that "apt-get -f install" command, and this time it just removed the PyPianobar package instead of installing the dependencies. So I'm still stuck on getting those dependencies installed. Is there another way I can get the libraries for it installed on Diablo?
|
Re: Pianobar port - command line Pandora client
Quote:
You need to have both pianobar *and* pyPIanobar installed (which includes having the libao0)... other than that - it's all PyQt4 dependencies. Something may be up with the PyQt4 diablo ones... an output from the dpkg -i install would help. |
Re: Pianobar port - command line Pandora client
okay, here goes:
Code:
dpkg: dependency problems prevent configuration of pypianobar:So I guess the question would be, what's the easiest way to get those packages installed? |
Re: Pianobar port - command line Pandora client
Quote:
|
Re: Pianobar port - command line Pandora client
Ah, good call. I had it disabled. So after enabling it, pypianobar itself showed up in application manager as a program to be updated (apparently it was still on my tablet after all). However, it showed as having 16 dependencies to install, that would take a grand total of 60 mb! Can that be right?
Should i just look through the list and manually install the 3 packages i mentioned earlier instead? Again, thanks for all the guidance with this. |
Re: Pianobar port - command line Pandora client
Quote:
I would run a apt-get -f install from the terminal and look at exactly what's going to be installed. 60MB really surprises me... |
Re: Pianobar port - command line Pandora client
Okay, here's the output from that:
"The following extra packages will be installed: libaudio2 libqt4-dbus libqt4-designer libqt4-network libqt4-phonon libqt4-script libqt4-webkit libqt4-xml libqtcore4 libqtgui4 python2.5-qt4-common python2.5-qt4-core python2.5-qt4-gui python2.5-qt4-network python2.5-qt4-webkit python2.5-sip4 Suggested packages: nas Recommended packages: qt4-qtconfig The following NEW packages will be installed: libaudio2 libqt4-dbus libqt4-designer libqt4-network libqt4-phonon libqt4-script libqt4-webkit libqt4-xml libqtcore4 libqtgui4 python2.5-qt4-common python2.5-qt4-core python2.5-qt4-gui python2.5-qt4-network python2.5-qt4-webkit python2.5-sip4 0 upgraded, 16 newly installed, 0 to remove and 11 not upgraded. 1 not fully installed or removed. Need to get 18.6MB of archives. After unpacking 60.5MB of additional disk space will be used. Do you want to continue [Y/n]?" So i guess it really may need 60 mb on Diablo (?). Oh well, the command-line client is good and fulfills my long-standing wish for a Pandora app on the n800. |
Re: Pianobar port - command line Pandora client
Hrm.. well - Im sorry you aren't able to use it. I love pyPianobar on my N810 :). if it took 60MB that's unfortunate, not much I can do about the pyqt libraries... but my N810 handles it OK. Being able to control pianobar without the keyboard out is quite nice when I'm on the move.
|
Re: Pianobar port - command line Pandora client
Quote:
|
| All times are GMT. The time now is 19:32. |
vBulletin® Version 3.8.8