Thank you for your donation!


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


Solved: 9.3.7: BASH script that runs after moOde startup completes
#1
I've configured moOde (mpd), that when I boot it, it automatically starts playing the radio station I was listening to, before the last shutdown. Same for playlists on my NAS.

It looks like in this set-up, it doesn't play the "welcome" tune after start-up?
Reply
#2
(06-27-2025, 07:16 PM)ils1974 Wrote: It looks like in this set-up, it doesn't play the "welcome" tune after start-up?

Because, maybe, you have not set it up to? This is a brand new thing in the upcoming 9.3.7, but it could not be enabled by default.

P.S.
I seem to remember that moOde DOES resume playback from where you left it at, after a reboot; again, if properly told to do so.
Reply
#3
Before posting, I indeed enabled it Smile
Reply
#4
If the ready script is working correctly there should be entries in the moode log for it and the ready chime track should be at the end of the Queue.

Code:
20250627 135019 worker: --
20250627 135019 worker: -- Startup complete
20250627 135019 worker: --
20250627 135019 worker: Mount monitor:    started
20250627 135019 worker: Radio monitor:    off
20250627 135019 worker: Watchdog monitor: started
20250627 135019 worker: Responsiveness:   Default
20250627 135019 worker: Ready
20250627 135019 ready-script: Started
20250627 135019 ready-script: Wait 3 seconds...
20250627 135022 ready-script: Play OSDISK/System Sounds/ReadyChime.flac
20250627 135022 ready-script: Finished
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
(06-27-2025, 08:02 PM)ils1974 Wrote: Before posting, I indeed enabled it Smile

Needless to say, you rebooted, and checked it, right?
Be aware, that MPD has to know the file; the file itself has to be part of your library; so that a LIBRARY UPDATE needs to be done, for this to work.
One more thing: all the devices in the audio chain must be working, so that if your amp, for instance, takes longer to be ready to play than the Pi needs to achieve startup-script-run level, of course you won't hear anything...

Just clues, as I do not know your setup, that is.
Reply
#6
The new ready script and the need to run Update library to get the ReadyChime track added to MPD database is stated in the 9.3.7 release announcement, which I assume everyone reads.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#7
Ok. The "update library" was the catch!
Thanks @Nutul !
Reply
#8
Ok. Now it plays the intro tune, but doesn't restart the radio station, I listened before the shutdown.
Reply
#9
@Tim Curtis could it be because the startup chime "replaces" the last playback queue, instead of, for instance, adding the chime at its beginning...?
Just wandering wild, of course, but...
Reply
#10
Look in the moode log for the times when autoplay occurs and play readychime occurs.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Forum Jump: