Does React works with 2 fields from the same channel? | 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
Does React works with 2 fields from the same channel?
No permission to create posts
March 16, 2018
2:45 pm
Avatar
dnsr03
New Member
Members
Forum Posts: 2
Member Since:
March 16, 2018
sp_UserOfflineSmall Offline

I'm trying to set 2 Reacts, one for each field of my channel (temperature and humidity), but, apparently, only 1 is fully working (the React for the temperature) while the other only work randomly, even if the condition it's achieved , some times the reaction (a tweet) doest not work.

Can somebody help me? 

March 18, 2018
1:32 pm
Avatar
cstapels
Moderator
Members


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

Can you post some sample field values and the condition you have set?  I just set up a pair of reacts to trigger on field1 and field 2 of my test channel.

My Reacts were set to trigger each time the condition is met.  It has a numeric condition to trigger a tweet when field1 is greater than 100 and another that triggers a tweet when field 2 is greater than 30.  I used the REST api to write to the channel with a GET

https://api.thingspeak.com/update?api_key=XXXXXXXXXXXXXXXX&field1=110&field2=333

and both tweets were posted within the same second. 

Are you posting from a device or from a web server?  It may also help to show us the format you are using to post values to your channel.

March 19, 2018
5:01 pm
Avatar
dnsr03
New Member
Members
Forum Posts: 2
Member Since:
March 16, 2018
sp_UserOfflineSmall Offline

cstapels said

Can you post some sample field values and the condition you have set?  I just set up a pair of reacts to trigger on field1 and field 2 of my test channel.

My Reacts were set to trigger each time the condition is met.  It has a numeric condition to trigger a tweet when field1 is greater than 100 and another that triggers a tweet when field 2 is greater than 30.  I used the REST api to write to the channel with a GET

https://api.thingspeak.com/update?api_key=XXXXXXXXXXXXXXXX&field1=110&field2=333

and both tweets were posted within the same second. 

Are you posting from a device or from a web server?  It may also help to show us the format you are using to post values to your channel.  

I was getting the data from a sensor on an Arduino board, doing pretty much the same thing you described, with one react to tweet when field1 was greater than 28 and the other react to tweet when field2 was greater than 50. But for some reason, sometimes only the react for the field1 was tweeting and the second one not, even when the condition for the react of field2 was reached.

But your answer solved my doubt. I will do more tests and see whats happen. 

thanks

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
23 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