Reply
Thread Tools
Guest | Posts: n/a | Thanked: 0 times | Joined on
#11
I've looked at the XM site. Go here: http://tabletschool.blogspot.com/200...net-radio.html
and save the $9.95/month.
 
Posts: 12 | Thanked: 2 times | Joined on Apr 2008
#12
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.
 

The Following User Says Thank You to grydrgn For This Useful Post:
combatdoc's Avatar
Posts: 204 | Thanked: 29 times | Joined on May 2008
#13
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
__________________
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-07 at 04:00.
 

The Following 3 Users Say Thank You to combatdoc For This Useful Post:
possessedskier's Avatar
Posts: 89 | Thanked: 21 times | Joined on Feb 2008
#14
Thanks combatdoc! The script works great.
 
possessedskier's Avatar
Posts: 89 | Thanked: 21 times | Joined on Feb 2008
#15
Originally Posted by grydrgn View Post
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.
 
Posts: 5 | Thanked: 1 time | Joined on Jun 2008
#16
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.
 

The Following User Says Thank You to jhdeval For This Useful Post:
combatdoc's Avatar
Posts: 204 | Thanked: 29 times | Joined on May 2008
#17
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.
__________________
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
 
Posts: 5 | Thanked: 1 time | Joined on Jun 2008
#18
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's Avatar
Posts: 89 | Thanked: 21 times | Joined on Feb 2008
#19
Originally Posted by jhdeval View Post
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.
 
Posts: 5 | Thanked: 1 time | Joined on Jun 2008
#20
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.
 
Reply

Thread Tools

 
Forum Jump


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