Make testtags.php.tmpl UoM aware

Issue #8 resolved
Gary Roderick created an issue

Testtags.php.tmpl calculates a number of tags that have dependencies on a number of raw observations (eg temperature, wind speed etc) that, depending on the users configuration of Weewx, could be in a number of different units. Similarly, there are a number of unit specific tags in testtags.php that may require unit conversion. Testtags.php.tmpl needs to be made UoM aware so that a consistent testtags.php is produced irrespective of the Weewx configuration. All python formulae will need to be checked and where necessary made UoM aware.

Comments (2)

  1. Gary Roderick reporter

    As of 11pm 12 Jun commit following calcs and tags have been made UoM aware: Humidex Cloud base Feels like Heat color word apparent temperature Beaufort wind speed Barometric pressure trends (1hr and 3hr) Rain days

    BaroinUS2DP tag has been made UoM aware.

    Hot/cold days and wind run calcs/tags are fine as is. Hot/cold days tags are provided in celsius only and existing calcs already take care of this. Wind run calcs take raw average wind speed in whatever units and multiply by relevant time period giving a result in the associated distance (ie km/h -> km, m/s -> m, mph ->mi, knots -> nm).

    Consider all current calcs/tags are UoM aware. Could close issue but really would like to see someone who runs non-metric data do a test to confirm correct calculations.

  2. Gary Roderick reporter

    Testtags.php has been UoM aware for some time now despite incorrect unit feed from wdtags.py. Recent remedy of units issue in wdtags.py now provides sufficient evidence that this issue is complete and can be closed.

  3. Log in to comment