node-opcua-logger icon indicating copy to clipboard operation
node-opcua-logger copied to clipboard

OPC Status monitoring

Open alexmc1510 opened this issue 5 years ago • 0 comments

Hello, good morning.

I continue working with this excellent software. It works really well. I am trying to implement an alert system which uses red and green color to represent the opcstatus quality of all of my assets but I am having some issues, I don't really know if they come from node-opcua-logger or if they come from InfluxDB query. The goal is very simple, to represent the status of the machines OPC using red and green colors dependig on opc quality "good" or bad".

Attached you can find a sample screenshot: Capture

Attached you can find a sample config file. All the tags that I am using are called "OPC" and are booleans. `# A polled node

#XXXXXX_CNC [[measurements]] name="OPC" dataType="boolean" tags= {plant="XXXX", asset="XXXX", device="CNC"} nodeId="ns=2;s=XXXXXXXXXXXXXXXXXXXX" collectionType="polled" pollRate=1#samples/minute deadbandAbsolute=0 deadbandRelative=0

'# A polled node

#XXXXXXXXXXX_CNC [[measurements]] name="OPC" dataType="boolean" tags= {plant="XXXXX", asset="XXXX", device="PC"} nodeId="ns=2;s=XXXXXXXXXXXXXXXXXXXXXXXX" collectionType="polled" pollRate=1#samples/minute deadbandAbsolute=0 deadbandRelative=0 ` Capture3

Attached you can find InfluxDB query in Grafana: Capture2

Could you help me? Something that I can show is that apparently, values are not recorded when quality is "Bad".

Thanks in advance!!!

alexmc1510 avatar Sep 13 '19 08:09 alexmc1510