I'm working on an app that reads the archive and loop data as it comes in and emits JSON-formatted output. I want to make sure to always convert that data to metric values.
Is there a weewx-ish standard way to take a speed and always generate mps ? Or a temperature and always emit degC, and so on ?
I didn't see any mph=>mps conversion routines but that's easy of course. What I wasn't certain on was how to decide from the packet/record if that conversion needed to be done, given how configurable weewx is for setting unit systems on a field by field basis ?
Any suggestions or examples I might look at ?