Flesh out all available/supported measurements
authorAlexander Vasarab <alexander@wylark.com>
Wed, 1 Jul 2020 00:55:41 +0000 (17:55 -0700)
committerAlexander Vasarab <alexander@wylark.com>
Wed, 1 Jul 2020 00:55:41 +0000 (17:55 -0700)
README.md
infoex-autowx.py

index e4502750d602210db93af5512da6b79e43d87842..4a24833e0e31da342fa4eec23edcbf30f69917f7 100644 (file)
--- a/README.md
+++ b/README.md
@@ -178,6 +178,31 @@ indicates that I'd like to import "Temperature" and "Precipitation
 accumulated" from the MesoWest station at Santiam Pass, OR, into InfoEx,
 and that I want that data in imperial units.
 
+A note on supported measurements
+--------------------------------
+
+While this program supports several measurements, and will faithfully
+request all of the ones you specify (provided they're supported), the
+weather station may not record them. In this case, the data will simply
+be ignored (i.e. it will NOT log "0" when there's no measurement
+available).
+
+
+InfoEx provides a mechanism for inspecting your automated weather
+station data, so use that after setting this program up and compare it
+with the data you see in your web browser.
+
+Here's the list of measurements currently supported:
+
+precipitationGauge
+tempPres
+hS
+baro
+rH
+windSpeedNum
+windDirectionNum
+windGustSpeedNum (only supported by MesoWest)
+
 Version history
 ---------------
 
index 57fef27509441b13b3db5e74ff332418d3400ca9..78279f2672cdf0d1f0d2eec5d961a906836fb545 100755 (executable)
@@ -192,10 +192,21 @@ if data['provider'] == 'nrcs':
     iemap['PREC'] = 'precipitationGauge'
     iemap['TOBS'] = 'tempPres'
     iemap['SNWD'] = 'hS'
+    iemap['PRES'] = 'baro'
+    iemap['RHUM'] = 'rH'
+    iemap['WSPD'] = 'windSpeedNum'
+    iemap['WDIR'] = 'windDirectionNum'
+    # unsupported by NRCS:
+    # windGustSpeedNum
 elif data['provider'] == 'mesowest':
     iemap['precip_accum'] = 'precipitationGauge'
     iemap['air_temp'] = 'tempPres'
     iemap['snow_depth'] = 'hS'
+    iemap['pressure'] = 'baro'
+    iemap['relative_humidity'] = 'rH'
+    iemap['wind_speed'] = 'windSpeedNum'
+    iemap['wind_direction'] = 'windDirectionNum'
+    iemap['wind_gust'] = 'windGustSpeedNum'
 
 # floor time to nearest hour
 dt = datetime.datetime.now()