Script Question with regard to day of week

Charles Pendleton charlie at pendletonweb.com
Mon Jan 15 07:30:52 EST 2018


Howdy,

I have a wakeup script that turns on a unit then turns it off in 45 minutes:

turnon "Hydronic: H2O Circulator"
create event (turnoff "Hydronic: H2O Circulator" in 45 * minutes)

I would like it to turnoff in 45 minutes monday through Friday but turn off in an 1:45 on Saturday and Sunday. I’m supposing it would look something like this but I doubt (because it doesn’t work ;-) that the formatting or the day usage is correct.

if day eqaul monday-friday then
create event (turnoff “thing” in 45 * minutes)
if day equal Saturday-sunday then
reate event (turnoff “thing” in 105 * minutes)
End if
end if

Am I barking up the right tree or should I just make a weekday wakeup script and a weekend wakeup script? Thank you for any help in advance!

Best,
Charlie-

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20180115/590a630b/attachment.html>


More information about the XTensionList mailing list