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

Get-SensorHistory Failing When Channel Scaling Division/Multiplication Is Defined #241

Closed
lordmilko opened this issue Sep 15, 2021 · 1 comment
Labels
bug Issues that have been confirmed to be bugs in PrtgAPI and will be fixed in a future version

Comments

@lordmilko
Copy link
Owner

As ascertained in #221, Get-SensorHistory fails when a channel has been configured with a custom Scaling Division or Scaling Multiplication. This results in a discrepancy between the raw and display value of the channel, resulting in ConvertUtilities.ToDynamicDouble failing to be able to convert the value properly

Get-SensorHistory should be modified to get the channels of the sensor being retrieved, and automatically apply any required scaling division/multiplication values to the raw channel value prior to passing it to ConvertUtilities.ToDynamicDouble. When -Raw is specified, Get-SensorHistory should still emit the original, unmodified raw value

@lordmilko lordmilko added the bug Issues that have been confirmed to be bugs in PrtgAPI and will be fixed in a future version label Sep 15, 2021
@lordmilko
Copy link
Owner Author

Remediated in PrtgAPI 0.9.17-preview.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that have been confirmed to be bugs in PrtgAPI and will be fixed in a future version
Projects
None yet
Development

No branches or pull requests

1 participant