coussej / node-opcua-logger

An OPCUA Client for logging data to InfluxDB! 🔌 🏭
https://www.factry.io
MIT License
179 stars 63 forks source link

Cannot accept config.json file as config file. #74

Open henjoe opened 2 years ago

henjoe commented 2 years ago

Hi @coussej ,

I tried to use config.json file as my config file, however I received this error while starting the application:

"No such file or directory , [my path to config file] \config.toml"

I thought that the opcua logger uses either "toml" or "json" file as your read.md says: image

I am thinking of the code here under config.js:

image

It only looks for the config.toml file, but doesn't have logic on when the toml file is not available that it should look for config.json file instead.

Thank You.

Regards, Henjoe