From 9a904b24ef78dfecb8a2864cd85379f9329f42ed Mon Sep 17 00:00:00 2001 From: Matthew Wall Date: Mon, 4 Mar 2013 13:21:58 +0000 Subject: [PATCH] fixed bug in CWOP upload --- bin/weewx/restful.py | 2 +- docs/changes.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/weewx/restful.py b/bin/weewx/restful.py index 49d62745..2dd1a849 100644 --- a/bin/weewx/restful.py +++ b/bin/weewx/restful.py @@ -476,7 +476,7 @@ class CWOP(REST): (u, g) = weewx.units.getStandardUnitType(record['usUnits'], 'barometer') # Convert to millibars: baro = weewx.units.convert((record['barometer'], u, g), 'mbar') - baro_str = "b%5d" % (baro[0]*10.0) + baro_str = "b%05d" % (baro[0]*10.0) # Humidity: humidity = record['outHumidity'] diff --git a/docs/changes.txt b/docs/changes.txt index 95067ee8..d009eb26 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -6,6 +6,9 @@ weewx change history A bad record archive type now causes a catch up to be abandoned, rather than program termination. +Fixed bug in CWOP upload that put spaces in the upload string if the pressure +was under 1000 millibars. + Added illuminance-to-radiation conversion for FineOffsetUSB driver. Added pressure calibration option to wee_config_fousb