fixed bug in CWOP upload

This commit is contained in:
Matthew Wall
2013-03-04 13:21:58 +00:00
parent 4c134a7d81
commit 9a904b24ef
2 changed files with 4 additions and 1 deletions

View File

@@ -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']

View File

@@ -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