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)

ceevee 2010-05-07 23:51

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

Originally Posted by fatalsaint (Post 643934)
Ok, new pyPianobar (2.1-1) up
* Attempt #2 at solving the 100% CPU pianobar lockup (re: auth token timeout)

Still getting locked up from token timeouts. Had to force the pyPianobar window to close and kill pianobar PID.

Thanks for trying again!

fatalsaint 2010-05-07 23:55

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

Originally Posted by ceevee (Post 648788)
Still getting locked up from token timeouts. Had to force the pyPianobar window to close and kill pianobar PID.

Thanks for trying again!

Damn.

Not sure what to do then.. I send a newline; q; newline, newline - anytime I get an error and pianobar's pipe is still open :mad:

Maybe I'll have to break them into separate calls instead of all in one string.

j-a-k 2010-05-10 02:11

Re: [application] pyPianobar (with pianobar)
 
1 Attachment(s)
when I change the station the play button gets moved.

nosa101 2010-05-10 02:35

Re: [application] pyPianobar (with pianobar)
 
Are any plans for icon redesigns or are you just bugfixing at this point?

I did a little mock uphttp://imgur.com/1KIa6.png

fatalsaint 2010-05-10 05:12

Re: [application] pyPianobar (with pianobar)
 
Im up for any suggestions.

That's not a bad look there... though it looks like that would be better in portrait (which I plan to add if I ever get bored).. too much wasted space in landscape.

fatalsaint 2010-05-10 05:13

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

Originally Posted by j-a-k (Post 651147)
when I change the station the play button gets moved.

Odd... thought I had fixed that. I'll double check.

j-a-k 2010-05-10 05:23

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

Originally Posted by fatalsaint (Post 651236)
Odd... thought I had fixed that. I'll double check.

Thanks,
It doesn't affect functionality but thought you might be interested. BTW I really like the layout the way you have it (no offense to others with layout suggestions) It's finger friendly and I have been told that I have sausage fingers. It's easy to change songs in the car without swerving.

The Arsonist 2010-05-10 11:32

Re: [application] pyPianobar (with pianobar)
 
You already fixed that button issue j-a-k is having, maybe he needs to update or something? Could it possibly be the theme he has on it? I haven't had that issue in weeks.

And like you said, I think for the most part, the UI is fine in landscape mode. I personally prefer the big buttons(for skipping stuff in the car) and the displayed artwork layout, having any other info on the main window would be pretty pointless because it would be non-essential to the apps functions. I personally would like to the see the "Song" - Artist Titlebar moved down for songs and artists with long names. It can prevent you from discovering new artists, so that is the only problem I see with the UI at the moment.

fatalsaint 2010-05-10 17:51

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

Originally Posted by The Arsonist (Post 651665)
You already fixed that button issue j-a-k is having, maybe he needs to update or something? Could it possibly be the theme he has on it? I haven't had that issue in weeks.

And like you said, I think for the most part, the UI is fine in landscape mode. I personally prefer the big buttons(for skipping stuff in the car) and the displayed artwork layout, having any other info on the main window would be pretty pointless because it would be non-essential to the apps functions. I personally would like to the see the "Song" - Artist Titlebar moved down for songs and artists with long names. It can prevent you from discovering new artists, so that is the only problem I see with the UI at the moment.

Yup; problem I'm having is I'm seeing no built-in way for QT to scroll a label or the title bar so I'm either going to have to implement it myself (not looking forward to it) - or find somewhere to move it that is able to accommodate longer names.

I was also curious about J-A-K's version; but I thought both the version in Extras and Testing had the fix in it now. J-A-K can you tell me what version you're running?

The Arsonist 2010-05-11 11:50

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

Originally Posted by fatalsaint (Post 652138)
Yup; problem I'm having is I'm seeing no built-in way for QT to scroll a label or the title bar so I'm either going to have to implement it myself (not looking forward to it) - or find somewhere to move it that is able to accommodate longer names.

I was also curious about J-A-K's version; but I thought both the version in Extras and Testing had the fix in it now. J-A-K can you tell me what version you're running?

I'm was thinking A) You could separate the Title of the song from the Artist. Possibly put the Artist name or Song Name in the Title and put the other one line above the Album Name. Or B) Make it like a 3 bar info panel underneath the Album artwork(but I don't know exactly how many lines of text you have down there without having to resize the album artwork and such).

fatalsaint 2010-05-11 14:17

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

Originally Posted by The Arsonist (Post 653243)
I'm was thinking A) You could separate the Title of the song from the Artist. Possibly put the Artist name or Song Name in the Title and put the other one line above the Album Name. Or B) Make it like a 3 bar info panel underneath the Album artwork(but I don't know exactly how many lines of text you have down there without having to resize the album artwork and such).

Maybe I'll just put the title of the radio station you're playing in the title bar and make the label at the bottom 3 lines. It means shrinking the album art a bit.

I'll mess with it when I get a chance. I don't work a lot on it when I have a working version in Extras, and a working (different) version in Testing. There's no point; even if I make an update I won't want to push it up because of the lost votes. So I wait until I can promote testing to extras; then make my changes; then let the new one sit in testing for a while.

ArchiMark 2010-05-14 18:54

Re: [application] pyPianobar (with pianobar)
 
Hope someone can please advise...

Got pyPianobar installed and while appears to be running OK, it shows my Pandora stations I previously created online, and the 'Play' (?) button (one on top with triangle point pointing to the right..) is showing a light blue color now, I don't hear any music nor see any album art....

What do I need to do to get to hear music and see what's playing, etc??

Also, can I play music through N900 speaker or do I need to use earphones??

Thanks!

fatalsaint 2010-05-14 19:23

Re: [application] pyPianobar (with pianobar)
 
The album art is strange.. do you see a "No Image Found" graphic there?

As far as sound: The common problem I've seen is people have the silent profile enabled on their phone. The default media player trumps this, but third party sound apps (like pyPianobar) do not.

Once you get sound working: You can listen via speakers, headphone, or FM Transmitter.

ArchiMark 2010-05-14 19:46

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

Originally Posted by fatalsaint (Post 658785)
The album art is strange.. do you see a "No Image Found" graphic there?

All I see is a black square....

Quote:

As far as sound: The common problem I've seen is people have the silent profile enabled on their phone. The default media player trumps this, but third party sound apps (like pyPianobar) do not.

Once you get sound working: You can listen via speakers, headphone, or FM Transmitter.
You're right! I had silent profile enabled....so, fixed that....

Meanwhile, before I posted above, I closed pyPianobar and now reopened app....put in password again and clicked done....but it's been over 5 minutes and I don't see any activity or see my stations listed as before....

I am connected to internet now via wifi as before.....

Is there something else I should to get my stations to show up and hear music....tried clicking on the 'Play' (?) button but no response to that....

???

Thanks!

fatalsaint 2010-05-14 19:57

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

Originally Posted by ArchiMark (Post 658817)
All I see is a black square....

We'll revisit this once you are streaming and listening properly.

Quote:

You're right! I had silent profile enabled....so, fixed that....

Meanwhile, before I posted above, I closed pyPianobar and now reopened app....put in password again and clicked done....but it's been over 5 minutes and I don't see any activity or see my stations listed as before....

I am connected to internet now via wifi as before.....

Is there something else I should to get my stations to show up and hear music....tried clicking on the 'Play' (?) button but no response to that....
There is nothing you should need to do. This sounds like what happens if you have it already running and switch networks; or you're on a very slow network.

Did you change to wifi after you opened the app? Restarting the app should fix this. To be totally sure there is no rogue or zombie processes left from opening and closing - I'd recommend you try rebooting the phone; connect to your wireless; then start pyPianobar and see if it starts working.

ArchiMark 2010-05-14 20:07

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

Originally Posted by fatalsaint (Post 658827)
We'll revisit this once you are streaming and listening properly.

OK....thanks....


Quote:

There is nothing you should need to do. This sounds like what happens if you have it already running and switch networks; or you're on a very slow network.

Did you change to wifi after you opened the app? Restarting the app should fix this. To be totally sure there is no rogue or zombie processes left from opening and closing - I'd recommend you try rebooting the phone; connect to your wireless; then start pyPianobar and see if it starts working.

Ooops.....realized that I'd gone into offline mode...got out of that, connected to internet again, opened Pandora again, got connected and can see stations again...but still no music, triangle is light blue gray again.....

Anything else???

Thanks!

fatalsaint 2010-05-14 20:20

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

Originally Posted by ArchiMark (Post 658842)
Ooops.....realized that I'd gone into offline mode...got out of that, connected to internet again, opened Pandora again, got connected and can see stations again...but still no music, triangle is light blue gray again.....

Anything else???

Thanks!

There is only 3 things I can think to check with the audio. That's the Silent Profile; your volume (maybe try pressing the volume up a few times?), or the FM Transmitter is enabled.

If you're not in Silent, Volume all the way up, and FM transmitter is disabled - close pyPianobar, open a terminal, and run "pianobar" in the terminal. See if you get any errors.

ArchiMark 2010-05-14 20:28

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

Originally Posted by fatalsaint (Post 658866)
There is only 3 things I can think to check with the audio. That's the Silent Profile; your volume (maybe try pressing the volume up a few times?), or the FM Transmitter is enabled.

If you're not in Silent, Volume all the way up, and FM transmitter is disabled - close pyPianobar, open a terminal, and run "pianobar" in the terminal. See if you get any errors.

OK, thanks, running pianobar in terminal...overall, seems OK, but after selecting one of my stations, it says:

Quote:

(i) Receiving new playlist... Network error: timeout.
nothing is happening now after a few minutes...no more messages in terminal nor see new prompt line.....

fatalsaint 2010-05-14 20:29

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

Originally Posted by ArchiMark (Post 658874)
OK, thanks, running pianobar in terminal...overall, seems OK, but after selecting one of my stations, it says:



nothing is happening now after a few minutes...no more messages in terminal nor see new prompt line.....

Press "q" then enter.

Obviously pianobar is having issues connecting to Pandora. You can browse the web, and http://www.pandora.com works in your N900 browser?

ArchiMark 2010-05-14 20:50

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

Originally Posted by fatalsaint (Post 658876)
Press "q" then enter.

Obviously pianobar is having issues connecting to Pandora. You can browse the web, and http://www.pandora.com works in your N900 browser?

Ok, opened up Pandora.com in iceweasel...it's taking a while, but it's slowly loading....I see the blue progress bar and message, 'Please wait, Pandora is loading...just finished took several minutes....now, I see page loaded and I got to sign-in section...browser is reacting slowly, got signed in, now at my stations page...clicked on station, now get message:

'It's taking longer than expected to figure out the perfect song to play next.

The music should be playing soon, but if you get tired of waiting, try switching to one of your other stations.'

Tried another station, but again, everything reacting very slowly...odd because I have high speed internet connection here at work.... getting same message as above for this other station ....so, maybe it's connection issue or Pandora site issue or ???

fatalsaint 2010-05-14 20:55

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

Originally Posted by ArchiMark (Post 658900)
Tried another station, but again, everything reacting very slowly...odd because I have high speed internet connection here at work.... getting same message as above for this other station ....so, maybe it's connection issue or Pandora site issue or ???

It definitely sounds like your issues have to do with Pandora somehow. I just tried mine and seemed to be able to play (unfortunately I have real shatty 3G at my work so the songs are very skippy; but it was playing) - so it's not Pandora in general. Something specific to either your account, your area, or your work connection.

Do you have 3G you can try?

ArchiMark 2010-05-14 20:57

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

Originally Posted by fatalsaint (Post 658904)
It definitely sounds like your issues have to do with Pandora somehow. I just tried mine and seemed to be able to play (unfortunately I have real shatty 3G at my work so the songs are very skippy; but it was playing) - so it's not Pandora in general. Something specific to either your account, your area, or your work connection.

Do you have 3G you can try?

Unfortunately, I don't have 3G...just wifi....maybe I'll try again at home and see if it works there????

fatalsaint 2010-05-14 20:58

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

Originally Posted by ArchiMark (Post 658908)
Unfortunately, I don't have 3G...just wifi....maybe I'll try again at home and see if it works there????

Yeah without some other connection to try I'm not sure where to go from here.. sorry :(. Maybe just try again in a little while. If you can get it to work in the browser; pianobar should work too.

samuch 2010-05-14 20:59

Re: [application] pyPianobar (with pianobar)
 
Been loving this app! One quick question, is there anyway to optimise it so the audio doesn't stutter when the screen fades to lock and when unlocking? I know it's minor but just thought I'd mention it.

fatalsaint 2010-05-14 21:01

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

Originally Posted by samuch (Post 658912)
Been loving this app! One quick question, is there anyway to optimise it so the audio doesn't stutter when the screen fades to lock and when unlocking? I know it's minor but just thought I'd mention it.

This is something with the phone I haven't figured out.. there was some posts earlier from people that this isn't the only app that suffers from that.

It is a tad annoying, I agree. Don't know how to work around it yet though because I don't know what the OS is interrupting when it dims.

ArchiMark 2010-05-15 03:48

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

Originally Posted by fatalsaint (Post 658911)
Yeah without some other connection to try I'm not sure where to go from here.. sorry :(. Maybe just try again in a little while. If you can get it to work in the browser; pianobar should work too.

OK, success!!!

Got home and tried again and voila! Got connected properly to Pandora and quite quickly heard music and saw album art!

Great!!!

Thanks again for all your help today!

meepha12 2010-05-27 00:19

Re: [application] pyPianobar (with pianobar)
 
I glanced through the thread and didnt stumble this, prly just missed it. I just installed this amazing program and when i go to listen if i have my profile on Silent (which i always do) I get no sound. Has anyone else noticed this? All my other music plays fine though. Its not a huge deal though.

fatalsaint 2010-05-27 00:25

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

Originally Posted by meepha12 (Post 681192)
I glanced through the thread and didnt stumble this, prly just missed it. I just installed this amazing program and when i go to listen if i have my profile on Silent (which i always do) I get no sound. Has anyone else noticed this? All my other music plays fine though. Its not a huge deal though.

This is the phone. AFAIK, no third party apps are able to send sound when in the silent profile.

The built-in media player has someway around this that I have not found. I suspect it also has to do with the blip when the screen fades in and out. They are able to somehow get around pulseaudio I'm guessing.

For example: I just tried watching a movie with KMplayer in Silent Profile.. nada. Opened File manager and watched it in the default player: Full sound.

I don't know if anyone has found a way around this yet, but I'll keep my eyes open.

meepha12 2010-05-27 04:18

Re: [application] pyPianobar (with pianobar)
 
Yeah i just came to edit my post as i just installed kmplayer and noticed it did that also. Im so happy though I got pandora working without going to the website and now with using kmplayer i can finally stream iheartradio stations w/o going to that website since i couldnt find an app =D

bazz 2010-05-28 00:57

Re: [application] pyPianobar (with pianobar)
 
Can anyone help me...I'm trying to install this program and get
Conflict with application packages: python2.5-qt4-gui (4.7-maemo7)

Any ideas?

attila77 2010-05-28 06:33

Re: [application] pyPianobar (with pianobar)
 
Do you have PR1.2 ? If not, disable extras-devel before installing.

bazz 2010-05-28 11:35

Re: [application] pyPianobar (with pianobar)
 
Yes I do have PR1.2.
I had to disable extras-devel like you said. Thanks!

fatalsaint 2010-05-28 13:53

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

Originally Posted by bazz (Post 685390)
Yes I do have PR1.2.
I had to disable extras-devel like you said. Thanks!

You have PR1.2 and extras-devel still didn't work?

That's rather strange. Was PyQT updated recently Atilla? Installing worked for me when PR1.2 first came out couple days ago.

attila77 2010-05-28 13:58

Re: [application] pyPianobar (with pianobar)
 
Yes, there is a new version, which has been moved to extras-testing. When it gets to Extras, all these issues should be gone.

biteableniles 2010-06-01 14:21

Re: [application] pyPianobar (with pianobar)
 
Hey fatalsaint,

Thanks for your work on pypianobar, it works rather well and has been one of my most used applications for a while.

Quick question: do you know of a way to modify the buffer time length in pianobar? Although I'm a Pandora One member, I get stuttery playback using the "mp3" setting in pianobar's config over my 3G or 3.5G connection when moving (ie, in a car). Contrast to the official Pandora app on my wife's Cliq over 3G, which has no problems. I'm thinking it's just an issue with the buffer size.

Thanks!

Bratag 2010-06-01 14:23

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

Originally Posted by biteableniles (Post 693888)
Hey fatalsaint,

Thanks for your work on pypianobar, it works rather well and has been one of my most used applications for a while.

Quick question: do you know of a way to modify the buffer time length in pianobar? Although I'm a Pandora One member, I get stuttery playback using the "mp3" setting in pianobar's config over my 3G or 3.5G connection when moving (ie, in a car). Contrast to the official Pandora app on my wife's Cliq over 3G, which has no problems. I'm thinking it's just an issue with the buffer size.

Thanks!

My guess would this would require a change to the source code and a re-issue of the pianobar package.

biteableniles 2010-06-01 15:41

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

Originally Posted by Bratag (Post 693892)
My guess would this would require a change to the source code and a re-issue of the pianobar package.

Shame. I was hoping that pianobar had a command-line set buffer time, but I couldn't find anything.

The Arsonist 2010-06-02 00:42

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

Originally Posted by biteableniles (Post 693888)
Hey fatalsaint,

Thanks for your work on pypianobar, it works rather well and has been one of my most used applications for a while.

Quick question: do you know of a way to modify the buffer time length in pianobar? Although I'm a Pandora One member, I get stuttery playback using the "mp3" setting in pianobar's config over my 3G or 3.5G connection when moving (ie, in a car). Contrast to the official Pandora app on my wife's Cliq over 3G, which has no problems. I'm thinking it's just an issue with the buffer size.

Thanks!

You literally just beat me to it! I was actually wondering if this was possible as well because in congested areas, during rush hour, and just whenever it wants, my playback gets extremely(unusable) choppy. Its still fetching data, but it just takes its sweet time. Is there a way that Pianobar can possibly fetch the data a little bit before the song begins playing? I have no problem waiting for the song, but it's a real headache when it basically teases you by playing a couple of seconds and pausing frequently. I know I'm always asking for something new, but the app is SO close to perfect.

fatalsaint 2010-06-02 05:25

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

Originally Posted by Bratag (Post 693892)
My guess would this would require a change to the source code and a re-issue of the pianobar package.

This is correct.. this is controlled in the upstream pianobar package. It is a big nuisance for me as well since the 3G in my area sucks.. so I've been planning on looking into it but modifying pianobar's source-code isn't something I really wanted to take on.

I imagine that since the upstream developer wrote this originally for the more stable connections of full computers (desktops, laptops, etc) that spotty/crappy 3G connections weren't exactly taken too much into account.

I will probably talk with PromyLOPH and get his response on the matter, and if it's something he's not concerned with (which I wouldn't blame him given that we're a small market) - then I will have to decide if maintaining my own port of pianobar is actually something I want to get into.

ceevee 2010-06-02 23:22

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

Originally Posted by fatalsaint (Post 695205)
It is a big nuisance for me as well since the 3G in my area sucks.. so I've been planning on looking into it but modifying pianobar's source-code isn't something I really wanted to take on.

That would be great because 3G coverage in my area isn't so good either. I listen to Pandora while driving.

Better, longer buffering would be great. Also, might be there a way to restart the stream other than closing and reopening pyPianobar?

Sometimes when I lose 3G coverage, I won't regain 3G for more than 1 minute. This is often way too long for pyPianobar, so I am forced to exit and reopen.


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

vBulletin® Version 3.8.8