Controlling data send time for thingspeak | ThingSpeak Projects | Forum

The ThingSpeak community site has been upgraded to a new site. This site is currently in read-only mode. You can ask questions or post and read discussions on the new site.

Please consider registering

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
Controlling data send time for thingspeak
No permission to create posts
July 4, 2019
6:49 am
Alvaro Barbosa da Rocha
New Member
Forum Posts: 1
Member Since:
July 4, 2019
sp_UserOfflineSmall Offline

Good morning everyone. I am using an ESP8266 to measure wind speed in my region, this project is part of a program of the university that I study. My system accumulates the speed values for one minute and then sends them to thingspeak. I want to send only 1 die at the end of this minute and I can not do that.
I do not use deleys, I use a millis function to control the time which will be averaged.
How can I do so that the calculated average is sent only at the end of this minute.
Thank you.

July 15, 2019
10:35 am

Forum Posts: 885
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

Are you programming your ESP with the Arduino IDE?
I'm not sure exactly what you are trying to do. If you have the millis() function, you can time events. But just in case you are trying to synchronize with a specific time, I offer the following solution:

There is a time library available (google). Each time you post to ThingSpeak, ThingSpeak will return the created at timestamp, and you can parse that and use it to set the clock on your Arduino. (or use it to re-synchronize the time after every post. ) Then use a loop to check the time, and if the seconds=59, then post.

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
29 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 272

Vinod: 240

piajola: 95

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 8665

Moderators: 1

Admins: 2

Forum Stats:

Groups: 3

Forums: 14

Topics: 1600

Posts: 5760

Newest Members:

Advantagetreeexperts, laundrydaddyuk, techhhelp5, ken, tran, huldacormier

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457