# Pinging Network and outputting result via gpio

**URL:** <https://discourse.nodered.org/t/pinging-network-and-outputting-result-via-gpio/50864>\
**Category:** General\
**Created:** [10 September 2021 18:19 UTC](https://discourse.nodered.org/t/pinging-network-and-outputting-result-via-gpio/50864 "2021-09-10T18:19:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brownjv](https://avatars.discourse-cdn.com/v4/letter/b/9f8e36/32.png) [@Brownjv](https://discourse.nodered.org/u/Brownjv)\
**Post date:** [10 September 2021 18:19 UTC](https://discourse.nodered.org/t/pinging-network-and-outputting-result-via-gpio/50864/1 "2021-09-10T18:19:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [10 September 2021 20:08 UTC](https://discourse.nodered.org/t/pinging-network-and-outputting-result-via-gpio/50864/2 "2021-09-10T20:08:53Z")

</div>

Welcome to the forum @Brownjv

I would start by using [node-red-node-ping](https://flows.nodered.org/node/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](https://www.youtube.com/playlist?list=PLyNBB9VCLmo1hyO-4fIZ08gqFcXBkHy-6). 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](https://nodered.org/docs/getting-started/raspberrypi)

---

<div class="post-metadata">

**Author:** ![Brownjv](https://avatars.discourse-cdn.com/v4/letter/b/9f8e36/32.png) [@Brownjv](https://discourse.nodered.org/u/Brownjv)\
**Post date:** [10 September 2021 20:11 UTC](https://discourse.nodered.org/t/pinging-network-and-outputting-result-via-gpio/50864/3 "2021-09-10T20:11:28Z")

</div>

Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [9 November 2021 20:12 UTC](https://discourse.nodered.org/t/pinging-network-and-outputting-result-via-gpio/50864/4 "2021-11-09T20:12:20Z")

</div>

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