The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Instruction Guide How to setup SiriusXM - UPDATED DEC. 2023
#1
February 2024
It's working again.

New Updated SiriusXM install procedure. December 2023.
This was successful on MoOde 8.3.7 64bit running on a RPI 4B 4GB.
Install as root. A shout out to Kent for figuring out 95% of this!


1) SSH into your machine and install the sxm-player.

Code:
sudo pip3 install sxm-player



2) Use your favorite editor, to create a file named sxm-player.service in the default user's (user pi in following example) home directory on the moOde player. The content of this file should be (note that this content is case sensitive)

Code:
[Unit]
Description=sxm-player
After=network-online.target
Requires=network-online.target

[Service]
Type=simple
ExecStart=/usr/local/bin/sxm-player -U your-SXM-username -P your-SXM-password

[Install]
WantedBy=multi-user.target
There is no trailing '&' in the start command.


3) As superuser, copy this file to /etc/systemd/system/sxm-player.service
Code:
sudo cp sxm-player.service /etc/systemd/system/sxm-player.service


4) Check the resulting file has ownership and permissions as shown here.
Code:
pi@moode:~ $ ls -l /etc/systemd/system/sxm-player.service
-rw-r--r-- 1 root root 208 Dec  2 18:42 /etc/systemd/system/sxm-player.service


5) Make systemd aware of this service and then enable it
Code:
sudo systemctl daemon-reload
sudo systemctl enable sxm-player

You should see a response like the following
Code:
pi@moode:~ $ sudo systemctl daemon-reload
pi@moode:~ $ sudo systemctl enable sxm-player
Created symlink /etc/systemd/system/multi-user.target.wants/sxm-player.service → /etc/systemd/system/sxm-player.service.


6) Now reboot the moOde player. Please note: A second reboot may be required.


7) Check the status of the service.
Code:
systemctl status sxm-player

If all went well, you'll see something like
Code:
pi@moode:~ $ systemctl status sxm-player
● sxm-player.service - sxm-player
   Loaded: loaded (/etc/systemd/system/sxm-player.service; enabled; vendor preset: enabled)
   Active: active (running) since ...

* the actual filename is arbitrary but its extension *must* be .service

* one can simply create and edit the file in the target directory as superuser


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

For a full list of channels
Code:
sxm -l


8) 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
http://127.0.0.1:9999/tom%20petty%20radio.m3u8
http://127.0.0.1:9999/9407.m3u8

Thank you Kent!
Reply


Messages In This Thread
How to setup SiriusXM - UPDATED DEC. 2023 - by jmperagine - 10-28-2021, 12:29 AM
RE: How to setup SiriusXM - by TheOldPresbyope - 11-03-2021, 10:22 PM
RE: How to setup SiriusXM - by DRONE7 - 11-04-2021, 05:56 AM
RE: How to setup SiriusXM - by TheOldPresbyope - 11-04-2021, 01:49 PM
RE: How to setup SiriusXM - by jmperagine - 11-05-2021, 07:58 PM

Forum Jump: