X-Git-Url: https://wylark.com/src/infoex-autowx.git/blobdiff_plain/c4cddf1c8988b241822cacc00c85f2bfc5673959..f7f3eefd50db8c43fd253b38bcb7e9145ce6bcae:/infoex-autowx.py?ds=inline diff --git a/infoex-autowx.py b/infoex-autowx.py index 1f25bc5..2bac782 100755 --- a/infoex-autowx.py +++ b/infoex-autowx.py @@ -43,7 +43,7 @@ import zeep import zeep.cache import zeep.transports -__version__ = '3.2.1' +__version__ = '3.2.2' LOG = logging.getLogger(__name__) LOG.setLevel(logging.NOTSET) @@ -294,6 +294,8 @@ def main(): infoex['wx_data'][element_cd] = round(infoex['wx_data'][element_cd]) elif element_cd in ['TOBS', 'air_temp', 'PRES', 'pressure']: infoex['wx_data'][element_cd] = round(infoex['wx_data'][element_cd], 1) + elif element_cd in ['PREC', 'precip_accum']: + infoex['wx_data'][element_cd] = round(infoex['wx_data'][element_cd], 2) # CONSIDER: Casting every value to Float() -- need to investigate if # any possible elementCds we may want are any other data