Thank you for your donation!


Instruction Guide How to setup SiriusXM
#1
SiriusXM install procedure. Install as root.

Code:
sudo pip3 install sxm-player
sudo pip3 install sxm  

Update idna to latest version

Code:
sudo pip3 install anyio

Edit etc/rc.local

Code:
cd /etc 
sudo nano rc.local  

Add the sxm code at the bottom of the file, save and reboot

Code:
# moOde startup and job processor daemon
/var/www/command/worker.php > /dev/null 2>&1

# start the SiriusXM proxy
/usr/local/bin/sxm-player -U MyUsername -P MyPassword &

exit 0 

Save and reboot the system.

This will start an HTTP server that a player that supports HLS, you can access a SXM channel at http://127.0.0.1:9999/channel.m3u8 where “channel” is the channel name, ID, or Sirius channel number. Some channels must be setup using the name of the channel, other can be setup using the name or the channel id number

You can access them by setting up stations
Examples:
First Wave can only be setup using the name
http://127.0.0.1:9999/firstwave.m3u8

Tom Petty Radio can be setup using the name or the channel ID
https://127.0.0.1:9999/tom%20petty%20radio.m3u8
http://127.0.0.1:9999/9407.m3u8

Thank you Kent!
Reply
#2
@jmperagine

It's good to hear you were successful.

I was a little puzzled, though, that you have four installation steps where I had been able to get the proxy running after only the first step.

This afternoon I looked inside the packages. It turns out that The current sxm-player package in the Python Package Index (PyPI) [1] has as prerequisites sxm>=0.2.8 and anyio==3.*

Hence, when one executes the sudo pip3 install sxm-player we see in the command output that sxm-player 0.2.5 gets installed and so do sxm 0.2.8 and anyio 3.3.3. It does no harm to install the latter packages again separately but it's redundant.

With that out of the way, what's with idna? Well, it turns out anyio 3.3.3 has a prerequisite of its own, namely idna >=2.8

Here it gets tricky: pip3 discovers there is already present idna 2.6 but reports it is unable to update it to the version currently available in the PyPI, idna 3.3 because of missing information.

It would seem in my tests that sxm-player/anyio don't use idna so in some sense it doesn't matter. (That's not surprising since SiriusXM is a USA/Canada service so international domain names don't come into play.)

Digging deeper we find that python-idna and python3-idna have already been installed in moOde, not by pip/pip3 but by apt as  prereqs for other packagtes including upmpdcli.

My solution is to leave existing versions alone and force pip3 to update the Python3 version of idna to the latest version as well, which seems to work. 

So, in place of your four steps, I believe the following two are sufficient.

Code:
sudo pip3 install -U idna
sudo pip3 install sxm-player


Regards,
Kent

[1] aka the Cheeseshop for you Monty Python fans.
Reply
#3
fromage  bleu ?

No, sorry not delivered due to Covid restrictions....

Maybe a little Sirius X(tra)-M(ature) ? or perhaps the Cherni vit ?

Hang about guv'nor .... I'll just check out the back.....  wait, I've just remembered....we've a very rare Norwegian Blue !

What's that like then...?

Oh, a little feathered around the edges but solid inside !!!

Reply
#4
(11-04-2021, 05:56 AM)DRONE7 Wrote: fromage  bleu ?

No, sorry not delivered due to Covid restrictions....

Maybe a little Sirius X(tra)-M(ature) ? or perhaps the Cherni vit ?

Hang about guv'nor .... I'll just check out the back.....  wait, I've just remembered....we've a very rare Norwegian Blue !

What's that like then...?

Oh, a little feathered around the edges but solid inside !!!

Remarkable bird, the Norwegian Blue, idn't it. Beautiful plummage.

If the Pythons could make wild seques, so can I.

Hard to believe the Flying Circus first aired here in the USA ca 1974. I was instantly hooked and still remember those early sketches virtually word for word. My significant other has sworn me not to recite them to her. I don't hit her with Cook and Moore sketches either (who could forget Sir Streeb-Greebling teaching ravens to fly underwater?). I regret having donated my imported LPs years ago.

Regards,
Kent
Reply
#5
Say no mor' Govn'r. The next challenge is getting the artist and song title to display.
Reply


Forum Jump: