Page 1 of 1

Switch to Rules Set 2

Posted: 04 May 2019, 22:20
by adval40
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  

Re: Switch to Rules Set 2

Posted: 05 May 2019, 00:51
by ThomasB
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

Re: Switch to Rules Set 2

Posted: 05 May 2019, 01:42
by adval40
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