Based on MH Play Media, it looks like the only field I would populate is #13 Filename- the others- PK_Device and EntertainArea would be set by wherever we wanted the media played. Songs would not be repeated or queued- the idea would be to just stream, so #117 and #253 are not needed.
As for populating #13 Filename- the authors of Pyxis made it very simple (this is from StreamHandler.py):
print "Starting mplayer..."
stream = stream.replace(' ','') + '_'
now = datetime.datetime.now()
filename = stream + now.strftime("%Y-%m-%d_%H-%M-%S") + '.wav'
mpc = "%s '%s'" % (self.command + filename, url)
mpc = "%s '%s'" % (self.command, url)
log('mpc = %s' % mpc)
And from the Config.py file, the above just feeds the stream to mplayer:
self.config.set('mediaplayer', 'command', '/usr/bin/mplayer')
It seems like a simple script that run "pyxis" and waited for the user to select a channel to import to the prompt at the terminal- then that channel was fed into #13 Filename above, you would have the start to a working Sirius integration.
So, where do I go from here? How do I get LMCE to grab this stream?
Edit 1: If you type in "print mpc" immediately after defining mpc under "else" in the above code, it prints out the actual address of the stream.
Edit 2: You can pass the pyxis python script the stream when you start the program. For example, you can type in
pyxis "espn radio" and the espn stream will automatically start when pyxis loads.