Node Red catch webpage click event

I have built an IOT interface webpage which has clickable buttons like a window which should open/close when clicked.

The hardware side is set up (Pi --> ESP --> window actuator controller), & I can send a window open/close message out through an inject node in Node Red but I'm not sure what needs to be done to replace my manual inject node with webpage 'click' events.

Any ideas?

1 Like

Here's a link to a project that explains how to put 'soft buttons' on a web page to turn LEDs on and off.
I'm sure you could modify it to suit to your needs.

Please read the instructions carefully about re-naming 'index.txt' to 'index.html'.

1 Like

Thanks for sharing Dave, it couldn't have been easier to get your scripts working!

Really glad to hear the scripts have been useful to someone.

2 Likes