The approach outlined in #5 works nicely.
Configuration:
/usr/local/etc/lmseventtrigger.json:
Code:
--------------------
{
"enabled": false,
"numStatusResults":1,
"events": [
{"cmd":"/usr/local/bin/lms-autostop.sh","event":[["playlist"],["newsong"]]}
]
}
--------------------
/usr/local/bin/lms-autostop.sh (adjust player name and id):
Code:
--------------------
#/bin/bash
echo "$2"| grep -q '"player_name":"kids_squeezebox"' || exit
(echo "00%3A00%3A00%3A00%3A00%3A00 stop" | /bin/busybox nc localhost 9090) &
--------------------
enable plugin (e.g. via cron at a specified time):
Code:
--------------------
wget "http://lmsserver:9000/plugins/LMSeventTrigger/js.html?cmd=enable"
--------------------
This will stop the player as soon as a track is started.
SW: 'Web UI for LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor / Generator'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'Similar Music'
(http://forums.slimdevices.com/showthread.php?108495-Announce-LMSmusly-play-similar-music)
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))
------------------------------------------------------------------------
Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=110538
_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter