From: Alexander Vasarab Date: Wed, 1 Jul 2020 00:55:41 +0000 (-0700) Subject: Flesh out all available/supported measurements X-Git-Tag: v2.0.0^2~8 X-Git-Url: https://wylark.com/src/infoex-autowx.git/commitdiff_plain/1a0db30b2b4d47b236876265832491dbf9cffae0 Flesh out all available/supported measurements --- diff --git a/README.md b/README.md index e450275..4a24833 100644 --- 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 --------------- diff --git a/infoex-autowx.py b/infoex-autowx.py index 57fef27..78279f2 100755 --- a/infoex-autowx.py +++ b/infoex-autowx.py @@ -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()