Rules - command to print a value to the Log?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
JR01
Normal user
Posts: 241
Joined: 14 Feb 2016, 21:04
Location: South Africa
Contact:

Rules - command to print a value to the Log?

#1 Post by JR01 » 16 Oct 2019, 20:58

Is there such a command? Got an illusive problem with a sprinkler system.
------------------
My problem is below, when it gets to Rules#Timer=6 - it does not evaluate the if statement, I want to know what INT#!'s value is....

-----

Code: Select all

On Clock#Time=All,"[Vars1#startHr#D2]:[Vars1#startMin#D2]" do // On Clock#Time=All,%sunrise+15m% Do
  Let,1,0
  if [Vars2#Auto]=1
    Event,LoopDeLoop
  endif
EndOn

On LoopDeLoop Do
  Let,1,[VAR#1#D1.0]+1
  Let,2,[Vars2#durLegRest]+[Vars2#durLegOn]
  event,L[VAR#1#D1.0]
  timerSet,6,[VAR#2]
EndOn

On Rules#Timer=6 Do
  if [INT#1]<5    // or use [VAR#1#D1.0]
    Event,LoopDeLoop
  endif
EndOn
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay . Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.

User avatar
grovkillen
Core team member
Posts: 3302
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Rules - command to print a value to the Log?

#2 Post by grovkillen » 16 Oct 2019, 21:17

LogEntry
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

JR01
Normal user
Posts: 241
Joined: 14 Feb 2016, 21:04
Location: South Africa
Contact:

Re: Rules - command to print a value to the Log?

#3 Post by JR01 » 16 Oct 2019, 21:56

Thank you!
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay . Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests