Enabled Event
HA! Answered my own question. This solves the problem I was having with the Event not being enabled. I added the last line towards the end of the script. I noticed that the NewTimeEvent name was in the "LogText" string. I just added the "hs.EnableEvent LogText" line at the end of this script section, which then enables the Event that was just created on the line before. For a beginner to HS, this was a big deal. Not sure if this is the best way to solve this, but it worked. Hope this helps.
If ask = "yes" Then
system.speak "ok" ' I will wake up " &WhatPerson & " at " + hours + " " + minutes + " " + " in the " + greet
hs.NewTimeEvent LogText ,StartTime, StartDate, 1, 1, 1, 1, 1, 1, 1, " ", 1,script,"Default"
hs.EnableEvent LogText
HA! Answered my own question. This solves the problem I was having with the Event not being enabled. I added the last line towards the end of the script. I noticed that the NewTimeEvent name was in the "LogText" string. I just added the "hs.EnableEvent LogText" line at the end of this script section, which then enables the Event that was just created on the line before. For a beginner to HS, this was a big deal. Not sure if this is the best way to solve this, but it worked. Hope this helps.
If ask = "yes" Then
system.speak "ok" ' I will wake up " &WhatPerson & " at " + hours + " " + minutes + " " + " in the " + greet
hs.NewTimeEvent LogText ,StartTime, StartDate, 1, 1, 1, 1, 1, 1, 1, " ", 1,script,"Default"
hs.EnableEvent LogText
Comment