# Ignition Tags in NODE RED

**URL:** <https://forum.inductiveautomation.com/t/ignition-tags-in-node-red/62789>\
**Category:** Ignition\
**Created:** [August 8, 2022, 6:13pm UTC](https://forum.inductiveautomation.com/t/ignition-tags-in-node-red/62789 "2022-08-08T18:13:23Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Snsn\_Nsns](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@Snsn\_Nsns](https://forum.inductiveautomation.com/u/Snsn_Nsns)\
**Post date:** [August 8, 2022, 6:13pm UTC](https://forum.inductiveautomation.com/t/ignition-tags-in-node-red/62789/1 "2022-08-08T18:13:23Z")

</div>

Dear All

Hello. I am working on a NODE RED flow and the broker is setup using the Ignition Web interface. I am trying to use the Ignition Tag Module in NODE RED to read and write the data from and to the Ignition designer tags via NODE RED.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/9/b98e4f51c73b62de21c372db5e98e681f6693be2.png)

An illustration of my flow is shown below  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/8/d82825001ca3b2141612c6e5946a0d4e58129f6c.png)

I’ve setup the module in Ignition web interface

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/2/123032913c563e5891ee255d9a69152b70b07acb.png)

When I deployed the flow in NODE RED I get the following error :  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/2/12af140762b5a316d61a28df0bc104b0a1cebfda.png)

I’d like to request for help with this and thank you.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 8, 2022, 6:47pm UTC](https://forum.inductiveautomation.com/t/ignition-tags-in-node-red/62789/2 "2022-08-08T18:47:15Z")

</div>

Connection refused is a straightforward connectivity layer issue. Check your firewall(s), the ports in use, etc.

---

<div class="post-metadata">

**Author:** ![Snsn\_Nsns](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@Snsn\_Nsns](https://forum.inductiveautomation.com/u/Snsn_Nsns)\
**Post date:** [August 8, 2022, 6:50pm UTC](https://forum.inductiveautomation.com/t/ignition-tags-in-node-red/62789/3 "2022-08-08T18:50:45Z")

</div>

Thank you. How do I allow ignition through the firewall? I have it running on chrome and chrome is already allowed to communicated via firewall.

---

<div class="post-metadata">

**Author:** ![kcollins](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kcollins/32/19646_2.png) [@kcollins](https://forum.inductiveautomation.com/u/kcollins)\
**Post date:** [August 8, 2022, 7:05pm UTC](https://forum.inductiveautomation.com/t/ignition-tags-in-node-red/62789/4 "2022-08-08T19:05:48Z")

</div>

Another observation is that that error seems to be indicating connection attempts to 1883, which would typically be an MQTT broker. The [Ignition Node-RED Module](https://github.com/IgnitionModuleDevelopmentCommunity/IgnitionNode-RED) and the associated [Node-RED node](https://flows.nodered.org/node/node-red-contrib-ignition-nodes) look to intend connectivity to go against the Ignition Gateway itself (i.e. 8088/8043).

---

<div class="post-metadata">

**Author:** ![Snsn\_Nsns](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@Snsn\_Nsns](https://forum.inductiveautomation.com/u/Snsn_Nsns)\
**Post date:** [August 8, 2022, 7:23pm UTC](https://forum.inductiveautomation.com/t/ignition-tags-in-node-red/62789/5 "2022-08-08T19:23:36Z")

</div>

Thank you . Few things to mention here :

1. my ignition web interface is running at localhost : 8088

2. The MQTT Engine I’ve setup is at tcp://127.0.0.1:1883

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/3/235e7b7076f08749a9d3b4ee8777ed1ff516e1c4.png)

1. In the same flow i’ve shown above, I got few more modules working on an MQTT flow and these are connected to tcp://127.0.0.1:1883. It says connected and the NODE RED flow works for that part. I don’t know why it won’t let me establish a connection when working with NODE RED API TOKENS module in ignition and using the respective corresponding module in NODE RED.

2. I have a mosquitto broker up and running at localhost : 1883

---

<div class="post-metadata">

**Author:** ![kcollins](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kcollins/32/19646_2.png) [@kcollins](https://forum.inductiveautomation.com/u/kcollins)\
**Post date:** [August 8, 2022, 8:02pm UTC](https://forum.inductiveautomation.com/t/ignition-tags-in-node-red/62789/6 "2022-08-08T20:02:47Z")

</div>

Sounds like you’ll want your _ignition tag read_ node pointed to a server defined at [http://localhost:8088](http://localhost:8088). Something like below:

![2022-08-08 at 2.59 PM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/3/4306867cbd5726cafb7d60a376b0c50931860202.png)

Also, it looks like if you want to use the dynamic behavior, based on the docs, you supply `msg.payload.tagPath`, such as in your inject node, e.g.:

 ![2022-08-08 at 3.01 PM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/c/0c44a605401dbc02789c4e9389eef6d3afff9d05.png)

That should net you a successful read, assuming you’ve entered the API token and associated secret password in the _ignition tag read_ server configuration:

 ![2022-08-08 at 2.59 PM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/7/a7a7a742f1eb57cfad23645d749203e452e3f120.png)

---

<div class="post-metadata">

**Author:** ![Snsn\_Nsns](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@Snsn\_Nsns](https://forum.inductiveautomation.com/u/Snsn_Nsns)\
**Post date:** [August 8, 2022, 8:21pm UTC](https://forum.inductiveautomation.com/t/ignition-tags-in-node-red/62789/7 "2022-08-08T20:21:30Z")

</div>

I did the same changes but I still run into the error.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/e/1e44d1fba35d9e746abc11aa4dab175e4da12c52.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/6/867ce3164e69a66fe7018b350941292dccc09291.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/2/620fc9ca12a54cf2f45202cd82a8b83bf3d42efb.png)

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/2/e2d16d7df679dbfac14308d2b2ce3f5d41c7981b.png)

HTTP error: getaddrinfo ENOTFOUND localhost

---

<div class="post-metadata">

**Author:** ![kcollins](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kcollins/32/19646_2.png) [@kcollins](https://forum.inductiveautomation.com/u/kcollins)\
**Post date:** [August 8, 2022, 8:24pm UTC](https://forum.inductiveautomation.com/t/ignition-tags-in-node-red/62789/8 "2022-08-08T20:24:23Z")

</div>

> [@Snsn\_Nsns](#):
>
> HTTP error: getaddrinfo ENOTFOUND localhost

Just out of curiosity, any different behavior if you use `127.0.0.1` instead of `localhost`?

---

<div class="post-metadata">

**Author:** ![Snsn\_Nsns](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@Snsn\_Nsns](https://forum.inductiveautomation.com/u/Snsn_Nsns)\
**Post date:** [August 8, 2022, 8:30pm UTC](https://forum.inductiveautomation.com/t/ignition-tags-in-node-red/62789/9 "2022-08-08T20:30:37Z")

</div>

Now it is a .json error

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/8/f832da3619704417eb4d61ce1c8b7e30f938a5a6.png)

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/5/d565d35c130c9c5947a4bc959bc403f6c39d1369.png)

I have no idea what it’s referring to cause I do not have any .json code in the input

---

<div class="post-metadata">

**Author:** ![Snsn\_Nsns](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@Snsn\_Nsns](https://forum.inductiveautomation.com/u/Snsn_Nsns)\
**Post date:** [August 8, 2022, 8:36pm UTC](https://forum.inductiveautomation.com/t/ignition-tags-in-node-red/62789/10 "2022-08-08T20:36:01Z")

</div>

[MQTT Engine]Edge Nodes/InductionGroup/InductionTest/PLC 1/CurrentSeconds

That is my tag path and the screenshot for the inject block as shown below

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/e/5e105edc39f01b731f79777216b936cbfec360e3.png)

---

<div class="post-metadata">

**Author:** ![kcollins](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kcollins/32/19646_2.png) [@kcollins](https://forum.inductiveautomation.com/u/kcollins)\
**Post date:** [August 8, 2022, 9:24pm UTC](https://forum.inductiveautomation.com/t/ignition-tags-in-node-red/62789/11 "2022-08-08T21:24:45Z")

</div>

Hmmmm, I’m not sure. You might try recreating the server definition by editing your `ignition-tag-read` node, then editing the _Ignition Server_ and trying to _Delete_ it. Then, reconfigure it. It seems odd that your _Ignition Server_ node doesn’t show the same as mine:

![2022-08-08 at 4.22 PM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/3/e3f2fbff455dea5e0be49a908dbf16a93731cb79.png)

For what its worth, I tested this on:

- Ignition 8.1.19
- Node-RED v3.0.1
- node-red-contrib-ignition-nodes v1.5.9 (and associated Ignition Module).

---

<div class="post-metadata">

**Author:** ![Snsn\_Nsns](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@Snsn\_Nsns](https://forum.inductiveautomation.com/u/Snsn_Nsns)\
**Post date:** [August 8, 2022, 9:31pm UTC](https://forum.inductiveautomation.com/t/ignition-tags-in-node-red/62789/12 "2022-08-08T21:31:16Z")

</div>

I got the exact same version of the software and applications as mentioned above. I dont understand why this module won’t work, I am working further on this and I appreciate your time. Thank you @kcollins

---

<div class="post-metadata">

**Author:** ![Pavel\_Metrokhin](https://avatars.discourse-cdn.com/v4/letter/p/8baadc/32.png) [@Pavel\_Metrokhin](https://forum.inductiveautomation.com/u/Pavel_Metrokhin)\
**Post date:** [November 2, 2022, 6:03pm UTC](https://forum.inductiveautomation.com/t/ignition-tags-in-node-red/62789/13 "2022-11-02T18:03:23Z")

</div>

HI All, i'm having issues with reading tags from Ignition on Groov Opto 22 Epic PR1. I have installed node red on Ignition OPC (7.9 Ignition), installed Epic node red node on Groov's Node Red (v2.2.2). I'm creating a simple setting to read the tag from the server. It shows CONFIG\_ERROR. Please see screenshot. If you could please help me out i'd greatly appreciate it. I have creted the token and authenticate it on Node Rred.

 ![Screenshot_1](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/1/61266a167245acbdfc8668fa7becf02f445b8928.png)
