Rpi infput Delayed off whitch is discarded when rpi returns high before timeout

Hi, Well still playing with Node-red today i have a simple problem where i cannot find the node-red solution...
I have a RPI input going high controlling something..
Whenever its going low i need to delay the off state by a fixed few seconds and if the input gets high within these few seconds the off state needs to be forgotten...

Nothing a simple elco would do but i need now the node-red way..Either a function blok or the right delay node would be great...


A combination of a trigger node and a switch node should do what you require.


Whoooo.. Like i thought shouldn't be difficult but was stugguling allready a few days..

In this light i might have a different problem witch one would solve...
RPI has no clock and will loose the date after a reset.
I use the date to secdule my lights...
I can update the date using the date command and i know Node red can issue commands.
Now how to create a button updating the date in the rpi from my local time .
Or even make this do automatic every so often...

Thanks in advance..

Not a RPI user, but a quick google may help you,

Does your pi have an internet connection? If so then it should set the date/time automatically.

Yes i know.. but due to firewall and remote vpn operation, i was not able to get that working...
So your answer is yes but not directly..


Better to fix that then. The fact that you are connecting via VPN should have no effect on the time sync. What is it in the firewall that is stopping access to the time server?

Network and internet connection is a different department. Its beyond my controll.. tried allready that path but no luck so far.
Will do extra try.

I have a node-red widget creating the time in my dashboard witch is extracted from the clients machine.. Ik was thinking using that extraction to use updating the system time. but offcause if client time is off, i would be lost...

Client is use connecting the dashboard...


OK, I understand, I think. You want to configure a dashboard button that when you click it sends the client browser time in the message.

I don't know how to do that. I suggest you start a new thread with something like "How to configure a dashboard button to send the client browser time in the message". Then someone who knows how to write the client side javascript to do that will no doubt help.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.