onewayautomation / ogamma-logger

Integration tool to collect, store, visualize, analyze OPC UA data.
50 stars 16 forks source link

Ogamma logger logs all values as unknown into influxdb #12

Closed mjkl-gh closed 1 year ago

mjkl-gh commented 4 years ago

After messing around a bit I had to recreate a instance since it started spamming segmentation faults.

I accidentally pulled latest instead of the version I was on before (probably 7.1) now when logging to influxdb every thing gets written to table unknown where n is unknown instead of d where n=id

RavilN commented 4 years ago

Hi, There a lots of changes in version 0.8.1, including mapping to InfluxDB measurements and tags now is configurable. Upgrade from older versions might not pick up right settings for that mapping, sorry. Upgrades will be really supported after version 1.0. To keep the same mapping as in versions before 0.8.1, you need to open InfluxDB connection settings via menu Settings/Time-Series Database, and set option "Key Name Generation Mode" to "Use Variable Id", and in the field "Database Specific settings/json" enter {"measurement":"d"} (including curly brackets). Sorry for inconvenience, Ravil

mjkl-gh commented 4 years ago

Aah that explains, It does seem like an enormous improvement. I've tried the settings you've suggested. It now fills the variables into the correct measurement (d), however Key name is still unknown while setting key name generation mode to use variable id

RavilN commented 1 year ago

Cannot be reproduced in the latest version.