Apply a formula to incoming data | ThingSpeak Plugins | Forum

Avatar

Please consider registering
Guest

Search

— Forum Scope —






— Match —





— Forum Options —





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

Register Lost password?
sp_Feed sp_TopicIcon
Apply a formula to incoming data
Avatar
rodri
Italy

Silver
Forum Posts: 19
sp_UserOfflineSmall Offline
1
May 7, 2015 - 5:59 am
sp_Permalink sp_Print

Hi,
Is it possible to create a plugin in which a formula is applied to data? I mean I have raw data coming from the sensor and I want the chart displaying converted value, let's say:
Y=aX+b
where, X is raw data sent from sensor and Y is converted data that I want to display

Thanks,
Rodri

Avatar
lee

Forum Posts: 457
sp_UserOfflineSmall Offline
2
May 7, 2015 - 8:51 am
sp_Permalink sp_Print

Hi Rodri,

Yes this is possible, but you'll have to know JavaScript and manipulate the data points directly after they're retrieved but before the chart is drawn.

lee

Avatar
rw950431

Forum Posts: 252
sp_UserOfflineSmall Offline
3
May 8, 2015 - 1:25 am
sp_Permalink sp_Print

Hi Rodri
I did something similar with https://thingspeak.com/plugins/3339. In my case to convert steadily-rising counter values into a rate according to the formula (this_count-last_count)/(this_time-last_time)

Hopefully you can 'view page source' to get the code. Thingspeak doesnt have a lot of support for sharing details of public plugins.

Avatar
rodri
Italy

Silver
Forum Posts: 19
sp_UserOfflineSmall Offline
4
June 30, 2015 - 4:54 am
sp_Permalink sp_Print

Yes finally I also used plugins. Thank you very much

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
16 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 252

Vinod: 164

cstapels: 96

piajola: 75

vespapierre: 63

Adarsh_Murthy: 59

Newest Members:

winnieeq69

AutoCheernpen

Bostermet

engladNed

iivenul

olewaeayafaku

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

 

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Administrators: Hans, lee