Active Topics

 


Reply
Thread Tools
combatdoc's Avatar
Posts: 204 | Thanked: 29 times | Joined on May 2008
#21
If I knew GTK I would have genn'ed up a user interface, but alas I am no programmer.
Anyway, my suggeston would be to have the GUI read a text file/conf file for the channel list (Maybe all parameters in a .conf?)

That way when the channels change around its a simple user edit to get the channels right again.

BTW, I tried a couple different script combos, but it never errored out and was unusable. Who knows?

Anyway, you can change the script as follows. The line that was giving you problems is nothing but a failsafe I put in. As long as you give it a channel to play, the script runs just fine.

Code:
#!/bin/sh

USER=user@email.account
PASS=password

echo "XM Radio Player Script (^C Exits)"
echo "XM Radio Favorites"
echo "42 - XM Liquid Metal"
echo "43 - XMU"
echo "44 - Fred"
echo "45 - Starbucks Cafe"
echo "47 - Ethel"
echo "48 - Squizz"
echo "52 - The Verge"
echo "53 - Fungus"
echo "54 - Lucy"
echo  "XM Radio Channel?"
read REPLY

echo "Speed/Quality? <low, high>"
read SPEED
                                
mplayer -vo null -cache 256 -playlist "http://www.xstreamxm.com/mobile/stream.asx?email=$USER&pass=$PASS&chan=$REPLY&speed=$SPEED"

exit
__________________
Doc, 68W3P, AAS, NREMT-P
Far From Perfect
Mobile Version (Under Dev, Please Comment)
Nokia n810 Diablo
(After many years of Palm and Windows PDAs)
"So Shut Up, Live, Travel, Adventure, Bless, And Don't Be Sorry." - Jack Kerouac

Last edited by combatdoc; 2008-07-10 at 21:46.
 
Posts: 5 | Thanked: 1 time | Joined on Jun 2008
#22
That may not be a bad idea. I haven't written any apps for maemo yet so I am treading into new water with this. I know python and I know gtk but hildon is a bit different.
 
combatdoc's Avatar
Posts: 204 | Thanked: 29 times | Joined on May 2008
#23
There was an app being ported in the wiki, but it had problems and was out of date. I think a simple GUI front-end for Mplayer made directly for Maemo would be a better solution and lighter weight.

Just my two cents.
__________________
Doc, 68W3P, AAS, NREMT-P
Far From Perfect
Mobile Version (Under Dev, Please Comment)
Nokia n810 Diablo
(After many years of Palm and Windows PDAs)
"So Shut Up, Live, Travel, Adventure, Bless, And Don't Be Sorry." - Jack Kerouac
 
combatdoc's Avatar
Posts: 204 | Thanked: 29 times | Joined on May 2008
#24
Any further word on the GUI?
__________________
Doc, 68W3P, AAS, NREMT-P
Far From Perfect
Mobile Version (Under Dev, Please Comment)
Nokia n810 Diablo
(After many years of Palm and Windows PDAs)
"So Shut Up, Live, Travel, Adventure, Bless, And Don't Be Sorry." - Jack Kerouac
 
tsvest's Avatar
Posts: 35 | Thanked: 1 time | Joined on Feb 2008
#25
Sorry for asking, but how do you registered with this site?
When I go to www.xmradio.com I get an error:

An error occurred while processing your request.

Reference #97.3fd47a5c.1225759553.74d45f6b
__________________
N800, OS2008
Greetings from Bulgaria
 
Reply


 
Forum Jump


All times are GMT. The time now is 01:57.