Commit Graph

331 Commits

Author SHA1 Message Date
Tom Keffer
0335fd466b Allow a custom cipher to be specified for FTP uploads.
See option 'cipher' under [[FTP]].
2022-06-27 07:18:16 -07:00
Tom Keffer
490dd312cf Fix check for reuse_ssl for Python versions greater than 3.10.
Fixes issue #775.
2022-06-21 07:12:39 -07:00
Tom Keffer
c06c7b442f The Python 2 version of ListOfDicts now returns an iterator,
instead of a list.
NB: The iteration order of the Py2 version is the opposite of the Py3 version: it's first to last, rather than last to first.
Regression tests.
2022-02-22 06:25:55 -08:00
gjr80
458283d917 add keys() and values() methods to the python 2 ListOfDicts() class 2022-02-22 12:14:38 +10:00
Matthew Wall
78cf934850 make the show/hide flags work. fixes issue #739 2022-02-10 18:09:52 -05:00
Tom Keffer
cad519c0b8 Raise an error, not return it.
Also, use a type valid in the context.
Regression test.
2022-02-04 13:47:49 -08:00
Tom Keffer
4cc57ec2af Explanation about logging on the Mac. 2022-01-30 13:04:33 -08:00
Tom Keffer
a00650583b Add option 'boundary' to $span().
If set to 'midnight', then the starting time will be set to the previous midnight.
2022-01-21 15:45:27 -08:00
Tom Keffer
059473a2e0 Merge pull request #728 from gjr80/development
implement a 'natural' sort of field names in `to_sorted_string()`
2022-01-07 08:04:35 -08:00
gjr80
5de8da4578 fix re compilation 2022-01-07 13:08:52 +10:00
Gary
5a55e93168 refactored natural_sort_keys() 2022-01-07 13:03:29 +10:00
Tom Keffer
3d75becf46 StdQC now honors log_failure.
Fixes issue #727.
2022-01-06 16:49:32 -08:00
gjr80
28736a6b89 implement a 'natural' sort of field names in to_sorted_string() 2022-01-07 10:45:13 +10:00
Tom Keffer
6907fda60e Tests for function nominal_spans() 2022-01-04 16:26:45 -08:00
Tom Keffer
58ba10e4dc Remove TimeSpan.__cmp__(), which is not used by Python 3.
We never used it anyway.
2022-01-04 16:26:09 -08:00
Tom Keffer
45db27eb72 Tests for class TimeDerivative 2022-01-04 16:06:43 -08:00
Tom Keffer
1bd9d319e3 Strip message keys and values in rsyncinfo 2022-01-04 12:58:48 -08:00
Tom Keffer
9009acd2c7 Make rsyncupload honor log_failure. Simplify. 2022-01-03 15:16:11 -08:00
Tom Keffer
68bf6c4033 Fixed bug that prevented the ssh port from being specified when using rsync.
Fixes issue #725.
2022-01-02 07:35:48 -08:00
Tom Keffer
414794aa3f Fixed silly typo. 2021-12-30 14:04:16 -08:00
Tom Keffer
1da37ff7a4 Fix potential divide by zero problem. 2021-12-27 18:01:39 -08:00
Tom Keffer
34ce4e0180 Simplify KeyDict (no idea what I was thinking).
Avoid using it in simple cases.
2021-12-17 13:14:42 -08:00
Tom Keffer
b5bda93d07 Removed the no-longer-used function secs_to_string(). 2021-12-14 15:11:47 -08:00
Tom Keffer
d0424bdad4 Minor reformatting 2021-12-14 11:08:07 -08:00
Tom Keffer
c63f1f98bc Introduced method is_iterable() to check for sequences that are not strings.
Expanded test coverage.
2021-12-14 11:02:33 -08:00
Tom Keffer
44d66b58ce Wind vectors can now be used in templates without JSON conversion. 2021-12-13 18:12:39 -08:00
Tom Keffer
7827ab86af Introduced class Polar.
Used it to allow rounding series of polar numbers.
2021-12-12 05:18:40 -08:00
gjr80
18d3660757 add try..except to handle earlier python versions that do not support the ftplib FTP encoding parameter 2021-11-20 09:43:41 +10:00
Tom Keffer
fd6d9a1f8e New FTP option 'ftp_encoding' for oddball FTP servers that
send their responses back in something other than UTF-8.
2021-11-19 13:05:19 -08:00
Tom Keffer
62d10b527c Minor formatting tweaks. 2021-11-06 13:30:32 -07:00
Tom Keffer
a7bf4d2d28 Merge in unit_system at all levels in the option hierarchy.
Use search_up() to find the language spec.
Shut off interpolation when reading skin configurations.
Set an appropriate default for unit_system in the language file.
2021-11-02 13:39:28 -07:00
Tom Keffer
61fa7adf7b Refactored ImageGenerator to make it more modular and easier to understand.
skip_if_empty now accepts time domains (such as 'year').
Fixed bug that prevented 'not_null' from working with windvec.
2021-10-05 11:41:10 -07:00
Tom Keffer
52ca237fef Merge branch 'gashalot-fix_vantage_backfilling' into development 2021-09-23 16:14:42 -07:00
Tom Keffer
41da5c38fd Allow arbitrary page batch size.
Add documentation.
Log in change log.
See PR #693.
2021-09-23 16:14:11 -07:00
Tom Keffer
f7d469e14b Fixed problem where ConfigObj interpolation would interfere with setting logging formats. 2021-09-22 09:17:42 -07:00
Tom Keffer
403a86d336 Changed strategy when gettext is keyed with a missing key.
Now uses a modified KeyDict.
2021-05-04 11:20:42 -07:00
Tom Keffer
8670d2ada4 Fixed some problems under Python 2.
Fixed problems when 'lang' is not present.
Changed weewx.conf option from 'units_base' to 'units'.
Simplified.
2021-05-02 14:17:26 -07:00
Tom Keffer
51441a9289 Log directory name before reraising exception. 2021-04-10 05:07:52 -07:00
Tom Keffer
e51b2a63a5 Fixed problem where unit labels would not render correctly under Python 2.7 if
they were set by a 3rd party extension. Fixes issue #662.
2021-04-08 07:37:48 -07:00
Tom Keffer
585637358b rounder(1.23,0) now returns 1, an int. 2021-03-30 02:07:51 -07:00
Tom Keffer
57cfca4255 Implement .round() tag.
Instead of rounding in .json()
2021-03-24 11:55:47 -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
8c4f241293 .raw is now back to being a property.
Introduced SLE helper function $rnd()
2021-03-21 08:27:53 -07:00
Tom Keffer
f1ef6f2aa9 Merge branch 'master' into development
# Conflicts:
#	docs/changes.txt
2021-03-20 07:32:34 -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
7999f4a0b8 Add some convenience functions for working with complex series. 2021-03-12 13:48: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
624fb9e9fa Fixed problem that could cause reporting to fail under Python2.7 if the configuration dictionary contained a comment with a UTF-8 character.
Fixes issue #639
2021-01-16 09:42:53 -08:00
Tom Keffer
2cc2d56202 Allow initial comments in installer "config" section 2020-12-28 08:06:03 -08:00
Tom Keffer
08de8792ef Document PR #597. Add tests. 2020-08-29 12:37:45 -07:00