Pinging Network and outputting result via gpio

Hi all,

New to Node Red and I am curious what would be the appropriate route for pinging a website or ip address and if the ping is successful activate a gpio pin and if the ping is unsuccessful activate another gpio pin...the idea is to show a green led for operational and a red led for unsuccessful

Welcome to the forum @Brownjv

I would start by using node-red-node-ping to do the ping and then GPIO Out nodes to drive the outputs.

Do it in stages, start by getting the ping working.

I recommend watching this playlist: Node-RED Essentials. The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot in about 1 hour. A small investment for a lot of gain.

Edit: Assuming you are running on a Pi then start with this link to install node-red. Running on Raspberry Pi : Node-RED

1 Like

Thank you!

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