It seems like the command playlist insert puts your chosen startup
sound as the first track in the playlist, without destroying the
playlist.
The command playlist deleteitem can be used to delete the startup
sound from the playlist after it's been played.
If you don't want to keep the startup
Here's what I ended up with; it seems to be working well:
#!/bin/bash
{
echo 00:04:20:07:c4:2a mixer volume 60
00:04:20:07:c4:2a playlist preview url:file:///srv/music/PowerOn.flac
| nc localhost 9090
sleep 3
echo 00:04:20:07:c4:2a playlist preview cmd:stop | nc localhost 9090
}
--
msherman
Hrm, does anyone idea how to write this kind of script in a way that
doesn't:
- destroy the current playlist
- leave the startup sound lingering in current playlist
- require the startup sound to be in the slimserver library?
Thanks for any tips,
- Marc
--
msherman
Does anyone know a way (a plugin, I presume, but I'll accept another
solution if someone knows one) to configure a sound to play when I turn
on my SB3?
My SB3 is connected to an Audiosource Amp-100, which has an auto-on
feature that turns itself on when the SB3 starts playing above a
certain
Batch script that uses CLI to play a track plus ExecuteScript plugin?
--
peterw
http://www.tux.org/~peterw/
Free plugins: 'AllQuiet'
(http://www.tux.org/~peterw/slim/AllQuiet.html) 'Auto Dim/AutoDisplay'
(http://www.tux.org/~peterw/slim/AutoDisplay.html) 'BlankSaver'
Good idea, thanks!
--
msherman
msherman's Profile: http://forums.slimdevices.com/member.php?userid=11966
View this thread: http://forums.slimdevices.com/showthread.php?t=80937