airgradient-prometheus icon indicating copy to clipboard operation
airgradient-prometheus copied to clipboard

Added function to convertTemps

Open MCDELTAT opened this issue 3 years ago • 0 comments

This pull request provides a unified location to handle the conversion between temperature units. Currently, the metrics endpoint remained in Celcius even if the display showed Fahrenheit by user choice.

It's been a while since I've used C++, so let me know if the standards for naming things are off, but it seems like functions and variables are Lower Camel Case, while Types (classes, structs) are Upper Camel Case.

See: https://google.github.io/styleguide/cppguide.html

MCDELTAT avatar Jul 21 '22 15:07 MCDELTAT