Commit Graph

5614 Commits

Author SHA1 Message Date
Tom Keffer
ffe8c8fc85 Version 4.5.0b1 2021-03-22 07:49:48 -07:00
Tom Keffer
b317a5d876 Option aggregate_interval can now be specified by using one of the "shortcuts".
That is, 'hour', 'day', 'week', 'month', or 'year'.
2021-03-22 07:47:15 -07:00
Tom Keffer
c68ebaac81 Change from aggregation_type and aggregation_interval to aggregate_type and aggregate_interval.
Makes things consistent with ImageGenerator and xtypes
2021-03-22 05:19:09 -07:00
Tom Keffer
54c01e97d4 Honor ndigits for ValueHelper.json().
Added tests.
2021-03-21 16:07:06 -07:00
Tom Keffer
5436730e98 Link reference for zip() 2021-03-21 12:20:08 -07:00
Tom Keffer
d2e7289086 Fixed typo in series_tags.md 2021-03-21 12:17:57 -07:00
Tom Keffer
f3de623278 Version 4.5.0a3 2021-03-21 12:09:56 -07:00
Tom Keffer
ff25734a6b .raw is back to being a property.
No need to mention it in the Upgrading Guide.
2021-03-21 11:21:42 -07:00
Tom Keffer
cfcc6a70c5 Optimizations for get_series() with aggregation intervals of months and years. 2021-03-21 11:17:36 -07:00
Tom Keffer
bde354aa71 Updated the version of six.py included with WeeWX to 1.15.0. Fixes issue #657. 2021-03-21 11:05:48 -07:00
Tom Keffer
42160bd9b6 Fixed comment in test of series tags. 2021-03-21 08:35:50 -07:00
Tom Keffer
8c4f241293 .raw is now back to being a property.
Introduced SLE helper function $rnd()
2021-03-21 08:27:53 -07:00
Tom Keffer
5573b830c8 Document changes in as_value_tuple() in Upgrading Guide. 2021-03-20 18:48:58 -07:00
Tom Keffer
749e608273 $jsonize now uses ComplexEncoder for complex numbers. 2021-03-20 18:32:30 -07:00
Tom Keffer
9afff28172 Changed test of $jsonize() to use highs and lows for the month, instead of year.
Matches other tests.
2021-03-20 08:32:47 -07:00
Tom Keffer
2ae06ada39 V4.5.0a2 2021-03-20 07:58:35 -07:00
Tom Keffer
f1ef6f2aa9 Merge branch 'master' into development
# Conflicts:
#	docs/changes.txt
2021-03-20 07:32:34 -07:00
Tom Keffer
4187106230 Document the argument ndigits for .raw(). 2021-03-20 07:27:57 -07:00
Tom Keffer
6919c5e8d1 More clarifying notes on changes in V4.5. 2021-03-20 06:12:18 -07:00
Tom Keffer
4362bb2c48 Added helper function $jsonize().
The tag `.raw` has been changed from a property to a function,
which can take optional argument `ndigits`.
2021-03-20 05:27:30 -07:00
Tom Keffer
561f1cf251 Logged PR #655 in the change log. 2021-03-20 04:22:26 -07:00
roe-dl
9772296b19 file hash additionally to file time for skip upload decision (#655) 2021-03-20 04:12:03 -07:00
Tom Keffer
663caf3fab Upgrade guide for V4.5 2021-03-19 04:56:28 -07:00
Tom Keffer
5a9f5351c1 Minor documentation changes.
Allow formatting of `unix_epoch_ms` and `unix_epoch_ns`
2021-03-19 04:56:15 -07:00
Tom Keffer
1385953982 Default ValueHelper constructor no longer changes the units.
Update test_cheetah to reflect.
2021-03-19 04:55:01 -07:00
Tom Keffer
a1aa20a46d Refactored units.py to do unit conversions early.
This allows more flexibility when chaining attributes.
Made it possible to apply some limited formatting to JSON.
2021-03-18 17:38:50 -07:00
Tom Keffer
b5c3a01ee1 Added new time units 'unix_epoch_ms' and 'unix_epoch_ns'.
Allowed JSON formatting to optional specify the time unit to use.
Added tests for optional time unit.
2021-03-15 16:55:31 -07:00
Tom Keffer
d727acdb09 Version 4.5.0a1 2021-03-15 14:58:05 -07:00
Tom Keffer
625ffc9b3a Noted performance improvements in the change log. 2021-03-15 10:09:58 -07:00
Tom Keffer
d37172079e Made tests more specific.
Also, added test for WindVec.get_aggregate() with aggregation 'avg'
2021-03-15 10:06:06 -07:00
Tom Keffer
48c02c6074 Merge branch 'series_tags' into development 2021-03-14 07:57:18 -07:00
Tom Keffer
d799faebd9 Noted that these commits address issue #341. 2021-03-14 06:37:20 -07:00
Tom Keffer
39b6e73ec9 Merge branch 'master' into series_tags 2021-03-14 06:26:49 -07:00
Tom Keffer
0b79956e45 Merge branch 'master' into development 2021-03-14 06:26:21 -07:00
Tom Keffer
c0efbd397f Merge remote-tracking branch 'origin/series_tags' into series_tags
# Conflicts:
#	docs/series_tags.md
2021-03-14 05:59:24 -07:00
Tom Keffer
fdf5c43d02 Documenting code... 2021-03-14 05:57:28 -07:00
Tom Keffer
e78ab5ed02 For Python 2, insure results are returned as unicode. 2021-03-14 05:56:58 -07:00
gjr80
c44e9550e0 documented default for time_series 2021-03-14 20:32:26 +10:00
Tom Keffer
b93926a505 Updated some documentation in weewx.units. 2021-03-13 16:47:54 -08:00
Tom Keffer
1c6fa013ae Simplifed iteration of a SeriesHelper.
Updated coumentation.
2021-03-13 16:47:25 -08:00
Tom Keffer
6041a6dcc7 Simplified iterating over a ValueHelper.
Test iteration.
2021-03-13 08:04:43 -08:00
Tom Keffer
8e0e25476f Tweaked section on iteration. 2021-03-12 16:00:46 -08:00
Tom Keffer
7d7db50247 More on compass directions. 2021-03-12 15:49:37 -08:00
Tom Keffer
dabe5de8b9 Optional keyword arguments passed on to the json.dumps() call.
Some documentation on working with complex numbers.
2021-03-12 15:36:57 -08:00
Tom Keffer
b2e4133370 Extra test of converting to polar notation, using knots 2021-03-12 13:54:47 -08:00
Tom Keffer
7999f4a0b8 Add some convenience functions for working with complex series. 2021-03-12 13:48:39 -08:00
Tom Keffer
197c86028d Allow complex types to be serialized to JSON. 2021-03-10 08:31:29 -08:00
Tom Keffer
3986f20bfa Fixed problem that prevented aggregation type 'count' being used for windvec. 2021-03-10 07:38:30 -08:00
Tom Keffer
776d409929 Plots now locate the x-coordinate in the middle of the aggregation interval for
all aggregation types (not just min, max, avg). Revisits PR #232.
2021-03-10 05:19:27 -08:00
Tom Keffer
c7d52a33ec Simplify SQL statements 2021-03-10 05:03:29 -08:00