From: Alexander Vasarab Date: Sun, 29 Nov 2020 17:32:15 +0000 (-0800) Subject: Merge branch 'release-2.2.0' X-Git-Tag: v2.2.0^0 X-Git-Url: https://wylark.com/src/infoex-autowx.git/commitdiff_plain/2a76db6a9d50678b0dcf1a2bbce767542ac3e0d2?hp=1f6d79ab0d2c0555abe4cccebba0f350d2760894 Merge branch 'release-2.2.0' --- diff --git a/README.md b/README.md index 7c710d5..b2af012 100644 --- a/README.md +++ b/README.md @@ -235,6 +235,10 @@ Future plans Version history --------------- +- 2.2.0 (Nov 2020) + + Add support for Tmin/Tmax values (directly from MesoWest/NRCS). + - 2.1.0 (Nov 2020) Adjust precision of certain values before sending them to InfoEx. diff --git a/infoex-autowx.py b/infoex-autowx.py index baa8c84..ea23bc3 100755 --- a/infoex-autowx.py +++ b/infoex-autowx.py @@ -39,7 +39,7 @@ import zeep import zeep.cache import zeep.transports -__version__ = '2.1.0' +__version__ = '2.2.0' LOG = logging.getLogger(__name__) LOG.setLevel(logging.NOTSET) @@ -316,6 +316,8 @@ def setup_infoex_counterparts_mapping(provider): if provider == 'nrcs': iemap['PREC'] = 'precipitationGauge' iemap['TOBS'] = 'tempPres' + iemap['TMAX'] = 'tempMaxHour' + iemap['TMIN'] = 'tempMinHour' iemap['SNWD'] = 'hS' iemap['PRES'] = 'baro' iemap['RHUM'] = 'rH' @@ -326,6 +328,8 @@ def setup_infoex_counterparts_mapping(provider): elif provider == 'mesowest': iemap['precip_accum'] = 'precipitationGauge' iemap['air_temp'] = 'tempPres' + iemap['air_temp_high_24_hour'] = 'tempMaxHour' + iemap['air_temp_low_24_hour'] = 'tempMinHour' iemap['snow_depth'] = 'hS' iemap['pressure'] = 'baro' iemap['relative_humidity'] = 'rH'