Gpio timer duration,

I would like to measure how long a gpio input is "On" so I could send a notification after a certain period of time. I looked at some nodes and at first look I can't find nodes that would do such a thing.
Any good idea to fullfill this function ?

Hi,

You can try my node-red-contrib-interval-length node. Because you are measuring the time interval between a message containing an ON, and a message containing an OFF. It can also send a timeout message, when after X (milli)seconds no input message has arrived.

Let me know about your progress!

P.S. Keep in mind that you cannot get high accuracy measurements.

Good luck!
Bart

I think node-red-contrib-mytimout should be able to do that for you.