Is React working properly? | 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
Is React working properly?
No permission to create posts
March 15, 2018
3:50 am
Avatar
hroobert

Silver
Members
Forum Posts: 6
Member Since:
March 15, 2018
sp_UserOfflineSmall Offline

Hi 

First of all I'm very impressed with what Thingspeak came up with. It makes me wonder what would make sense to "IoT" in my house and in my life.

I have a problem though.

I set up a channel (447365 - private) where I log temperatures of my boiler every 3 minutes with an ESP2866. I also set up a React that is supposed to tweet me (On Data Insertion) when a temperature raises above a certain level. I want it to only tweet once when the condition is met, therefore I set "Run action only the first time the condition is met".

The twitter part works well, it tweets whenever the condition is met. The problem is that it tweets every time it's met, not only the first time. Even thoudh it's set to "Run action only the first time the condition is met".

The data has no noise in it that would result the condition to go False and back to True.

Thanks for your support!

 

String
 
Status
 
Numeric
 
Geo
 
No Data Check

On Data Insertion
 
Every 10 minutes
 
Every 30 minutes
 
Every 60 minutes

If channel
HeRo test (400669)
 
Kotel_Heves (447365)

field

1 (Zpatecka)
 
2 (TUV)
 
3 (Topeni_Radiator)
 
4 (Okolni_teplota)
 
5 (TUV_Ohrev)
 
6 (Teplotni_Zisk_Kotle)
 
7
 
8

is greater than
 
is greater than or equal to
 
is less than
 
is less than or equal to
 
is equal to
 
is not equal to

ThingHTTP
 
MATLAB Analysis
 
ThingTweet

then tweet

using Twitter account
HeRo_IoT

March 15, 2018
3:56 am
Avatar
hroobert

Silver
Members
Forum Posts: 6
Member Since:
March 15, 2018
sp_UserOfflineSmall Offline

Sorry for the listing above. (For some reason i can't edit the post)

Here is the setup:

 

Condition Type
Numeric

Test Frequency
On Data Insertion

Condition
If channel
447365

field
5

is greater than
45

Action
ThingTweet

then tweet
%%datetime%% ..message..

using Twitter account
[twitter account]

Options
Run action only the first time the condition is met

March 15, 2018
3:25 pm
Avatar
cstapels
Moderator
Members


Moderators
Forum Posts: 867
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

My single fire reacts worked once only as recently as a week or two ago. I just tried one out now with similar conditions as yours and I saw only one tweet for three channel updates with conditions that should have triggered the react.  Over how long did you see the behavior persist?

March 16, 2018
4:31 am
Avatar
hroobert

Silver
Members
Forum Posts: 6
Member Since:
March 15, 2018
sp_UserOfflineSmall Offline

I set this channel and it's triggers up about 3 days ago.

The last set of triggers I got as shown in the screenshot below. I got 3 tweets when I should only have gotten the first one.

https://photos.app.goo.gl/w0ZR1mGQSxrnuVBO2

March 27, 2018
4:43 am
Avatar
hroobert

Silver
Members
Forum Posts: 6
Member Since:
March 15, 2018
sp_UserOfflineSmall Offline

Any suggestion?

March 27, 2018
8:51 am
Avatar
cstapels
Moderator
Members


Moderators
Forum Posts: 867
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

I'm sorry to hear that your react is misbehaving.  Is the behavior still persisting?  I just repeated my test, and got one trigger from a react on four posts from an ESP8266-01.  Can you try erasing the react and setting up a new one?  

The only differences I see are that you are posting to field 5 on a private channel and I am using field 1 of a public channel. 

If the behavior you see is still happening with a new react, then I will try it with the same conditions as yours.

Are there regular updates to other fields of that channel? 

April 6, 2018
12:30 am
Avatar
hroobert

Silver
Members
Forum Posts: 6
Member Since:
March 15, 2018
sp_UserOfflineSmall Offline

I tried deleting and setting up a new one but the behavior is the same..

https://photos.app.goo.gl/rCrZfR3TFPn88URj2

https://photos.app.goo.gl/WNL8u9meP2k0KlPH3

The other fields are getting regular updates, but I only have this one with a react that is supposed to run once when the condition is met.

Thanks

April 11, 2018
8:26 am
Avatar
cstapels
Moderator
Members


Moderators
Forum Posts: 867
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

Thanks for giving a new react a try.  Do you have any other processes that are writing to the channel?  Perhaps if there were simultaneous writes to the channel it could cause the react to trigger multiple times.  Can you try removing the react again and then causing the original trigger condition to be true again?  Then see what happens with the channel values and the tweets.  I will attempt to replicate the process for a react to field 5, so it matches your conditions exactly.

May 1, 2018
5:36 am
Avatar
hroobert

Silver
Members
Forum Posts: 6
Member Since:
March 15, 2018
sp_UserOfflineSmall Offline

There is an analysis running on the channel but that is writing to a different field.
The trigger keeps tweeting on every one of the instances when the condition is met, not only the first time the condition is met after the condition was not met.
I believe i have it set up properly and that there is a bug in the system.

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
20 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 272

Vinod: 240

piajola: 95

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 8665

Moderators: 1

Admins: 2

Forum Stats:

Groups: 3

Forums: 14

Topics: 1600

Posts: 5760

Newest Members:

Team_mafia, icXu, emorphistechno, VTVMART, manimozhi, adamhebrew

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457