November 10, 2018
I need to determine max and min temperature in 24 hours. I use Example "Calculate high and low temperatures". When I want to write data to a channel, I have a problem. Calculation runs every 15 minutes using timecontrol. If the value is the same, then I get back errors.
Maximum Temperature for the past 24 hours is =
Note: To write data to another channel, assign the write channel ID
andAPI Key to 'WriteChannelID' and 'writeAPIKey' variables. Also
uncomment the line of code containing 'thingSpeakWrite'
(remove '%' sign at the beginning of the line.) Error using Calculate high temperature MAX Garden (line 56)
The server returned the status 500 with the message "Internal Server Error" in response to the request to URL https://api.thingspeak.com....
Can you please advise me?
March 7, 2017
ThingSpeak requires unique timestamps. Since the code writes with the timestamp of the max or min, and you run it, it will repeatedly try to write the nonunique timestamp.
My suggestion is to write the present timestamp and then write the timestamp of interest to another field.
with this change, it will write the time of max literature in field 2, and the timestamp for the entry will be exactly when the timeControl ran.
Does that help?
Most Users Ever Online: 114
Currently Browsing this Page:
Guest Posters: 1
Newest Members:JustinaAnoks, JerilynDernnida, JaketripDernnida, KenterDernnida, AlisaMiz, AriurinDernnida
Moderators: cstapels: 460
Administrators: Hans: 405, lee: 457