mikakaraila / node-red-contrib-opcua

A Node-RED node to communicate OPC UA. Uses node-opcua library.
Other
208 stars 191 forks source link

get historical data when query given from any client to opcua server with start time and stop time #678

Open vnvasireddy opened 2 months ago

vnvasireddy commented 2 months ago

hi,

i have used installHistorian for specific nodeid to save historical data, but if in any case server restarts the data saved is completely wiped off starts saving data from that point of time of restart.

Is there any solution that if any client requests for data with start time and stop time, opcua server will fetch data from database and publish it.

Thanks in advance vani

mikakaraila commented 2 months ago

Sorry the current implementation is memory based ring buffer. I just have not had time to add interface for the database.

vnvasireddy commented 2 months ago

ok..i will try from my side if you can help me in catching any notification or event in server when requested from UAexpert tool or any other client.

Thanks in advance, vani

mikakaraila commented 2 months ago

Actually this should be implemented another way. Extending existing variable that will connect to database. I have made implementation, but it is "legacy". Needs a bit more time to make it for general purpose.