I need a counter to +1 every 24 hours to display my plants age in days in a Value widget. Any Ideas?
I’d probably use the RTC widget to give me the current day/month/year
I’d store day zero (the ‘birth date’ of your plant ) against a virtual pin and read this (using BLYNK_CONNECTED and Blynk.syncVirtual(vPin) on startup of your MCU.
I’d also store the ‘previous day’ in a variable and when the RTC tells me that the current day doesn’t match the previous day that I stored then I’d re-calculate the plant’s age and send it to widget in Blynk.
If these are plants you’re growing from seeds then I guess you’re interested in days and weeks rather than years, months days etc, but it’s up to you to choose the format for your outputted age.