Page 1 of 1

Counter per minute to tracked a gpio

Posted: 05 Mar 2023, 22:01
by Franzel007
Hihi,
I would like to count how long the gpio is switched on when switching a gpio.
The time in minutes should be stored in a variable.
Can you please give me an example?

Franzel

Re: Counter per minute to tracked a gpio

Posted: 05 Mar 2023, 22:13
by Ath
Please check this thread: viewtopic.php?t=9146 where we are doing nearly the same, except we're logging the Hours (minutes / 60).

Re: Counter per minute to tracked a gpio

Posted: 06 Mar 2023, 08:53
by bidrohini
Also this document may help you a bit:
https://espeasy.readthedocs.io/en/lates ... /P003.html