gavinying / modpoll

A New Command-line Tool for Modbus and MQTT
https://gavinying.github.io/modpoll
MIT License
84 stars 17 forks source link

Data transformation #57

Open dakhnod opened 1 month ago

dakhnod commented 1 month ago

Thanks for your great work!

I am reading some registers that need a factor and an offset to be applied to the register value. Is there any way to achieve this through modpoll in the configuration?

gavinying commented 1 month ago

Hi Daniel, current version only support applying a ratio but not offset.

However, if you use MQTT as interface, I would recommend you to process data by subscribing on raw data topic and publish processed data to new topics. By doing this way, you always keep the first hand raw data and have the flexibility to apply different algorithms or even chain them as a pipeline.