Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for bias/constant in linear scaling of gauge values #74

Open
joe-macmillan opened this issue May 9, 2024 · 0 comments
Open

Comments

@joe-macmillan
Copy link

Issue Summary:

When linearly scaling the values read from registers, certain sensors/devices may require adjustment for circuit bias. For instance, I have an Advantech device that needs converting register values using a linear function to obtain correct voltages.

The current version of the modbus-exporter only supports a factor for scaling. Therefore, I had to fork the project and add support for bias as well, which lets me scale my readings with the formula value = factor * reading - bias.

Proposed Solution:

I've created a fork of the modbus-exporter that incorporates support for the bias parameter. I would be happy to share my fork here for consideration. This addition could provide users with more flexibility in scaling register values.

Future Development:

While my current fork is allowing for linear scaling, I also may need support for polynomial conversion of values in the future.

Your feedback and thoughts on this feature would be greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant