Moode Forum
[SOLVED] 9.3.7: BASH script that runs after moOde startup completes - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: [SOLVED] 9.3.7: BASH script that runs after moOde startup completes (/showthread.php?tid=7847)

Pages: 1 2 3


9.3.7: BASH script that runs after moOde startup completes - ils1974 - 06-27-2025

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?


RE: 9.3.7: BASH script that runs after moOde startup completes - Nutul - 06-27-2025

(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.


RE: 9.3.7: BASH script that runs after moOde startup completes - ils1974 - 06-27-2025

Before posting, I indeed enabled it Smile


RE: 9.3.7: BASH script that runs after moOde startup completes - Tim Curtis - 06-27-2025

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



RE: 9.3.7: BASH script that runs after moOde startup completes - Nutul - 06-27-2025

(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.


RE: 9.3.7: BASH script that runs after moOde startup completes - Tim Curtis - 06-27-2025

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.


RE: 9.3.7: BASH script that runs after moOde startup completes - ils1974 - 06-27-2025

Ok. The "update library" was the catch!
Thanks @Nutul !


RE: 9.3.7: BASH script that runs after moOde startup completes - ils1974 - 06-27-2025

Ok. Now it plays the intro tune, but doesn't restart the radio station, I listened before the shutdown.


RE: 9.3.7: BASH script that runs after moOde startup completes - Nutul - 06-27-2025

@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...


RE: 9.3.7: BASH script that runs after moOde startup completes - Tim Curtis - 06-27-2025

Look in the moode log for the times when autoplay occurs and play readychime occurs.