React error | ThingSpeak Apps | Forum

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
React error
No permission to create posts
February 7, 2017
3:01 am
Avatar
of.tecnica
New Member
Members
Forum Posts: 2
Member Since:
February 7, 2017
sp_UserOfflineSmall Offline

Hi!!

I have configured a React for a temperatur field greater than 19ºC, in the options I have configured "Run action only the first time the condition is met" but when the temperature is greater than 19ºC it activates the react each time data is inserted.

It looks like "Run action each time condition is met" is marked but not.

Thanks!!

February 7, 2017
9:08 pm
Avatar
Vinod

MathWorks
Members
Forum Posts: 202
Member Since:
May 1, 2016
sp_UserOfflineSmall Offline

Thanks for reporting this. It appears to be a bug. We will look into resolving this shortly.

February 14, 2017
4:50 am
Avatar
of.tecnica
New Member
Members
Forum Posts: 2
Member Since:
February 7, 2017
sp_UserOfflineSmall Offline

Any news about this issue?

February 14, 2017
8:23 pm
Avatar
Vinod

MathWorks
Members
Forum Posts: 202
Member Since:
May 1, 2016
sp_UserOfflineSmall Offline

It turns out the "Run action only the first time the condition is met" react has a built in reset mechanism. Here's how the reacts with "Run action only the first time the condition is met" actually works:

Let's say you have configured a react to "Run action only the first time the condition is met" that uses the ThingTweet app to tweet something when channel 99999's field1 value is above 100. The react will be fired the first time the value exceeds 100. Any continuous subsequent values posted to the field1 of channel 99999 that are above a 100 do not trigger the react. The first value that is below 100 will reset the react condition such that a subsequent value above 100 will trigger the react.

If channel 99999's field1 was 

0, 1, 2, 8, 9, 100, 101, 102, 103

Then the react would be triggered once.

If channel 99999's field1 was 

0, 1, 2, 8, 9, 100, 101, 102, 99, 103

Then the react would be triggered twice.

The idea behind this is say you wanted to be notified when your smoke alarm went off. However, you do not want to be alerted continuously until you have reset the smoke alarm. When you did reset the smoke alarm, it started posting normal values to ThingSpeak. ThingSpeak would reset the react to now fire when it again got an alarm, without you having to manually change settings on ThingSpeak.

I hope the example was helpful.

 

Perhaps if you can describe your application I can suggest a good way to do what you want to do?

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
21 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 261

Vinod: 196

piajola: 85

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

Newest Members:

BarryMaync, ThomasRougs, DonaldGen, prince, JrGordon, Elamsweems

Administrators: Hans: 387, lee: 457