Commit Graph

3255 Commits

Author SHA1 Message Date
Tom Keffer
ffe8c8fc85 Version 4.5.0b1 2021-03-22 07:49:48 -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
f3de623278 Version 4.5.0a3 2021-03-21 12:09:56 -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
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
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
roe-dl
9772296b19 file hash additionally to file time for skip upload decision (#655) 2021-03-20 04:12:03 -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
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
39b6e73ec9 Merge branch 'master' into series_tags 2021-03-14 06:26:49 -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
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
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
Tom Keffer
0b6959795b Added support for MySQL for series tags. 2021-03-09 16:43:29 -08:00
Tom Keffer
2fabcadc82 Refactor documentation for series tags. 2021-03-09 15:03:46 -08:00
Tom Keffer
3cd2556a28 Get rid of errant print statement 2021-03-09 06:17:37 -08:00
Tom Keffer
fe28ca81ff Merge branch 'master' into series_tags 2021-03-09 06:10:14 -08:00
Tom Keffer
4d803c012b Do not require a [StdConvert] section 2021-03-09 06:09:50 -08:00
Tom Keffer
72b607316d Merge branch 'master' into series_tags 2021-03-09 06:06:12 -08:00
Tom Keffer
4f294dc8f8 Removed dependencies on 'wx_binding' 2021-03-09 06:05:29 -08:00
Tom Keffer
2ce759ea3e Merge branch 'master' into series_tags 2021-03-08 14:42:53 -08:00
Tom Keffer
d00a03bb39 Take care of the case where this is no aggregation.
When using the daily summaries.
2021-03-08 14:28:06 -08:00
Tom Keffer
84ea236a7e JSON formatting now allows specifying which time series to use. 2021-03-08 12:26:08 -08:00
Tom Keffer
0a3e0f7ba9 Fixed bug that caused the incorrect label to be applied to plots where the
aggregation type changes the unit. Fixes issue #654.
2021-03-08 11:50:47 -08:00
Tom Keffer
0458b00e40 First pass at using daily summaries for get_series().
SQLite only.
2021-03-08 08:11:37 -08:00
Tom Keffer
515fc1ce60 Tests for tags involving series. 2021-03-05 15:04:39 -08:00
Tom Keffer
1016e39d89 Allow aggregation intervals to be specified using descriptive strings.
Example: 'day', or 'week'
2021-03-05 14:07:13 -08:00
Tom Keffer
cc1dd44f45 Merge branch 'master' into series_tags 2021-03-05 12:44:10 -08:00
Tom Keffer
793a6f5324 Fixed problem where iterating over a time period with aggregation would
wrongly include the record on the left.
2021-03-05 12:38:36 -08:00
Tom Keffer
40488bc704 Allow formatting like $day.outTemp.series.format(order_by='column') 2021-03-05 10:23:03 -08:00