maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2007 / Maemo 3 / Bora (https://talk.maemo.org/forumdisplay.php?f=23)
-   -   XM Radio on N800? (https://talk.maemo.org/showthread.php?t=15773)

combatdoc 2008-07-10 21:37

Re: XM Radio on N800?
 
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


jhdeval 2008-07-10 21:47

Re: XM Radio on N800?
 
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 2008-07-10 21:59

Re: XM Radio on N800?
 
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.

combatdoc 2008-07-19 23:54

Re: XM Radio on N800?
 
Any further word on the GUI?

tsvest 2008-11-04 00:49

Re: XM Radio on N800?
 
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


All times are GMT. The time now is 16:39.

vBulletin® Version 3.8.8