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)

zulu 2008-01-27 17:15

XM Radio on N800?
 
Anyone knows how to make this work on N800 for the XM radio:
http://www.xstreamxm.com/mobile

RychoK 2008-02-16 04:23

Re: XM Radio on N800?
 
I was playing with this recently.
I was trying to change default player to open link thru xmradio website. Actually once or twice the N800 media player was able to play it, but mostly there is an loosing connection error.
The mplayer couldn't recognize stream, kmplayer also couldn't play the stream. When I have copied stream url to kmplayer, there was a log in error.

Now, after adding application/x-mplayer2 mime type to kmplayer desktop file and running update mime database and desktop database, I can play xmradio by directing kmplayer to
"http://www.xstreamxm.com/mobile/stream.asx?email=XM_USERNAME&pass=XM_PASSWORD&chan =4&speed=low"
where you need to give yours email and password and choose the channel.

UAL_Kingpin 2008-04-26 03:44

Re: XM Radio on N800?
 
I am a newb. I don't really understand the instructions. Can someone please write an easy to follow step-by-step instructions on how to make xm radio work on our tablets. Thank you

davige 2008-05-05 13:00

Re: XM Radio on N800?
 
Quote:

Originally Posted by UAL_Kingpin (Post 174866)
I am a newb. I don't really understand the instructions. Can someone please write an easy to follow step-by-step instructions on how to make xm radio work on our tablets. Thank you

Ditto! Please clarify all that jibberish for a newb. When I open www.xstreamxm/mobile on my N810 I get a current Artist, Title, Album for the station I selected but no audio.

codecannon 2008-05-20 20:11

Re: XM Radio on N800?
 
I have put some instructions for the command line here

http://maemo.org/community/wiki/xmradio/

And I am working on porting a gui here

http://www.greentechmobile.com/cgi-bin/wiki.pl?XM_Radio

UAL_Kingpin 2008-05-22 02:04

Re: XM Radio on N800?
 
codecannon
Thanks for all your effort in trying to get xmradio to work for us. I tried following the steps, but I am too much of an idiot and noob to follow along. The only thing I am capable of doing is the one click install. Perhaps XM radio and my N800 were never meant to be together.

possessedskier 2008-06-30 20:48

Re: XM Radio on N800?
 
I have your GUI port working on the N800. Since the GUI doesn't except the normal onscreen keyboard input, I used the onscreen keyboard in Penguinbait's KDE to enter my username and password. I was able to enter the correct username into the GUI without having to edit the .uniXM file. I'll work on updating the channel list and send it to you if you still need it.

grydrgn 2008-07-05 04:19

Re: XM Radio on N800?
 
The standard Xmradio site (www.xmradio.com) works out of the box on Diablo.

FierceDeityLink1 2008-07-05 04:44

Re: XM Radio on N800?
 
http://www.internettablettalk.com/fo...13&postcount=3
http://www.internettablettalk.com/fo...14&postcount=4
http://www.internettablettalk.com/fo...15&postcount=3

Ok thanks.

possessedskier 2008-07-07 01:08

Re: XM Radio on N800?
 
Quote:

Originally Posted by grydrgn (Post 199512)
The standard Xmradio site (www.xmradio.com) works out of the box on Diablo.

It doesn't work from the web browser in Diablo for me. I've tried it with and without the mplayer plugin installed.

wsiebert 2008-07-07 02:29

Re: XM Radio on N800?
 
I've looked at the XM site. Go here: http://tabletschool.blogspot.com/200...net-radio.html
and save the $9.95/month.

grydrgn 2008-07-07 02:34

Re: XM Radio on N800?
 
Hummm not sure what would be different. It's the first thing I did after I flashed to Diablo. Once you were logged in and picked the station did you click on the musical note in the upper right hand corner? When I do that it launches mplayer and starts streaming. Previous to Diablo this timed out for me 99% of the time.

combatdoc 2008-07-07 03:31

Re: XM Radio on N800?
 
You don't even need to load xmradio.com Even under Diablo the site itself is a little sluggish. I have just run a nice little script in Xterm since I got my n810. Less overhead, seems to work better.

Anyway, if anyone is interested here's the script. I built it for my own use, so its not very sophisticated. It will take any channel for input, I just listed my commonly used ones for my own edification.

You need mplayer to get it to work as it just basically passes variables to an mplayer command:

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
                               
if ["$REPLY" ==""]; then
echo "I need a Channel to listen to."
exit

else
mplayer -vo null -cache 256 -playlist "http://www.xstreamxm.com/mobile/stream.asx?email=$USER&pass=$PASS&chan=$REPLY&speed=$SPEED"
fi
exit


possessedskier 2008-07-08 19:21

Re: XM Radio on N800?
 
Thanks combatdoc! The script works great.

possessedskier 2008-07-10 03:06

Re: XM Radio on N800?
 
Quote:

Originally Posted by grydrgn (Post 200055)
Hummm not sure what would be different. It's the first thing I did after I flashed to Diablo. Once you were logged in and picked the station did you click on the musical note in the upper right hand corner? When I do that it launches mplayer and starts streaming. Previous to Diablo this timed out for me 99% of the time.


I uninstalled the mplayer plugin again and tried clicking on the musical note. It opened and played in media player. Thanks for the help.

jhdeval 2008-07-10 04:59

Re: XM Radio on N800?
 
Code:

#!/bin/python
from subprocess import Popen,PIPE
import string

USER = "username"
PASS = "password"

print "XM Radio Player Script (^C Exits)"
print "XM Radio Favorites"

print "202 - The Virus XL"
print "48 - Squizz"
print "83 - Chrome"
print "150 - XM Comedy XL"

REPLY = raw_input("XM Radio Channel? ")

SPEED = raw_input("Speed/Quality? (low or high): ")

if REPLY == "":
        print "I need a Channel to listen to."
else:
        cmd = 'mplayer '
        cmd = cmd + '-vo null '
        cmd = cmd + '-cache 256 '
        cmd = cmd + '-playlist "http://www.xstreamxm.com/mobile/stream.asx?'
        cmd = cmd + 'email=' + USER + '&'
        cmd = cmd + 'pass=' + PASS + '&'
        cmd = cmd + 'chan=' + REPLY + '&'
        cmd = cmd + 'speed=' + SPEED + '"'
        print "Opening channel " + REPLY
        p = Popen(cmd, shell=True, stdout=PIPE, stderr=PIPE)
        out = string.join(p.stdout.readlines())
        outerr = string.join(p.stderr.readlines())
        print out
        print outerr

This may seem silly but I could not get the shell script to run so I went ahead and rewrote his script in python. It is a little messy but it makes it easier to read.

combatdoc 2008-07-10 16:52

Re: XM Radio on N800?
 
I'll have to give that one a try.

BTW, I assume you ran it via sh? ie "sh xm.sh"
It is a shell script afterall.

jhdeval 2008-07-10 19:06

Re: XM Radio on N800?
 
Yeah I saw it was a shell script and ran it as such. It would fail
Code:

if ["$REPLY" ==""]; then
on the then for some reason. I tried it several times and could not get it to run. I want to write a Hildon interface with a database that includes all the channels.

possessedskier 2008-07-10 19:11

Re: XM Radio on N800?
 
Quote:

Originally Posted by jhdeval (Post 201423)
Yeah I saw it was a shell script and ran it as such. It would fail
Code:

if ["$REPLY" ==""]; then
on the then for some reason. I tried it several times and could not get it to run.

I had this problem until I edited the script to add my username and password.

jhdeval 2008-07-10 21:33

Re: XM Radio on N800?
 
I decided to rewrite it in python. I had my username and password in there as well. My plan is actually to include a full channel list and add a hildon interface as well. I think combatdoc had a great idea but I want to make it easier. Possibly submit it to maemo.org as well.

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 23:18.

vBulletin® Version 3.8.8