maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   [application] pyRadio (Pandora) (https://talk.maemo.org/showthread.php?t=56036)

fatalsaint 2011-08-08 04:48

Re: [application] pyRadio (Pandora)
 
Quote:

Originally Posted by jsharper (Post 1063037)
Code:

echo -n IM WATCHING YOU > /sys/class/i2c-adapter/i2c-2/2-0063/rds_radio_text

I'll try this out. Would be an easy enough code.

rm_you 2011-08-08 12:14

Re: [application] pyRadio (Pandora)
 
Quote:

Originally Posted by fatalsaint (Post 1065821)
I'll try this out. Would be an easy enough code.

Well, there's a little more to it... You'll want it to do some intelligent things, like scroll text that doesn't fit (some set amount of times, then stop scrolling) which requires you to rotate your string manually and continually send it with delays, IIRC. You'll want to write a whole class to handle all the RDS stuff. I would help if I still had a radio with RDS support (for some reason my 2011 car doesn't have RDS).

Addison 2011-08-11 00:52

Re: [application] pyRadio (Pandora)
 
One small request Saint.

Perhaps have an option for the backlight to remain lit, much like Mplayer when using this. :)


Something like:

gconftool-2 --type int --set /apps/osso/applet/osso-applet-display/turn_off_display 6000000
gconftool-2 --type int --set /apps/osso/applet/osso-applet-display/brightness_period 6000000
gconftool-2 --type int --set /system/osso/dsm/display/display_dim_timeout 6000000
gconftool-2 --type int --set /system/osso/dsm/display/display_blank_timeout 6000000

Peace.

Addison 2011-08-11 07:51

Re: [application] pyRadio (Pandora)
 
Okay. Well, this is and was pretty much everything that I was able to find on the net, Saint.

http://www.iconspedia.com/pack/the-spherical-2230/
http://dryicons.com/free-icons/previ...ssy-icons-set/
http://www.psdgraphics.com/buttons/m...ntrol-buttons/
http://icons.mysitemyway.com/amber-g...e-icons-media/
http://www.freevectors.org/catalog/b...r-buttons.html

None of them would really stand out against a black background though.

All of the good stuff seems to be copyrighted. :(

Anyway, the only other thing that I can think of is if you wanted to go completely abstract with the icons and then explain what each of those graphics mean to us stupid idgits with your new super release. :)

Rainbows. :)

rm_you 2011-08-15 13:44

Re: [application] pyRadio (Pandora)
 
Poke wazd on IRC and see if he'd make some quick buttons for you. :)
I'll ask him if I see him around.

singpolyma 2011-08-16 22:49

Re: [application] pyRadio (Pandora)
 
Is there any plan to add support for proxies, especially SOCKS proxies, to this application?

slvr32 2011-08-25 03:25

Re: [application] pyRadio (Pandora)
 
Quote:

Originally Posted by singpolyma (Post 1071474)
Is there any plan to add support for proxies, especially SOCKS proxies, to this application?

FYI, I have nothing to do with pyRadio development, and I have next to zero python experience, but I was just looking at some of the pyRadio source @ /opt/pyRadio, and noticed (I think) that 'urllib2' is being used for the http requests, rather than something like QNetworkManager (or QNetworkAccessManager???).

And I don't want to pollute this thread with off-topic tangents, but I've done just a bit of Qt/C++ development lately, which is just loosely related because my current code is using QUrl, QHttp, signals, slots, etc... and I just discovered QNetworkManager by accident, when I was looking into Diablo SDK network issues.

In any case, I just have the vaguest idea that QNetworkManager exposes some amount of proxy information, or that you might be able to check for a proxy, but I haven't gotten around to rewriting any of my http/network code (working fine on several platforms w/Qt 4.5 - 4.7, so the Diablo SDK tangent was mostly a red herring at the moment), so I can't say I'm familiar with implementation firsthand (yet).

I think that the urllib2 library is sort of a convenience for avoiding some of the typical signals/slots stuff with some of the other Qt network classes, but I'm guessing that fatalsaint may have more input on the topic.

Edit: Looks like urllib2 (depending on version?) may have proxy support...

http://www.velocityreviews.com/forum...and-https.html

http://tech.groups.yahoo.com/group/l...g/message/4208

AgentZ 2011-08-29 23:55

Re: [application] pyRadio (Pandora)
 
would it be possible to pull/scrape some artist info from a double tap on the cover art? Meaning, a small history of the artist or song your listening to? If that makes any sense.

slvr32 2011-08-30 21:12

Re: [application] pyRadio (Pandora)
 
2 Attachment(s)
Please excuse the noise if this contribution looks/sounds annoying, but I was just playing around with adding (just cosmetics, for now) a proxy option :)

I'm not sure I accounted for everything, and I noticed that this compresses the current horizontal layouts in the 'vbox' (QVBoxLayout) a bit, but I'm not sure that can be avoided with the QDialog for settings.

And the following page looks interesting, but I'm not sure how I might go about *testing* any proxy handling code if I were to attempt to add real proxy handling.

http://docs.python.org/release/2.4.4...-examples.html

handaxe 2011-09-22 18:38

Re: [application] pyRadio (Pandora)
 
anyone else having pandora auto-login failing?


All times are GMT. The time now is 09:02.

vBulletin® Version 3.8.8