Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/riclolsen/opc2mongodb
Free tool to read data from OPC sources and save to a MongoDB database.
https://github.com/riclolsen/opc2mongodb
communication-protocol database mongodb mongodb-database nosql opc opc-da scada upc-ua
Last synced: about 1 month ago
JSON representation
Free tool to read data from OPC sources and save to a MongoDB database.
- Host: GitHub
- URL: https://github.com/riclolsen/opc2mongodb
- Owner: riclolsen
- Created: 2019-05-11T23:22:57.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T01:05:56.000Z (over 1 year ago)
- Last Synced: 2024-10-10T05:41:25.648Z (about 1 month ago)
- Topics: communication-protocol, database, mongodb, mongodb-database, nosql, opc, opc-da, scada, upc-ua
- Language: C#
- Size: 18.6 KB
- Stars: 11
- Watchers: 2
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OPC2MongoDB
This tool allows to connect to OPC UA and DA servers, poll for data and subscribe to events and write data in real time to a MongoDB database.
It is simple to configure, the opc2mongodb.conf file is self explained, it must be put in the same folder as the exe file.
The code is written in C# and it uses a forked h-OPC and the oficial MongoDB libraries for C#.
Requires https://github.com/riclolsen/h-opc.
Requires the .NET fremework 4.6 or later.
Executable binaries are available for download in the Releases section.
Need any help? Create an issue here or contact me.
Here is my LinkedIn contact: https://www.linkedin.com/in/ricardo-olsen/.Example of config file:
#mongoURL user passwd ip port database
mongodb://mongouser:[email protected]:27017/opc2mongodb
# use as below for unauthenticated local database server
# mongodb://127.0.0.1:27017/opc2mongodb
# OPC SERVERS# OPC_UA_URL, READ_INTERVAL_IN_SECONDS, SERVER_ID=MONGO_COLLECTION_NAME, CERTIFICATE_FILE_PATH, CERTIFICATE_PASSWORD
opc.tcp://opcuaserver.com:48484, 10, Server1, cert.pfx ,secret123# OPC TAGS TO READ FROM THE SERVER
# OPC_TAG_PATH ,TYPE ,SUBSCRIBE ,MONGO_TAG
ns=1;s=Countries.US.Queens.Latitude ,Double ,Y ,US.Queens.Latitude
ns=1;s=Countries.US.Queens.Longitude ,Double ,N ,US.Queens.Longitude
# ... repeat for more servers