mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-19 00:02:11 +00:00
JINGLES!
This commit is contained in:
@@ -41,18 +41,9 @@ let json.parse credentials = file.contents("/home/pi/Conjurer/icecast_credentia
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Randomly select a playlist with weights
|
# Randomly select a playlist with weights
|
||||||
s = random(id="randomizer", weights=[1, 3, 2], [s1, s2, s3])
|
s4 = random(id="randomizer", weights=[1, 3, 2], [s1, s2, s3])
|
||||||
#s = delay(duration=5., s)
|
jingles = (playlist(reload_mode="watch", "/home/pi/Conjurer/jingles.playlist"))
|
||||||
#radio = add([delay(1800., jingles), music])
|
s = rotate(id="randomizer", weights=[20, 1], [s4, jingles])
|
||||||
#radio = fallback([delay(1800., jingles), music])
|
|
||||||
#p = predicate.signal()
|
|
||||||
#radio = switch([(p, jingles), ({true}, music)])
|
|
||||||
#thread.run(every=1200., {p.signal()})
|
|
||||||
# def cmd(_)
|
|
||||||
# p.signal()
|
|
||||||
# "Jingle inserted!"
|
|
||||||
# end
|
|
||||||
# server.register("insert_jingle", cmd)
|
|
||||||
|
|
||||||
# Set up an interactive harbor for controlling the stream
|
# Set up an interactive harbor for controlling the stream
|
||||||
interactive.harbor(port = 9999)
|
interactive.harbor(port = 9999)
|
||||||
|
|||||||
Reference in New Issue
Block a user