-->
Page 4 of 5

Re: Newbie here looking for some D1 mini help and Thermistor

PostPosted: Wed Dec 04, 2019 6:28 pm
by hackerjoe
[quote="schufti"]there was an error:
[code]
Hi schufti,
Is there a way to send a temp averaged say every 30 minutes or 1 hour. Its not a big deal if its too much.
I will play with the new delay feature thank you for spotting that.
I tried making a few changes but it ended up stopping the code lol
Thank you again,
Joe

Re: Newbie here looking for some D1 mini help and Thermistor

PostPosted: Wed Dec 04, 2019 8:15 pm
by hackerjoe
I'm not sure what I was supposed to modify on the line but I change to 0 to a greater number and it didn't affect the upload rate.
if (++cycle_cnt > CYCLE) {
tsp(temperatureF);
cycle_cnt=0;
}
}

Re: Newbie here looking for some D1 mini help and Thermistor

PostPosted: Wed Dec 04, 2019 8:16 pm
by hackerjoe
hackerjoe wrote:I'm not sure what I was supposed to modify on the line but I changed the 0 to a greater number several times and it didn't affect the upload rate.
if (++cycle_cnt > CYCLE) {
tsp(temperatureF);
cycle_cnt=0;
}
}

Re: Newbie here looking for some D1 mini help and Thermistor

PostPosted: Thu Dec 05, 2019 2:40 am
by schufti
hi, tochange the interval I told you to change the CYCLE define, and this is the location:

Code: Select all// thingspeak defines
#define tspKEY "api key goes here"
#define tspSVR "api.thingspeak.com"
#define CYCLE 60


it is in seconds, so for 30min you need to change it to ???
try an educated guess ...