10-28-2021, 12:29 AM
(This post was last modified: 09-06-2024, 04:06 PM by jmperagine.)
Install successful on v.9.0.8 RPI 4B 4GB
Install successful on v.9.0.3 RPI 4B 4GB and updated to v.9.0.8.
This was successful on 8.3.7 64bit running on a RPI 4B 4GB.
Install as root. A shout out to Kent for figuring out 95% of this!
Step 1) for MoOde v8.3.7 SSH into your machine and install the sxm-player.
Step 1) for MoOde V9.0.8 SSH into your machine and install the 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)
There is no trailing '&' in the start command.
3) As superuser, copy this file to /etc/systemd/system/sxm-player.service
4) Check the resulting file has ownership and permissions as shown here.
5) Make systemd aware of this service and then enable it
You should see a response like the following
6) Now reboot the moOde player. Please note: A second reboot may be required.
7) Check the status of the service.
If all went well, you'll see something like this.
* 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
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!
Install successful on v.9.0.3 RPI 4B 4GB and updated to v.9.0.8.
This was successful on 8.3.7 64bit running on a RPI 4B 4GB.
Install as root. A shout out to Kent for figuring out 95% of this!
Step 1) for MoOde v8.3.7 SSH into your machine and install the sxm-player.
Code:
sudo pip3 install sxm-player
Step 1) for MoOde V9.0.8 SSH into your machine and install the sxm-player.
Code:
sudo pip3 install sxm-player --break-system-packages
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
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 this.
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!