Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPC Status monitoring #22

Open
alexmc1510 opened this issue Sep 13, 2019 · 0 comments
Open

OPC Status monitoring #22

alexmc1510 opened this issue Sep 13, 2019 · 0 comments

Comments

@alexmc1510
Copy link

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!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant