airgradient-prometheus
airgradient-prometheus copied to clipboard
Added function to convertTemps
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