Page 1 of 1
Is it possible to set if date is ...?
Posted: Friday 22 September 2017 20:33
by bkrajnc
Hello
I would like to set If date is 1.januar and Time is 7:00...... Is it possible do this with Blocky, to set specific DATE?
Best regards
Boris
Re: Is it possible to set if date is ...?
Posted: Saturday 23 September 2017 16:33
by bkrajnc
...nobody ?

Re: Is it possible to set if date is ...?
Posted: Saturday 23 September 2017 17:22
by Derik
you can connect domoticz to a gmail calendar....
Perhaps?
Re: Is it possible to set if date is ...?
Posted: Saturday 23 September 2017 20:54
by DutchHans
I've created a goodmorning script with birthdates in it..maybe this might put you in the right directiin
Code: Select all
local birthdays = {
John="19/11/19xx-F",
Mary="17/11/19xx-F",
Jeff="22/11/19xx-M"
}
for key, value in pairs(birthdays) do
if (os.date("%d/%m") == string.sub(value, 1, 5)) and (string.sub(value, 12) == "M") then
sentence = sentence .. key .. " is having his birthday, today! Don't forget to send him a message or give him a call! "
elseif (os.date("%d/%m") == string.sub(value, 1, 5)) and (string.sub(value, 12) == "F") then
sentence = sentence .. key .. " is having her birthday today! Don't forget to send her a message or give her a call! "
end
end