Code: Select all
if [TaskValueGet 1,1]>10
gpio 15,0
endif
Moderators: grovkillen, Stuntteam, TD-er
Code: Select all
if [TaskValueGet 1,1]>10
gpio 15,0
endif
You can, but you have to use the taskname and task valuename pairs in your script to refer to a certain task. So if your task is named DHT11 and you did not change the valuenames, it should be like this:nithin wrote:Is it possible to read the Task values in rule script? something likeCode: Select all
if [TaskValueGet 1,1]>10 gpio 15,0 endif
Code: Select all
if [DHT11#Temperature]>10
gpio 15,0
endif
Got it. Thanks MartinusMartinus wrote:You can, but you have to use the taskname and task valuename pairs in your script to refer to a certain task. So if your task is named DHT11 and you did not change the valuenames, it should be like this:nithin wrote:Is it possible to read the Task values in rule script? something likeCode: Select all
if [TaskValueGet 1,1]>10 gpio 15,0 endif
Code: Select all
if [DHT11#Temperature]>10 gpio 15,0 endif
Users browsing this forum: No registered users and 29 guests