I set up an alarm-clock in the childrens room. There the music starts each schoolday-morning and play nice tracks to wake the little ones up. I realised it with an raspberrypi and a home-stereo-system. This works pretty well.
Now they asked, if I can put the same playlist to the stereo-system in the kitchen during breakfast. There is a raspberry-system as well.pi@raspberrypi:~/Musik $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
The advantage is, that the playlist is build each morning new. The reason is, that a kind of shuffle-system brings different music each morning.volumio@volumio:~$ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
So lets call the playlist in the following example: 20220118-0959_playlist.txt.
I start the children-room raspberry with a script at the wakeup-time with
Code: Select all
cvlc $(cat /media/ramdisk/20220118-0959_playlist.txt) --sout '#duplicate{dst=es{access-audio=http,mux-audio=ts,dst=:8090},dst=display' --sout-all --sout-keep
Code: Select all
cvlc --alsa-audio-device softvol http://192.168.0.28:8090
The kitchen one plays just one item of the playlist. Especially the one which is played on the childrenrooms streamserver in the moment I start the kitchen-pi.
Is there anyone who can give me advice for using the "--sout-keep" for my example right? So that the kitchen-pi plays the whole stream and didnt stop after one track of the playlist.
Thx
dafosy
By the way, this is how the playlist looks like:
Code: Select all
nano /media/ramdisk/20220118-0959_playlist.txt
20220112_04_HapeKerkeling-Wennichers.mp3
20220112_05_LeonhardMahlich-Rentieres.mp3
15_20140420_01_CD2-Waterloo.mp3
15_20140421_04_CD1_Chiquitita.mp3
15_Madonna-LaIslaBonita.mp3
15_JulianeWerdingWenndudenkst.mp3
15_20211221_Shakira_Locafeat.Dizze.mp3
15_20140421_01_CD1_DancingQueen.mp3
20220105_06_Sting_Whenever.mp3
20220105_07_Sting_DontMak.mp3
20220105_08_Sting_Restewi.mp3
20211217_12_Gummistiefelsindnicht.mp3
20211217_13_DeralteBaum.mp3
20211221_DieSunStehtTiaf_Seboki.mp3
20220112_10_KaceyMusgraves-AllIsFoun.mp3
20220112_11_Weezer-LostintheWoodsW.mp3
20220112_12_MarkForster-Wonochnieman.mp3
https://orf-live.ors-shoutcast.at/fm4-q2a