Commit Graph

3125 Commits

Author SHA1 Message Date
Tom Keffer
91987c61d8 Added upgrade instructions for patching.
V4.3.0a2
2020-12-11 16:05:57 -08:00
Tom Keffer
634c13a79b Merge branch 'recalc_weights' into development
# Conflicts:
#	docs/upgrading.htm
2020-12-11 15:48:24 -08:00
Tom Keffer
02230d310d Auto-patch daily summaries on startup. 2020-12-11 09:07:44 -08:00
Tom Keffer
7bff7e0d85 Introduce new schema wview_small. Use it for the test suites.
Tests take a little more than half the time with the smaller schema.
2020-12-10 06:19:45 -08:00
Tom Keffer
3d63666961 Fixed restarting date when recovering from an aborted backfill.
Simplified algorithms to calculate start/stop dates.
2020-12-09 18:02:31 -08:00
Tom Keffer
c1901592b4 Add --reweight command for wee_database 2020-12-07 15:11:46 -08:00
Tom Keffer
cfdf5bcae7 Allow specifying date ranges for reweighing. 2020-12-07 15:11:21 -08:00
Tom Keffer
ffa991a153 Use recalculate_weights() instead of IntervalWeighting object 2020-12-06 06:23:41 -08:00
Tom Keffer
e5bfb569da Initial cut at directly recalculating the daily summary weights.
With this approach, it is not necessary to rebuild all the daily summaries.
2020-12-05 12:36:45 -08:00
Tom Keffer
2831b7a58c Merge branch 'master' into development
# Conflicts:
#	docs/changes.txt
2020-11-30 14:16:05 -08:00
Tom Keffer
9510f3895a Fixed problem that caused daily summary weights to revert to V1.0 style weights. 2020-11-30 11:33:54 -08:00
Tom Keffer
79f9133df3 One, and only one, of options install, upgrade, and reconfigure.
Fixes issue #622.
2020-11-29 17:38:31 -08:00
Tom Keffer
737c4dfe0e Fixed problem when looking up stars with more than one word in their name.
Fixes issue #620.
2020-11-22 17:39:39 -08:00
Tom Keffer
4bc97dff38 Fixed corner case for windDir when using software record generation,
ignore_zero_wind=True, and windSpeed=0 for entire record interval. Now emits
last windDir value.
2020-11-22 06:15:13 -08:00
Tom Keffer
086558aacc Merge branch 'master' into development 2020-11-17 05:08:06 -08:00
Tom Keffer
8b3727a7a2 Optimized querying first, firsttime, last, lasttime, maxtime, and mintime. 2020-11-17 05:07:20 -08:00
Tom Keffer
a3170d25a5 Changed name of ignore_zero_wind to force_null.
Added test for it.
Check for lingering values of other [StdWXCalculate] values.
2020-11-16 16:54:11 -08:00
Tom Keffer
6456ef97fb v4.3.0a1 2020-11-11 09:07:43 -08:00
Tom Keffer
adb8b4ebfe Changed how various undocumented parameters in [StdWXCalculate] are specified.
The only one people are likely to have used is ignore_zero_wind. See the
Upgrading Guide.

Documented the various [StdWXCalculate] options.
2020-11-11 06:10:18 -08:00
Tom Keffer
0215e41f5a Added old algorithm for calculating heat index. User selectable.
Documented the StdWXCalculate options and algorithms.
2020-11-06 16:07:02 -08:00
Tom Keffer
3db414ba37 Made sure all instance variables are initialized in __init__.
Minor refactoring. Got rid of preLoadServices() and postLoadServices().
Make sure all service lists are, in fact, lists.
Reformatted.
2020-11-05 16:06:21 -08:00
Tom Keffer
618caf76f2 Service weewx.wxxtypes.StdDelta was inadvertently left out of the list of
services to be run. Fortunately, it is not used. Yet. Added it back in.
2020-10-28 14:34:47 -07:00
Tom Keffer
efedd29ef5 V4.2.0 2020-10-26 17:58:43 -07:00
Tom Keffer
e118056212 v4.2.0b2 2020-10-26 08:18:57 -07:00
Tom Keffer
b7e33def1b Revisit issue #613. Again.
Fixed spelling of illuminance.

Removed observation type "luminosity" from any group, at least until we
understand what it means.

Added observation type "illuminance", member of "group_illuminance".
2020-10-25 04:49:46 -07:00
Tom Keffer
07bb29f6f9 Revisit issue #613.
No unit group for lightning_energy.
New group group_illuminence, with new unit lux and member luminosity.
2020-10-24 17:53:13 -07:00
Tom Keffer
2efa6b7398 Added the new data types in the extended_wview schema to the WeeWX types
system. Fixes issue #613.

New types: co, co2, lightning_energy, luminosity, nh3, no2, noise, o3,
pb, snowDepth, snowMoisture, snowRate.

New unit groups: group_db and group_fraction.

New units: dB, ppm, and mega_joule.
2020-10-24 10:32:12 -07:00
Tom Keffer
2cde1978fa v4.2.0b1 2020-10-23 14:28:06 -07:00
Tom Keffer
6565d03e06 Refactored initializers a bit. 2020-10-23 13:54:52 -07:00
Tom Keffer
c42c20be2e Update use of Thread.isAlive() to Thread.is_alive(). 2020-10-23 10:29:43 -07:00
Tom Keffer
749f30dddb Tags always return unicode now. 2020-10-22 14:59:06 -07:00
Tom Keffer
a781fd5398 Run xtype_services just before archive_services.
Version 4.2.0a2
2020-10-22 05:07:48 -07:00
Tom Keffer
7a522d8707 Initialize last_direction with value zero, instead of None. 2020-10-21 05:07:57 -07:00
Tom Keffer
0946bfe88b Add option force_direction.
WU claims a station is "offline" if it sends a null wind direction, even when wind
speed is zero. If option 'force_direction' is set, cache the last non-null wind
direction and use it instead.
2020-10-19 16:41:27 -07:00
Tom Keffer
1993f13e0d 4.2.0a1 2020-10-19 06:10:14 -07:00
Tom Keffer
bef21515d9 Squashed commit of the following:
commit bdae391f4cc0b16eb2914b3b077e8c32027e40e9
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Sun Oct 18 05:44:29 2020 -0700

    Ignore attributes 'mro', 'im_func', 'func_code', '__func__', '__code__', '__init__', '__self__'

commit 81d901f2227682dac19ab739c6c0b6c6c7d3221f
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Thu Sep 24 17:47:15 2020 -0700

    Pass on the option_dict.
    Get rid of no longer used aggregation_interval.
    Generalize __call__()

commit 9020b6a14da717aae5f791bdb6d9a6f5a132695e
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Tue Sep 22 03:52:24 2020 -0700

    __call__ returns new instance of AggTypeBinder, rather than modify self

commit 8f4bfb9ac3d1b0cb7b07650fa87661351095e21e
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Fri Sep 18 15:25:42 2020 -0700

    Introduced class AggTypeBinder.
    In anticipation of allowing tags that return JSON structures.
2020-10-18 05:52:57 -07:00
Tom Keffer
e99dd45818 Squashed commit of the following:
commit 5023ea5acdee7b7698d3f9e59118711503bbb2ab
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Sun Oct 18 04:38:05 2020 -0700

    Suggest more xtypes examples.

commit 3c8b0e77c4a0c5163bde5df513f5eda37eac9853
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Sat Oct 17 08:07:31 2020 -0700

    Added sample image of vapor_p.
    Added comment about ordering matters.

commit 9ebc989d702f66249f6caafbd9ba1e9739eb42d4
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Sat Oct 17 06:15:18 2020 -0700

    XType class Delta can now use the same cumulative type more than once.
    Added tests.

commit 47857d83817a4fb32ab645245239cf5a56c65b19
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Fri Oct 16 16:29:18 2020 -0700

    Added XType 'Delta', for calculating differences from cumulative totals.

commit bb8a07bd3e828f7cd7f20660c8702370151bbb96
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Fri Oct 16 12:11:01 2020 -0700

    Reformat xtypes documentation. Finishes fix for issue #491.

commit a27d6e1dbdee272c2a2b22bb58d162cbb7472049
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Fri Oct 16 12:09:33 2020 -0700

    Upgrade now adds new service group xtypes_services.
    Update tests to follow.

commit 611dbc60d0908294ae268019c48f2ca7693f0615
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Fri Oct 16 09:11:47 2020 -0700

    No heat index for temperatures under 40F.

commit fe9e60818295fcc8386501425b259ea2111005d7
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Fri Oct 16 08:22:37 2020 -0700

    Update comments on get_series()

commit 14f3a15cd7df2e64674d794fb375cc7e807ad91a
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Fri Oct 16 08:12:03 2020 -0700

    Add a version of get_series() that works for xtypes.
    Document it.
    Include vaporpressure.py in the examples subdirectory.

commit 0995f772e6b204b13c60af42681fdb2e54ab200b
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Thu Oct 15 17:07:52 2020 -0700

    More details about how to write an xtypes extension.

commit 1e1dce3a29f211944230119078e0108502f8f706
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Thu Oct 15 17:07:10 2020 -0700

    Add threading lock to RainRater.

commit bed387de5913e42291045b4780e8110c15229b73
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Thu Oct 15 04:49:59 2020 -0700

    Update and improve the xtypes documentation.

commit dc4f488d17a4aeaa9b9d604c500f7063c044a0af
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Thu Oct 15 04:49:31 2020 -0700

    Add service group xtype_services to weewx.conf.

commit 6f29b1a23d60189b07efae4d4ea160079eb973e8
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Wed Oct 14 13:31:43 2020 -0700

    It's OK for direction to be none, provided speed is zero

commit 034be1c968dd0bc33791d4f6559c15c7e28b6364
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Wed Oct 14 13:31:21 2020 -0700

    Check to make sure the section [Engine][[Services]] exists

commit 8cf2b3e372d1b9da948ef6caa27aadb721308850
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Wed Oct 14 08:24:13 2020 -0700

    Separate StdService from XType functionality.
    Makes XType functionality useful outside the context of WeeWX services.
    Simplifies test suites.

commit 9325e792cafa0a885f529ac15636202d518a9c61
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Wed Oct 14 08:23:07 2020 -0700

    Class DummyEngine derives from Engine.

commit 7ac31f7bd2b80c61792e0f3a5f0293ec1eb0666b
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Sat Oct 10 16:26:19 2020 -0700

    Made it easier to add new, derived types via StdWXCalculate.
    See issue #491.
2020-10-18 05:49:45 -07:00
Tom Keffer
6017e513c2 Merge remote-tracking branch 'origin/master' into development 2020-10-16 12:16:59 -07:00
Tom Keffer
0f49106fc3 Merge remote-tracking branch 'origin/development' into development 2020-10-16 12:16:28 -07:00
Tom Keffer
dea4459a07 Fixed problem in WMR200 driver where missing UV reports as index 255. 2020-10-10 08:39:22 -07:00
Brent Fraser
35cc238364 add ability to select the y-axis to label (#610)
* add ability to select the y-axis to label

* added note re ability to select the y-axis to label
2020-09-28 05:38:38 -07:00
gjr80
7d077feecf fix some pycharm complaints 2020-09-28 16:11:50 +10:00
gjr80
9fbd0a8c8c remove null bytes from input source file data before import 2020-09-28 16:09:18 +10:00
gjr80
7e8da92345 fix some pycharm complaints 2020-09-28 16:06:29 +10:00
gjr80
b10ffbb128 remove null bytes from Cumulus monthly log source data before import 2020-09-28 16:00:37 +10:00
gjr80
bb903d89a7 fixed a few pycharm complaints 2020-09-28 15:55:59 +10:00
gjr80
b85160e8c6 remove null bytes from Weathercat source data before import 2020-09-28 15:53:01 +10:00
gjr80
1e86c92455 result of a fixed pycharm complaint 2020-09-28 15:42:48 +10:00
gjr80
01f0297e1b fixed a few formatting issues and pycharm complaints 2020-09-28 15:40:17 +10:00
gjr80
87c5861e75 now ignores null bytes in WD import source files 2020-09-28 15:31:24 +10:00