IgnitionModuleDevelopmentCommunity / IgnitionNode-RED

Adds support for Node-RED
Apache License 2.0
31 stars 7 forks source link

Browse for list of tag providers? #40

Closed TacknoC closed 1 month ago

TacknoC commented 2 months ago

Node-RED @ 3.1.0 node-red-contrib-ignition-nodes @ 1.5.10 Ignition @ 8.1.31 Ignition Node-RED Module @ 1.5.15

I am trying to replicate the results obtained by calling the following within Ignition (8.1) script console: print system.tag.browse("")

Using 'ignition tag browse' node, I am struggling to obtain a list of tag providers. If I configure an 'inject' node with the following: msg.payload = { "defaultTagProvider": "", "tagPath": "" }

I receive an error:

No tag path supplied

If I configure the 'inject' node with the following: msg.payload = { "defaultTagProvider": "", "tagPath": "/" } I receive an error:

Error executing command: java.lang.Exception: provider not found: edge

Interestingly, within the Ignition Server Configuration Node, I've left the 'Default Tag Provider" blank (the text 'default' is shown as default text - in grey). I've confirmed that adding a default provider here changes the error received above.

Is it possible to browse for tag providers?

iatraviscox commented 1 month ago

Fixed this issue in 1.5.16:

https://github.com/IgnitionModuleDevelopmentCommunity/IgnitionNode-RED/releases/tag/1.5.16

TacknoC commented 1 month ago

Confirmed, works perfectly! After updating both gateway module and Node-RED node, I created an inject node with the following: msg.payload = { "defaultTagProvider": null, "tagPath": null } I passed that payload to a tag browse node and was able to retrieve tag providers from the Ignition gateway.