maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   [application] pyPianobar (with pianobar) (https://talk.maemo.org/showthread.php?t=42104)

The Arsonist 2010-04-20 02:22

Re: [application] pyPianobar (with pianobar)
 
Everything has been posted and its working well dude. i think its lagging a lot less honestly(dropping into the task windows hardly makes it lag and it takes more open windows to make it lag. I'm back in harmony with my music! Pandora is a great DJ. The plus side is there IS a seperate Last.FM scrobbling app, but the intergrate was definitelyan added bonus(graned I never used it).

fatalsaint 2010-04-20 02:42

Re: [application] pyPianobar (with pianobar)
 
Yeah so I think something is broke in the web version. It shows my armel version of 2.0 pianobar as "build failed", except it clearly didn't as it's in the repository and works fine (in my limited testing).

I think I may have re-uploaded the same version before a previous one was finished maybe? I dunno.. hopefully it doesn't cause any major problems though. It does appear to be the one that gets pulled from Apt so.... *shrug*.

I saw a mafw-lastfm that says it scrobbles but that it integrates into the media framework. I'll have to play with it and see if it has a CLI call to "scrobble" the song.. if so then it might be possible to use it with the pianobar eventcmd API to "scrobble".

Meh... so much work.

The Arsonist 2010-04-20 03:58

Re: [application] pyPianobar (with pianobar)
 
Whatever Pandora changed seems to be pretty strange because its music selection has not been that good tonight. I keep getting a lot of weirdo cross-genre songs out of nowhere. I listen to stuff from Heavy Metal to Underground Hip-Hop. I've been listening to a Drake and a Jay-Z radio channel and I keep getting songs from 3 Doors Down, Nickelback, Disturbed, and Radiohead. No offense to those bands, but there's a time and place for everything and not everyone in my car wants to listen to that. If I'm in the mood for some bass blasting hip-hop, I don't want Three Days Grace to come blasting through my speakers when I'm cruising with my windows down. With the three channels I've checked(Immortal Technique being the third), I'm getting a lot less of artist I want to listen and lots of underground artists I've never heard of(and I'm pretty big on underground stuff). I'm going to check my metal channels and see if the same thing is happening on the other side of the spectrum. I'll be editing this shortly...

fatalsaint 2010-04-20 04:00

Re: [application] pyPianobar (with pianobar)
 
Quote:

Originally Posted by The Arsonist (Post 618783)
Whatever Pandora changed seems to be pretty strange because its music selection has not been that good tonight..

Wow... odd. I'm certainly not saying pianobar or pyPianobar is at fault.. but just to clear it may want to check if the same stuff happens in the web/flash straight from pandora?

The Arsonist 2010-04-20 04:14

Re: [application] pyPianobar (with pianobar)
 
WTF? Yeah its definitely doing the same thing on the website too. I just clicked Jay-Z radio and the first thing that came up was this weird throwback techno stuff by Princess Superstar, whoever the heck that is(it was a terrible song at that)...

Ok so, I just checked Sevendust Radio on the website. I did my 6 skips(since that's all they give you) and that all seemed to be fine, but that's only 7 songs...

Pandora is getting really overboard with these ads too. Whatever happened to them trying to keep these to a minimal?

[EDIT]I'm just going to start deleting some of my stations and start from scratch with these stations giving me weird results because most of the other stations seem fine(at least with this 7 song max I can check on the desktop). I'll keep you posted. I'm sure its no Pianobar problem(since I'm guessing it only fetches the songs from Pandora and plays the results). I'm just thinking whatever they changed in their API is making their results weird.

fatalsaint 2010-04-20 16:01

Re: [application] pyPianobar (with pianobar)
 
Bumping my own thread to try and get more feedback from the versions in Devel before I promote to testing....

Bueller? Bueller?

sadfist 2010-04-20 16:15

Re: [application] pyPianobar (with pianobar)
 
I'll give the new version a test at some point today. Finally got updated last night (devel giving me issues).

Re: history. Couldn't that be relegated to a menu option? That would keep the clutter out of the interface.

fatalsaint 2010-04-20 16:19

Re: [application] pyPianobar (with pianobar)
 
Quote:

Originally Posted by sadfist (Post 619601)
Re: history. Couldn't that be relegated to a menu option? That would keep the clutter out of the interface.

But what would the menu item do? Pop up a box with the history? Can the N900 handle "popup" boxes without full screening them? Change the whole interface over a history view instead of the main view?.. etc.

Rapparee 2010-04-20 16:23

Re: [application] pyPianobar (with pianobar)
 
Quote:

Originally Posted by fatalsaint (Post 619578)
Bumping my own thread to try and get more feedback from the versions in Devel before I promote to testing....

Bueller? Bueller?

Just DL an update... The station select seems to work better (it was "over kinetic" if thats a word i guess over responsive is a better depiction of the trouble i was having). Although it still seems a little choppy in its animation.

The tired of this song option is working!

Thats all i have notices thus far. I mostly use this "app" while at home over my LAN. I have used it over 2.5g att, to varying result. I have bought in to Pandora, and they have an option on their software to swap the quality settings of the stream, is this possible to achieve?

My long term want would be; to be able to use this in conjunction with the FM transmitter while in the auto, or if in a auto with BT to use that.

Keep up the good work, and thank you for the time you have spent making this.

sadfist 2010-04-20 16:34

Re: [application] pyPianobar (with pianobar)
 
Quote:

Originally Posted by fatalsaint (Post 619605)
But what would the menu item do? Pop up a box with the history? Can the N900 handle "popup" boxes without full screening them? Change the whole interface over a history view instead of the main view?.. etc.

I kinda don't like the way Maemo does those partial screen pop-ups unless they're for menus or drop-down selection. I would think full-screen with a back arrow would work perfectly well. See my horrible sketch! Made with sketch! :D

http://files.me.com/sadfist/f68er9

EDIT: Actually, what purpose does the history serve? Is it just to see a list of what played or is there some additional functionality? A pop-up similar to the way the drop-down selection pop-ups work might be good too. That would be weird to access via a menu item though.

EDIT 2: Ok so I just fired up pyPianobar. The playlist selection is working a lot better. Couldn't where it says the album/time (text is a tad on the small side there) just be made into a button that would do the same thing but display the history?

fatalsaint 2010-04-20 16:42

Re: [application] pyPianobar (with pianobar)
 
Quote:

Originally Posted by sadfist (Post 619626)
EDIT: Actually, what purpose does the history serve? Is it just to see a list of what played or is there some additional functionality? A pop-up similar to the way the drop-down selection pop-ups work might be good too. That would be weird to access via a menu item though.

None what-so-ever. You can't do anything with it. It was requested on the official App Page created at Maemo.org when I moved to extras. I was "assume" that say you remember you heard a song you really liked but didn't remember who it was or what the title was; you could pull up your pandora history and find out.

That's the only thing I could think. When we had Last.fm scrobbling I was just using that :D.

fatalsaint 2010-04-20 16:44

Re: [application] pyPianobar (with pianobar)
 
Quote:

Originally Posted by Rapparee (Post 619610)
The tired of this song option is working!

Ah Yes! The hidden update I totally forgot to mention :D!

Because we could never really come up with a de-facto "This means 'tired', not 'sleep'" icon I decided instead to be extra careful with the button and popup a yes/no box when you hit the tired button!

"Are you sure?".. everyone has seen this box before, now you have that added comfort when pushing the tired button that aren't going to accidentally hide your favorite song for a while.

ivlok 2010-04-20 16:47

Re: [application] pyPianobar (with pianobar)
 
Tried the app and it works

Thank You !!! :D

fatalsaint 2010-04-20 16:53

Re: [application] pyPianobar (with pianobar)
 
Quote:

Originally Posted by Rapparee (Post 619610)
J
Thats all i have notices thus far. I mostly use this "app" while at home over my LAN. I have used it over 2.5g att, to varying result. I have bought in to Pandora, and they have an option on their software to swap the quality settings of the stream, is this possible to achieve?

The only options available are the ones described in this post.

Current switching the streams is unsupported in pyPianobar. You can manually modify the ~/.config/pianobar/config file and change that item to mp3-hifi for the high quality sound. I am unable to test (at this moment), but I remember I had trouble with one of them not working (mp3 or aacplus) because pianobar was not compiled with the required dependency. I don't remember which though, so you can try changing it to mp3-hifi and see if pianobar works that way.

If so, it should just work in pyPianobar.. but I've not tested it.

sadfist 2010-04-20 16:55

Re: [application] pyPianobar (with pianobar)
 
Quote:

Originally Posted by fatalsaint (Post 619638)
None what-so-ever. You can't do anything with it. It was requested on the official App Page created at Maemo.org when I moved to extras. I was "assume" that say you remember you heard a song you really liked but didn't remember who it was or what the title was; you could pull up your pandora history and find out.

That's the only thing I could think. When we had Last.fm scrobbling I was just using that :D.

In that case how it's accessed probably isn't a big deal, whatever is easiest.

Do you have plans to pretty up the UI at some point? As it stands now, everything seems functional and working as well as ever.

EDIT: Is it possible to have the song title scroll in the menu bar. Or possibly move the track info to be over the album info? That's the only major UI problem I see.

fatalsaint 2010-04-20 16:56

Re: [application] pyPianobar (with pianobar)
 
Ok, so I've had at least 4 people say the Devel version is good... I'll push them up to testing.

ceevee 2010-04-20 17:04

Re: [application] pyPianobar (with pianobar)
 
2.0 Pianobar & pyPianobar is working great so far.

I have been using the sleep option when I sleep.

However when working with pianobar on, a kill is needed for the session timeout bug. It is not bad because it is only needed when many hours have passed.

Looking forward to that fix.

fatalsaint 2010-04-20 17:16

Re: [application] pyPianobar (with pianobar)
 
Quote:

Originally Posted by ceevee (Post 619682)
However when working with pianobar on, a kill is needed for the session timeout bug. It is not bad because it is only needed when many hours have passed.

How do you not run into the X hours per month of streaming before Pandora stops working for that account?

Or is that not a problem for paid subscribers and you are one?

I coulda swore the free acounts only have X hours per month they can stream.

ceevee 2010-04-20 17:25

Re: [application] pyPianobar (with pianobar)
 
Quote:

Originally Posted by fatalsaint (Post 619704)
How do you not run into the X hours per month of streaming before Pandora stops working for that account?

After reaching the limit, it is USD$0.99 for an unlimited month.

fatalsaint 2010-04-20 17:36

Re: [application] pyPianobar (with pianobar)
 
Well I'm having issues getting it up to testing and not sure what to do about it.

Will push it up when I can..

RockCreek1 2010-04-20 21:00

Re: [application] pyPianobar (with pianobar)
 
Could somebody help out: I am getting a message indicating:
"Pianobar Output: Protocol incompatible. Please upgrade libpiano."

Thank you.

fatalsaint 2010-04-20 21:03

Re: [application] pyPianobar (with pianobar)
 
http://talk.maemo.org/showthread.php...978#post617978

Fix is in extras-devel. Still waiting on repository problems before I can push to testing.

RockCreek1 2010-04-20 21:35

Re: [application] pyPianobar (with pianobar)
 
FatalSaint,

Thanks. I uninstalled and then re-installed from the extras-testing repository, not from extras-development -- so I guess I basically uninstalled and reinstalled the same thing. Well, I'll look forward to when your fix is moved up to extras-testing. Thank you for all of your work on this. It is much appreciated. It would be nice if Pandora would stop tinkering with the coding.

Quote:

Originally Posted by fatalsaint (Post 620052)
http://talk.maemo.org/showthread.php...978#post617978

Fix is in extras-devel. Still waiting on repository problems before I can push to testing.


The Arsonist 2010-04-21 14:35

Re: [application] pyPianobar (with pianobar)
 
Yeah so just an update everything is good and back to the way things were.

The only future changes I can see are possible UI stuff. Some welcomed additions would be making the title bar scroll through the title of the song and artist or maybe even moving the track name and artist to the window instead of the title bar may be useful. Also, the controls also get shoved together if the album title is too long(and when they add radio single and explicit to it, the album titles get long), so possibly making that only show a set number of characters and then scrolling the rest of the characters would be cool. Like Rapparee said, the Created Stations list is kind of sloppy when it comes to selecting and scrolling through them. Its usable, it just could be better.

Really anything left to say about the App is really minuscule things because the foundation and required things are taken care of. I'm certainly satisfied(although I really wish Nokia could knock out the audio skip whenever you lock the phone).

dkwatts 2010-04-21 15:28

Re: [application] pyPianobar (with pianobar)
 
Quote:

Originally Posted by fatalsaint (Post 617978)
Ok well,

Not sure what to do here. Evidently Pandora updated their API, again, so none of the pianobar's are going to work until I can re-compile one of the newer pianobar's and release that.

The other issue is the newer pianobars don't have Last FM scrobbling built in anymore, it's all through a third party wrapper which I don't know how to use yet or if it's even available on the N900. So this will require testing and some work before I can get something new submitted.

Problem I have now is.. how do I remove the app from Extras since it is now broke? And what's really frustrating is that it took this long to get the app *in* to extras that now I have to start all over and by the time I get it back there it'll probably be time to upgrade again (seems to happen near quarterly-ish).

Frustrating.

What link should N8X0 users re-download and re-install???

FYI -- just installed for the first time a few days ago and am loving Pandora on my N800.

fatalsaint 2010-04-21 15:45

Re: [application] pyPianobar (with pianobar)
 
Quote:

Originally Posted by The Arsonist (Post 621104)
The only future changes I can see are possible UI stuff. Some welcomed additions would be making the title bar scroll through the title of the song and artist or maybe even moving the track name and artist to the window instead of the title bar may be useful. Also, the controls also get shoved together if the album title is too long(and when they add radio single and explicit to it, the album titles get long), so possibly making that only show a set number of characters and then scrolling the rest of the characters would be cool. Like Rapparee said, the Created Stations list is kind of sloppy when it comes to selecting and scrolling through them. Its usable, it just could be better.

I'm not sure what you mean by "Created Stations"... you just mean the station combobox to change your stations? That's just a normal QT combobox with minimal changes on my part - so most of the formatting and everything is actually be done by whatever defaults the PyQT and N900 QT libraries are setup to use. I'm not sure what all I can "change" on that..

Your other suggestions are good ideas.. and I think I have looked at scrolling the title and I just couldn't quite figure out how. Don't know how much time i spent doing it though as I sort of wanted an app out there first and then these kinds of tweaks can come over time.

Quote:

Originally Posted by dkwatts (Post 621164)
What link should N8X0 users re-download and re-install???

I actually haven't fixed the N8x0 situation yet. I guess now that I'm getting asked for it I will... the N8x0 was somewhat a bandaid solution because the required dependencies aren't in the official repositories.

I'll try and recompile pianobar tonight.

Still having the repository problem, I'm tempted to just re-upload a new version number just to get the repository to accept it and force it to "rebuild" but Im worried as to why it says "build failed" at all when it clearly didn't and is working fine. I was hoping to be in testing by now so people could be voting.

The Arsonist 2010-04-21 16:16

Re: [application] pyPianobar (with pianobar)
 
Quote:

Originally Posted by fatalsaint (Post 621178)
I'm not sure what you mean by "Created Stations"... you just mean the station combobox to change your stations? That's just a normal QT combobox with minimal changes on my part - so most of the formatting and everything is actually be done by whatever defaults the PyQT and N900 QT libraries are setup to use. I'm not sure what all I can "change" on that..

Your other suggestions are good ideas.. and I think I have looked at scrolling the title and I just couldn't quite figure out how. Don't know how much time i spent doing it though as I sort of wanted an app out there first and then these kinds of tweaks can come over time.

I guess that its called a combobox, but yeah the box that pops up to change your stations. Its touchy. When you scroll, it usually over scrolls the items in the list(like an iPhone does in Safari) and when it wipes back up, it lags fairly slowly. I'll try to take a quick video of it(tonight because I'm at work) to show you what I mean.

RockCreek1 2010-04-21 16:52

Re: [application] pyPianobar (with pianobar)
 
I've experienced the same problem with scrolling. It really requires some attention and focus to get my stylus to hit the correct station I want to play. The scrolling is uneven and a bit of frustrating. A number of times, I've hit a station other than the one I wanted to listen to at the time.

By the way, several people have indicate the limit of only being able to skip about six songs. I've gotten around this by sometimes temporarily switching stations, then going back to the original station where I can then skip through another six songs if wanted.

Quote:

Originally Posted by The Arsonist (Post 621208)
I guess that its called a combobox, but yeah the box that pops up to change your stations. Its touchy. When you scroll, it usually over scrolls the items in the list(like an iPhone does in Safari) and when it wipes back up, it lags fairly slowly. I'll try to take a quick video of it(tonight because I'm at work) to show you what I mean.


fatalsaint 2010-04-21 18:20

Re: [application] pyPianobar (with pianobar)
 
Quote:

Originally Posted by RockCreek1 (Post 621245)
By the way, several people have indicate the limit of only being able to skip about six songs. I've gotten around this by sometimes temporarily switching stations, then going back to the original station where I can then skip through another six songs if wanted.

I do this on my Android with the official app - I didn't think pianobar suffered from this... I swear I've skipped more than six in pianobar before..

Are you having this problem on the N900? That would be a shame. It's so annoying.

As for the scrolling.. I don't think that's anything I do. I'll research it but I don't set any settings regarding scrolling or kinetic/physics of it. I assume this same scrolling issue is not present on other QT-based apps that have a combobox?

zappa 2010-04-21 23:01

Re: [application] pyPianobar (with pianobar)
 
The new update is working great for me.

I love how you incorporated the auto load last station feature.

I sent you a donation, get a six pack of good beer on me.

fatalsaint 2010-04-21 23:26

Re: [application] pyPianobar (with pianobar)
 
Quote:

Originally Posted by zappa (Post 621714)
I sent you a donation, get a six pack of good beer on me.

TYVM!!! In fact, I just got the approval from the wife to get me an N900 so all of the donations I've received to this point went towards that. Still had to finance a bunch of it but I should be getting one soon! :D

I appreciate all the support from everyone. I'll keep these packages moving towards extras and will do/port some more once I get my new phone and can actually use what I make :).

I'm going to try re-uploading pianobar to the repo's today so those of you with devel may see an update.. it's not an update - it's just me changing version number to try and unscrew the building system so I can promote it.

I also will get the N8x0 version re-built.

Laughing Man 2010-04-22 00:12

Re: [application] pyPianobar (with pianobar)
 
Hmm, I searched through the thread real quick and it seems that the app is optified. But when I install it from extras it takes up alot of rootfs (the dependencies maybe?)

zappa 2010-04-22 00:15

Re: [application] pyPianobar (with pianobar)
 
Quote:

Originally Posted by fatalsaint (Post 621739)
TYVM!!! In fact, I just got the approval from the wife to get me an N900 so all of the donations I've received to this point went towards that.

Awesome congrats!!!!:)

fatalsaint 2010-04-22 00:51

Re: [application] pyPianobar (with pianobar)
 
Quote:

Originally Posted by Laughing Man (Post 621777)
Hmm, I searched through the thread real quick and it seems that the app is optified. But when I install it from extras it takes up alot of rootfs (the dependencies maybe?)

The only packages that *should* be taking up any space in the roofs are the QT libraries. PyQT4 is optified as is both pianobar packages (even if they weren't both pianobar and pypianobar are extremely small anyway).

However, if this is the first PyQt4 package you've installed I imagine that several of the dependencies have little pieces here and there that could add up.

But, these would be required on any PyQt4 package; and only required to download/install the one time, so once you have them then the rest of the packages in the repository based on it won't take up any space (or shouldn't, if properly optified).

Does your app log have all the packages it loaded for dependencies by chance?

Quote:

Originally Posted by dkwatts (Post 621164)
What link should N8X0 users re-download and re-install???

I updated the original N8x0 post here with the new version for N8x0 users. Tested on my N810 with pyPianobar.

fatalsaint 2010-04-22 01:00

Re: [application] pyPianobar (with pianobar)
 
OK ALL, call to arms:

We're in testing again!! Help me by (testing of course, then) voting on these two apps so we can fix extras!

--outdated versions--

Need 10 votes ASAP! Don't let us wait months to make it back to extras again and start this fiasco all over! :)

Laughing Man 2010-04-22 01:18

Re: [application] pyPianobar (with pianobar)
 
Quote:

Originally Posted by fatalsaint (Post 621797)
The only packages that *should* be taking up any space in the roofs are the QT libraries. PyQT4 is optified as is both pianobar packages (even if they weren't both pianobar and pypianobar are extremely small anyway).

However, if this is the first PyQt4 package you've installed I imagine that several of the dependencies have little pieces here and there that could add up.

But, these would be required on any PyQt4 package; and only required to download/install the one time, so once you have them then the rest of the packages in the repository based on it won't take up any space (or shouldn't, if properly optified).

Does your app log have all the packages it loaded for dependencies by chance?



I updated the original N8x0 post here with the new version for N8x0 users. Tested on my N810 with pyPianobar.

I've installed it and uninstalled it a few times. But I go from around 40 MB free to 31 MB free in rootfs after an install. Here's the log..

Code:

hildon-application-manager 2.2.52.2
-----
Installing pypianobar 1.0-4
apt-worker: free space (/) = 42074112
apt-worker: free space (/home/user/MyDocs/.apt-archive-cache/) = 16338452480
required disk space: 5757442
apt-worker: free space (/) = 42074112
Selecting previously deselected package libqt4-webkit.
(Reading database ... 37505 files and directories currently installed.)
Unpacking libqt4-webkit (from .../libqt4-webkit_4.5.3~git20090723-0maemo6+0m5_armel.deb) ...
Selecting previously deselected package python2.5-qt4-webkit.
Unpacking python2.5-qt4-webkit (from .../python2.5-qt4-webkit_4.7-maemo7_armel.deb) ...
Selecting previously deselected package python2.5-qt4-network.
Unpacking python2.5-qt4-network (from .../python2.5-qt4-network_4.7-maemo7_armel.deb) ...
Selecting previously deselected package pypianobar.
Unpacking pypianobar (from .../pypianobar_1.0-4_all.deb) ...
Setting up libqt4-webkit (4.5.3~git20090723-0maemo6+0m5) ...
Setting up python2.5-qt4-network (4.7-maemo7) ...
Setting up python2.5-qt4-webkit (4.7-maemo7) ...
Setting up pypianobar (1.0-4) ...


fatalsaint 2010-04-22 01:29

Re: [application] pyPianobar (with pianobar)
 
Quote:

Originally Posted by Laughing Man (Post 621806)
I've installed it and uninstalled it a few times. But I go from around 40 MB free to 31 MB free in rootfs after an install. Here's the log..

That is really weird. I checked all 4 packages you have in your log there and there was some in the non opt directories but.. not 9MB worth..

I did notice that, at least in my SDK environment, the PyQT so's weren't actually optified..

Now that I'm paying attention.. this directory:
/usr/lib/python2.5/site-packages/PyQt4/

Is actually 9.6MB in size. Take a look there and see if yours is the same. That's probably where it came from.

Laughing Man 2010-04-22 01:40

Re: [application] pyPianobar (with pianobar)
 
Yeah, mine is 8.1 MB in size, though what does that mean the app is installing non-optified dependencies or is that from another application?

fatalsaint 2010-04-22 01:43

Re: [application] pyPianobar (with pianobar)
 
Those are the PyQt4 dependencies of all Python+QT apps. Unfortunately there isn't anything I can do about those :(.

I'm guessing these are the QT parts that attila77 was talking about in his PyQt4 thread.

Laughing Man 2010-04-22 01:47

Re: [application] pyPianobar (with pianobar)
 
Oh well, I was planning on doing a full reflash of my N900 anyway once PR 1.2 came out. Might as well have fun with low rootfs space until the time comes. =P

Thanks alot, looking forward to trying this app out! :)

Edit: Hmm trying out the version from extras-testing. I don't think creating a station works (where it asks you to input an Artist or a Title of a song, choose whether it's an artist or track, then select it from the drop down). I've noticed it doesn't say ARTIST NAME Radio. It just says ARTIST NAME and doesn't play anything. Closing the application and opening it back up turns it into ARTIST NAME Radio and then it plays.


All times are GMT. The time now is 12:07.

vBulletin® Version 3.8.8