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?
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.
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?
Most Users Ever Online: 114
Currently Browsing this Page:
Guest Posters: 1
Administrators: Hans, lee