Recommendations on Parsing Data Once a Day | MATLAB | 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
Recommendations on Parsing Data Once a Day
No permission to create posts
June 18, 2015
9:06 pm
Avatar
fishmastaflex

Silver
Members
Forum Posts: 11
Member Since:
June 18, 2015
sp_UserOfflineSmall Offline

Hello (and thanks for reading),

I have two fields of data in a channel and I need to find the easiest way to parse the data, once a day (at the end of the day), from the two fields and output it's result into a third field. Basically what I'm doing is calculating the area under the curve of the two data fields, comparing them, and then outputting the percent difference result to the third field.

My initial thoughts were to write a Python script that runs on a computer and set it to run once a day. However, that means that the computer must always be on and the data must be pulled from ThingSpeak (what if it doesn't work that day?). Any other ideas?

June 19, 2015
8:50 am
Avatar
lee

Admin
Forum Posts: 457
Member Since:
March 14, 2011
sp_UserOfflineSmall Offline

Hi,

You can look at TimeControl for executing a ThingHTTP once a day ( https://thingspeak.com/docs/timecontrol#timecontrol ). Your ThingHTTP would have to access a webserver that performs the actual calculation and POSTs it back to another channel.

We realize that this isn't an ideal solution, and will work towards allowing calculations to be performed using ThingSpeak in the future.

lee

June 20, 2015
3:41 pm
Avatar
fishmastaflex

Silver
Members
Forum Posts: 11
Member Since:
June 18, 2015
sp_UserOfflineSmall Offline

Thank you, lee!

Having a webserver may be even more work than my initial idea of a python script running everyday on a computer. Probably because I know nothing about running webservers.

Allowing calculations through ThingSpeak sounds like the perfect solution. That's probably pretty far away on your road-map. Any ideas of when that may happen?

June 22, 2015
8:44 am
Avatar
lee

Admin
Forum Posts: 457
Member Since:
March 14, 2011
sp_UserOfflineSmall Offline

Hi,

I'm not sure of an exact date, but it is a feature that has been requested often so it's high on our list of priorities.

lee

March 17, 2016
11:40 am
Avatar
Hans
Natick, MA

Admin
Forum Posts: 400
Member Since:
January 18, 2011
sp_UserOfflineSmall Offline

We have added MATLAB Analysis as an app on ThingSpeak. You can use MATLAB Analysis in combination with TimeControl to run scheduled code. The MATLAB code can script a lot of possible interactions.

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online: samdavies
14 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:

Lakshmanaprakash S B, bettetj60, ronnievw3, bessiesj18, Pavan kumar, Williampup

Administrators: Hans: 387, lee: 457