Switch to Rules Set 2

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
adval40
Normal user
Posts: 23
Joined: 04 Apr 2017, 23:14

Switch to Rules Set 2

#1 Post by adval40 » 04 May 2019, 22:20

How can I switch to Rules Set 2 ?

Code: Select all

On System#Boot do
   TimerSet,1,1
   NEXTION,page0.t4.txt="Test"
   NEXTION,page0.t20.txt="Temperatuur"
   NEXTION,page0.t21.txt="Vochtigheid"
   NEXTION,page0.t22.txt="Electra"
   NEXTION,page0.t23.txt="Trap-Groen"
   NEXTION,page0.t24.txt="Trap-Rood"
   NEXTION,page0.t25.txt="Trap-Blauw"
   NEXTION,page0.t30.txt="IPadres"
endon

On Rules#Timer=1 do
   NEXTION,page0.t0.txt="%sysday%-%sysmonth_0%-%sysyear_0%"   
   NEXTION,page0.t100.txt="[wk#Temperature] C"
   NEXTION,page0.t101.txt="[wk#Humidity] %"
   NEXTION,page0.t102.txt="[P1#Value1] Watt"
   NEXTION,page0.t110.txt="%ip%"
   TimerSet,2,1
endon  

User avatar
ThomasB
Normal user
Posts: 425
Joined: 17 Jun 2018, 20:41
Location: USA

Re: Switch to Rules Set 2

#2 Post by ThomasB » 05 May 2019, 00:51

Not sure what you mean. If you are referring to the four pages of rules, then Rules in the 2,3,4 pages are executed the same as if written in the Rules 1 page.
- Thomas

adval40
Normal user
Posts: 23
Joined: 04 Apr 2017, 23:14

Re: Switch to Rules Set 2

#3 Post by adval40 » 05 May 2019, 01:42

yes I mean the 4 pages

Thomas thanks it works now

Code: Select all

//Rules Set 2

TimerSet,1,1

On Rules#Timer=1 do
   NEXTION,page0.t4.txt="Test"
   NEXTION,page0.t31.txt="12345"
   NEXTION,page0.t111.txt="%systime%" 
   TimerSet,1,1
endon


Post Reply

Who is online

Users browsing this forum: Google [Bot] and 10 guests