Created
August 14, 2017 23:35
-
-
Save otakup0pe/2a9a320553f0af66e2e0687d1f5a4d48 to your computer and use it in GitHub Desktop.
Not An Alarm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local ichos = require("ichos") | |
local const = require("ichos_constants") | |
for i=0, 12, 1 do | |
luup.call_action(const.SID_SONOS, "PlayURI", | |
{URIToPlay="x-file-cifs://nas/tunez/effects/Wilhelm-Scream.mp3", Volume=25}, | |
ichos_util.sonos_id(const.ZONES[math.random(4)]['Name'])) | |
luup.sleep(250) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment