Time in Rules

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Beetle
New user
Posts: 2
Joined: 20 Nov 2016, 17:27

Time in Rules

#1 Post by Beetle » 20 Nov 2016, 17:36

Hello.
Please, help to set the time in the rules.
I want to rule triggers if the current time is less than 6 and more than 23.

Code: Select all

on R4#On do
 %systime%
 if %systime% > 23
   gpio, 16, 1
 endif
 if %systime% > 23:00
   gpio, 16, 1
 endif
endon
Rule triggers, in any case, regardless of the current time.

p.s. sorry for the bad english...

bbking
New user
Posts: 3
Joined: 18 Nov 2016, 08:24

Re: Time in Rules

#2 Post by bbking » 25 Nov 2016, 00:01

According to this http://www.letscontrolit.com/wiki/index ... Rules#Time you should try it like:

Code: Select all

On Clock#Time>All,23:00 do 
    gpio, 16, 1
endon

Beetle
New user
Posts: 2
Joined: 20 Nov 2016, 17:27

Re: Time in Rules

#3 Post by Beetle » 04 Dec 2016, 19:27

Not working.
Time not match.

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests