10-27-2021, 02:01 AM
(This post was last modified: 10-27-2021, 02:04 AM by jmperagine.)
This is a new clean build of Moode 7.4.1
After booting, I changed the default python to 3.7, updated anyio to 3.3.4, installed sxm-player0.2.5 and sxm0.2.8
CODE:
pi@moode:/ $ pip3 list | grep sxm
sxm 0.2.8
sxm-player 0.2.5
For some reason, sxm keeps getting installed in a hidden directory.
CODE:
pi@moode:~/.local/bin $ ls
coloredlogs dotenv httpx humanfriendly iptest iptest3 ipython ipython3 normalizer pygmentize sxm sxm-player
CODE:
pi@moode:/ $ which sxm-player
/home/pi/.local/bin/sxm-player
end lines of rc.local
CODE:
# moOde startup and job processor daemon
/var/www/command/worker.php > /dev/null 2>&1
#Start the SXM Proxy
/home/pi/.local/bin/sxm-player -U MyUsername -P MyPassword
exit 0
(If I use your path /usr/local/bin/sxm-player the system hangs at boot)
I added a bunch of directories to the path hopping that was it.
CODE:
pi@moode:/etc $ echo $PATH
/home/pi/.local/bin:/home/pi/.local/lib/python3.7/site-packages:/home/pi/.local/bin:/etc:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
CODE:
pi@moode:/ $ moodeutl -l
20211026 211306 worker: -- Start
20211026 211306 worker: Successfully daemonized
20211026 211306 worker: Integrity check (passed)
20211026 211307 worker: File check (OK)
20211026 211307 worker: Session vacuumed
20211026 211307 worker: Session loaded
20211026 211307 worker: Debug logging (OFF)
20211026 211307 worker: -- Audio debug
20211026 211307 worker: ALSA cards: (0:Headphones | 1:empty | 2:empty | 3:empty
20211026 211307 worker: MPD config: (0i Headphone jack | mixerHeadphone) | card:0)
20211026 211307 worker: ALSA mixer actual (Headphone)
20211026 211307 worker: ALSA Headphone volume set to (0%)
20211026 211307 worker: -- System
20211026 211308 worker: Host (moode)
20211026 211309 worker: moOde (7.4.1 2021-10-02)
20211026 211309 worker: RaspiOS (10.6)
20211026 211309 worker: Kernel (5.4.77-v7l+ #1371)
20211026 211309 worker: Platform (Pi-4B 1.4 4GB)
20211026 211309 worker: ARM arch (armv7l, 32-bit kernel)
20211026 211309 worker: MPD ver (0.22.11_p0x3)
20211026 211309 worker: CPU gov (ondemand)
20211026 211309 worker: USB boot not available
20211026 211309 worker: File system not expanded yet
20211026 211309 worker: HDMI port off
20211026 211309 worker: -- Network
20211026 211309 worker: eth0 exists
20211026 211309 worker: eth0 address not assigned
20211026 211309 worker: wlan0 exists
20211026 211309 worker: wifi country (US)
20211026 211309 worker: wlan0 trying SSID (ENZO)
20211026 211309 worker: IP addr (192.168.1.209)
20211026 211309 worker: Netmask (255.255.255.0)
20211026 211309 worker: Gateway (192.168.1.1)
20211026 211309 worker: Pri DNS (192.168.1.1)
20211026 211309 worker: Domain (myfiosgateway.com)
20211026 211309 worker: Pi integrated wlan0 power save disabled
20211026 211309 worker: -- Audio config
20211026 211309 worker: MPD conf update skipped (USB device)
20211026 211309 worker: ALSA card number (0)
20211026 211309 worker: MPD audio output (Pi Headphone jack)
20211026 211309 worker: Audio formats (U8, S16_LE)
20211026 211309 worker: ALSA mixer name (Headphone)
20211026 211309 worker: MPD mixer type (software)
20211026 211309 worker: Hdwr volume controller exists
20211026 211309 worker: Max ALSA volume (100%)
20211026 211309 worker: ALSA output mode (Default: plughw)
20211026 211309 worker: ALSA loopback (Off)
20211026 211309 worker: Reset renderer active flags
20211026 211309 worker: CamillaDSP (off)
20211026 211309 worker: -- MPD startup
20211026 211309 worker: MPD started
20211026 211310 worker: MPD accepting connections
20211026 211310 worker: MPD output 1 ALSA Default (on)
20211026 211310 worker: MPD output 2 ALSA Bluetooth (off)
20211026 211310 worker: MPD output 3 HTTP Server (off)
20211026 211310 worker: MPD crossfade (off)
20211026 211310 worker: MPD ignore CUE files (yes)
20211026 211310 worker: -- Feature availability
20211026 211310 worker: Source select (available)
20211026 211310 worker: Source select (source: MPD)
20211026 211310 worker: Source select (output: Pi Headphone jack)
20211026 211310 worker: Bluetooth (available)
20211026 211310 worker: Airplay renderer (available)
20211026 211310 worker: Spotify renderer (available)
20211026 211310 worker: Squeezelite (available)
20211026 211310 worker: RoonBridge renderer (not installed)
20211026 211310 worker: Multiroom sender (available)
20211026 211310 worker: Multiroom receiver (available)
20211026 211310 worker: UPnP renderer (available)
20211026 211310 worker: DLNA server (available)
20211026 211310 worker: UPnP browser (available)
20211026 211310 worker: GPIO button handler (available: started)
20211026 211310 worker: Stream recorder (n/a)
20211026 211310 worker: -- Music sources
20211026 211310 worker: USB sources (none attached)
20211026 211310 worker: NAS and UPnP sources (none configured)
20211026 211310 worker: -- Other
20211026 211310 worker: USB volume knob (Off)
20211026 211310 worker: LCD updater engine started
20211026 211310 worker: Shellinabox SSH started
20211026 211310 worker: USB auto-mounter (udisks-glue)
20211026 211310 worker: LED0 (On)
20211026 211310 worker: LED1 (On)
20211026 211310 worker: Saved MPD vol level (0)
20211026 211310 worker: Preamp volume level (0)
20211026 211310 worker: MPD volume level (34) restored
20211026 211310 worker: ALSA Headphone volume (100%)
20211026 211310 worker: Auto-play (Off)
20211026 211311 worker: LocalUI started
20211026 211311 worker: Maintenance interval (3 hours)
20211026 211311 worker: Screen saver activation (Never)
20211026 211311 worker: Session permissions (OK)
20211026 211311 worker: Watchdog started
20211026 211311 worker: Ready
pi@moode:/ $
still can't get it to load, the system no longer hangs on boot, but and error does scroll by.
CODE:
[ OK ] Started /etc/rc.local Compatibillity.
22.126407] rc.local[524]: /etc/rc.local: 32: /etc/rc.local: /home/pi/.local/bin/sxm-player: not
found
[ OK ] Started Getty on tty1.
Is there another way to load sxm post boot?
Possibly a shell script that gets run after all the other boot processes run?
After booting, I changed the default python to 3.7, updated anyio to 3.3.4, installed sxm-player0.2.5 and sxm0.2.8
CODE:
pi@moode:/ $ pip3 list | grep sxm
sxm 0.2.8
sxm-player 0.2.5
For some reason, sxm keeps getting installed in a hidden directory.
CODE:
pi@moode:~/.local/bin $ ls
coloredlogs dotenv httpx humanfriendly iptest iptest3 ipython ipython3 normalizer pygmentize sxm sxm-player
CODE:
pi@moode:/ $ which sxm-player
/home/pi/.local/bin/sxm-player
end lines of rc.local
CODE:
# moOde startup and job processor daemon
/var/www/command/worker.php > /dev/null 2>&1
#Start the SXM Proxy
/home/pi/.local/bin/sxm-player -U MyUsername -P MyPassword
exit 0
(If I use your path /usr/local/bin/sxm-player the system hangs at boot)
I added a bunch of directories to the path hopping that was it.
CODE:
pi@moode:/etc $ echo $PATH
/home/pi/.local/bin:/home/pi/.local/lib/python3.7/site-packages:/home/pi/.local/bin:/etc:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
CODE:
pi@moode:/ $ moodeutl -l
20211026 211306 worker: -- Start
20211026 211306 worker: Successfully daemonized
20211026 211306 worker: Integrity check (passed)
20211026 211307 worker: File check (OK)
20211026 211307 worker: Session vacuumed
20211026 211307 worker: Session loaded
20211026 211307 worker: Debug logging (OFF)
20211026 211307 worker: -- Audio debug
20211026 211307 worker: ALSA cards: (0:Headphones | 1:empty | 2:empty | 3:empty
20211026 211307 worker: MPD config: (0i Headphone jack | mixerHeadphone) | card:0)
20211026 211307 worker: ALSA mixer actual (Headphone)
20211026 211307 worker: ALSA Headphone volume set to (0%)
20211026 211307 worker: -- System
20211026 211308 worker: Host (moode)
20211026 211309 worker: moOde (7.4.1 2021-10-02)
20211026 211309 worker: RaspiOS (10.6)
20211026 211309 worker: Kernel (5.4.77-v7l+ #1371)
20211026 211309 worker: Platform (Pi-4B 1.4 4GB)
20211026 211309 worker: ARM arch (armv7l, 32-bit kernel)
20211026 211309 worker: MPD ver (0.22.11_p0x3)
20211026 211309 worker: CPU gov (ondemand)
20211026 211309 worker: USB boot not available
20211026 211309 worker: File system not expanded yet
20211026 211309 worker: HDMI port off
20211026 211309 worker: -- Network
20211026 211309 worker: eth0 exists
20211026 211309 worker: eth0 address not assigned
20211026 211309 worker: wlan0 exists
20211026 211309 worker: wifi country (US)
20211026 211309 worker: wlan0 trying SSID (ENZO)
20211026 211309 worker: IP addr (192.168.1.209)
20211026 211309 worker: Netmask (255.255.255.0)
20211026 211309 worker: Gateway (192.168.1.1)
20211026 211309 worker: Pri DNS (192.168.1.1)
20211026 211309 worker: Domain (myfiosgateway.com)
20211026 211309 worker: Pi integrated wlan0 power save disabled
20211026 211309 worker: -- Audio config
20211026 211309 worker: MPD conf update skipped (USB device)
20211026 211309 worker: ALSA card number (0)
20211026 211309 worker: MPD audio output (Pi Headphone jack)
20211026 211309 worker: Audio formats (U8, S16_LE)
20211026 211309 worker: ALSA mixer name (Headphone)
20211026 211309 worker: MPD mixer type (software)
20211026 211309 worker: Hdwr volume controller exists
20211026 211309 worker: Max ALSA volume (100%)
20211026 211309 worker: ALSA output mode (Default: plughw)
20211026 211309 worker: ALSA loopback (Off)
20211026 211309 worker: Reset renderer active flags
20211026 211309 worker: CamillaDSP (off)
20211026 211309 worker: -- MPD startup
20211026 211309 worker: MPD started
20211026 211310 worker: MPD accepting connections
20211026 211310 worker: MPD output 1 ALSA Default (on)
20211026 211310 worker: MPD output 2 ALSA Bluetooth (off)
20211026 211310 worker: MPD output 3 HTTP Server (off)
20211026 211310 worker: MPD crossfade (off)
20211026 211310 worker: MPD ignore CUE files (yes)
20211026 211310 worker: -- Feature availability
20211026 211310 worker: Source select (available)
20211026 211310 worker: Source select (source: MPD)
20211026 211310 worker: Source select (output: Pi Headphone jack)
20211026 211310 worker: Bluetooth (available)
20211026 211310 worker: Airplay renderer (available)
20211026 211310 worker: Spotify renderer (available)
20211026 211310 worker: Squeezelite (available)
20211026 211310 worker: RoonBridge renderer (not installed)
20211026 211310 worker: Multiroom sender (available)
20211026 211310 worker: Multiroom receiver (available)
20211026 211310 worker: UPnP renderer (available)
20211026 211310 worker: DLNA server (available)
20211026 211310 worker: UPnP browser (available)
20211026 211310 worker: GPIO button handler (available: started)
20211026 211310 worker: Stream recorder (n/a)
20211026 211310 worker: -- Music sources
20211026 211310 worker: USB sources (none attached)
20211026 211310 worker: NAS and UPnP sources (none configured)
20211026 211310 worker: -- Other
20211026 211310 worker: USB volume knob (Off)
20211026 211310 worker: LCD updater engine started
20211026 211310 worker: Shellinabox SSH started
20211026 211310 worker: USB auto-mounter (udisks-glue)
20211026 211310 worker: LED0 (On)
20211026 211310 worker: LED1 (On)
20211026 211310 worker: Saved MPD vol level (0)
20211026 211310 worker: Preamp volume level (0)
20211026 211310 worker: MPD volume level (34) restored
20211026 211310 worker: ALSA Headphone volume (100%)
20211026 211310 worker: Auto-play (Off)
20211026 211311 worker: LocalUI started
20211026 211311 worker: Maintenance interval (3 hours)
20211026 211311 worker: Screen saver activation (Never)
20211026 211311 worker: Session permissions (OK)
20211026 211311 worker: Watchdog started
20211026 211311 worker: Ready
pi@moode:/ $
still can't get it to load, the system no longer hangs on boot, but and error does scroll by.
CODE:
[ OK ] Started /etc/rc.local Compatibillity.
22.126407] rc.local[524]: /etc/rc.local: 32: /etc/rc.local: /home/pi/.local/bin/sxm-player: not
found
[ OK ] Started Getty on tty1.
Is there another way to load sxm post boot?
Possibly a shell script that gets run after all the other boot processes run?