Fixed bug in drivers/vantage.py that causes below sea-level altitudes to be read as a large positive number.

This commit is contained in:
Tom Keffer
2015-01-03 17:14:10 +00:00
parent 0ac8a9d25e
commit f96c218d7d
3 changed files with 7 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
Should the archive file be backed up before adding the daily summaries?
- Probably.
Links to Wunderfixer seem to have gotten lost on the website.
wee_config_device --dump should be able to dump to a metric units database.
See if it is possible to make cheetahgenerator not require a default wx_binding

View File

@@ -1088,7 +1088,7 @@ class Vantage(weewx.drivers.AbstractDevice):
setup_bits = self._getEEPROM_value(0x2B)[0]
self.rain_year_start = self._getEEPROM_value(0x2C)[0]
self.archive_interval_ = self._getEEPROM_value(0x2D)[0] * 60
self.altitude = self._getEEPROM_value(0x0F, "<H")[0]
self.altitude = self._getEEPROM_value(0x0F, "<h")[0]
self.altitude_vt = weewx.units.ValueTuple(self.altitude, "foot", "group_altitude")
barometer_unit_code = unit_bits & 0x03

View File

@@ -8,6 +8,9 @@ installs.
Added a wait-and-check to the stop option in the weewx.debian rc script.
Fixed bug in the Vantage driver that causes below sea-level altitudes
to be read as a large positive number.
3.0.1 12/07/14