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.
An illustration of my flow is shown below
I’ve setup the module in Ignition web interface
When I deployed the flow in NODE RED I get the following error :
I’d like to request for help with this and thank you.
Connection refused is a straightforward connectivity layer issue. Check your firewall(s), the ports in use, etc.
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.
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 and the associated Node-RED node look to intend connectivity to go against the Ignition Gateway itself (i.e. 8088/8043).
Thank you . Few things to mention here :
my ignition web interface is running at localhost : 8088
The MQTT Engine I’ve setup is at tcp://127.0.0.1:1883
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.
I have a mosquitto broker up and running at localhost : 1883
Sounds like you’ll want your ignition tag read node pointed to a server defined at http://localhost:8088. Something like below:
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.:
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:
I did the same changes but I still run into the error.
HTTP error: getaddrinfo ENOTFOUND localhost
Just out of curiosity, any different behavior if you use
127.0.0.1 instead of
Now it is a .json error
I have no idea what it’s referring to cause I do not have any .json code in the input
[MQTT Engine]Edge Nodes/InductionGroup/InductionTest/PLC 1/CurrentSeconds
That is my tag path and the screenshot for the inject block as shown below
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:
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).
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 @kcollins1