ET is now calculated correctly with software record generation.

This commit is contained in:
Tom Keffer
2013-09-10 21:21:57 +00:00
parent fd487cb680
commit c7d6ea3efa
3 changed files with 7 additions and 6 deletions

View File

@@ -1,4 +1,2 @@
TODO before the next release:
ET values are not being generated when using software record generation.

View File

@@ -317,9 +317,9 @@ class WXAccum(BaseAccum):
record['windDir'] = self[obs_type].vec_dir
record['windGust'] = self[obs_type].max
record['windGustDir'] = self[obs_type].max_dir
elif obs_type == 'rain':
# We need total rain during the timespan, not the average:
record['rain'] = self[obs_type].sum
elif obs_type in ['rain', 'ET']:
# We need totals during the timespan, not the average:
record[obs_type] = self[obs_type].sum
elif obs_type in ['hourRain', 'dayRain', 'monthRain', 'yearRain', 'totalRain']:
# For these types, we want the last observation:
record[obs_type] = self[obs_type].last

View File

@@ -1,7 +1,7 @@
weewx change history
--------------------
2.X.Y 09/ZZ/13
2.5.0 09/ZZ/13
Weewx now allows easier localization to non-English speaking locales.
In particular, set the environment variable LANG to your locale, and
@@ -14,6 +14,9 @@ speed is zero.
The LOOP value for daily ET on Vantages was too high by a factor of 10.
This has been corrected.
Fixed a bug that caused values of ET to be miscalculated when using
software record generation.
Ported to Korora 19 (Fedora 19). Thanks to user zmodemguru!
Plots under 16 hours in length, now use 1 hour increments (instead of