Page 1 of 1

New Years Eve Hue and Spotify Party?

Posted: Friday 28 December 2018 9:18
by febalci
I want to set an event, so that when it is exactly 00:00 on January1, spotify starts playing a certain song and hue lights starts color loop. Any suggestions?

Re: New Years Eve Hue and Spotify Party?

Posted: Friday 28 December 2018 10:59
by waaren
febalci wrote: Friday 28 December 2018 9:18 I want to set an event, so that when it is exactly 00:00 on January1, spotify starts playing a certain song and hue lights starts color loop. Any suggestions?
Create a scene Happy NewYear with the required actions and test below script.

Code: Select all

return {
    on      = { timer       = { "at 11:02 on 28/12", "at 23:59 on 31/12"}}, -- first timer for test
    
    execute = function(dz)
        dz.log("One minute to go",dz.LOG_FORCE)
        dz.scenes("Happy NewYear").switchOn().afterSec(60)
    end
}

Re: New Years Eve Hue and Spotify Party?

Posted: Friday 28 December 2018 12:10
by EdwinK
Now just let's think of something nice to happen.