Add Tmin/Tmax support
authorAlexander Vasarab <alexander@wylark.com>
Sun, 29 Nov 2020 17:26:14 +0000 (09:26 -0800)
committerAlexander Vasarab <alexander@wylark.com>
Sun, 29 Nov 2020 17:26:14 +0000 (09:26 -0800)
infoex-autowx.py

index baa8c84dd63c6184194c92978a5b5476a148d179..fdaec3485e2f09534568f11b6d3ef94dc6938300 100755 (executable)
@@ -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'