Hi, I’ve got a sketch that has been running well, and want to add the Time Input Widget to it to get daily Max/Min temperature values sent to the SuperChart widget at midnight each day. Am I using the Time Widget correctly?
// Read Time Input set time for resetting Max/Min temp values //////////////////////////
BLYNK_WRITE(V32) { // V32 is the Time widget
TimeInputParam t(param);
// Process start time
if(t.hasStartTime()) { // Time Widget set to 00:00
// if timer == midnight send Max/Min values to SuperChart, then reset values for next day
Blynk.virtualWrite(V30, maxRoofTemp); // V30 is Superchart data stream 1
Blynk.virtualWrite(V31, minRoofTemp); // V31 is Superchart data stream 2
maxRoofTemp = 0; //reset maxRoofTemp
minRoofTemp = 50; //reset minRoofTemp
}
}