script de rappel
Publié : 02 juin 2017, 21:06
bonjour j'ai commencé à écrire se script pour me faire des petits rappel ainsi qu'a mon épouse mais voila il li la premières ligne du script est le script s'arrête???
merci
merci
Code : Tout sélectionner
function smsput(sGroup,sMsg)
sUrl="http://192.168.1.2:1200/SMS&GRP=" .. sGroup .. "&MSG="
commandArray['OpenURL']=sUrl .. string.gsub(sMsg, ' ', '%%20')
end
time=os.date("*t")
local heure = (time.min == 30 and time.hour == 06) --heure de declenchement du script
local test = (time.day == 1 and time.month == 06)
local detecteurdefume = (time.day == 01 and time.month == 07)
local margaux = (time.day == 25 and time.month == 10)
local apolline = (time.day == 28 and time.month == 06)
local test1 = (time.day == 31 and time.month == 05)
commandArray = {}
if heure then
if test then smsput('PATJUL',"test'é!!!!!")
if detecteurdefume then smsput('ADMIN',"il faut remplacer les piles des detecteurs de fume")
if margaux then smsput('PATJUL',"aujourdhui c'est l'anniversaire de margaux")
if apolline then smsput('PATJUL',"aujourdhui c'est l'anniversaire d'apolline")
if test1 then smsput('PATJUL',"test1'é!!!!!")
end
end
end
end
end
end
return commandArray