Recommendations on Parsing Data Once a Day | MATLAB | 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
Recommendations on Parsing Data Once a Day
Avatar
fishmastaflex

Silver
Forum Posts: 11
sp_UserOfflineSmall Offline
1
June 18, 2015 - 9:06 pm
sp_Permalink sp_Print

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?

Avatar
lee

Forum Posts: 457
sp_UserOfflineSmall Offline
2
June 19, 2015 - 8:50 am
sp_Permalink sp_Print

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

Avatar
fishmastaflex

Silver
Forum Posts: 11
sp_UserOfflineSmall Offline
3
June 20, 2015 - 3:41 pm
sp_Permalink sp_Print

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?

Avatar
lee

Forum Posts: 457
sp_UserOfflineSmall Offline
4
June 22, 2015 - 8:44 am
sp_Permalink sp_Print

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

Avatar
Hans
Natick, MA

Forum Posts: 390
sp_UserOfflineSmall Offline
5
March 17, 2016 - 11:40 am
sp_Permalink sp_Print

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: cstapels
21 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:

yeseniara11

RomanFug

JamesPes

RobertBak

ScottSmiva

Amourhotte

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

 

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Administrators: Hans, lee