Commit Graph

296 Commits

Author SHA1 Message Date
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
Tom Keffer
209162cc9d Merge branch 'bugfix/to_float_str' of https://github.com/moonpyk/weewx into moonpyk-bugfix/to_float_str 2020-08-29 12:15:51 -07:00
Clément Bourgeois
34086a0fa9 Bugfix : Wrong behaviour of to_float under Python2
The to_float function was not interpreting unicode strings properly
under Python 2. The function now uses the six.string_types method like
to_int does
2020-08-29 19:05:56 +02:00
Tom Keffer
b6905e5ac7 Yet another version of deep_copy().
Readdresses issue #579
2020-07-15 08:26:52 -07:00
Tom Keffer
6e052d1dd0 Modified deep_copy() so it does not have to turn interpolation off.
Really fixes issue #579.
2020-06-29 15:20:03 -07:00
Tom Keffer
a3dca5aa6c Fixed problem where threads attempt to access non-existent database.
Fixes issue #579.
2020-06-29 08:15:56 -07:00
Tom Keffer
b6d2424482 Fixed problem caused by specifying a [Logging]/[[formatters]] section in
weewx.conf that uses interpolated variables.
2020-06-02 15:03:28 -07:00
Tom Keffer
ee7596a873 Debug messages only when debug>=2.
Late binding of log parameters.
Converted some member functions into simple functions.
2020-05-30 13:57:19 -07:00
Tom Keffer
1c4ceee141 Removed misleading 'quit' message. 2020-05-29 17:19:57 -07:00
Tom Keffer
677a8e63f7 Fixed typos. Should be weewx.manager.DaySummaryManager. 2020-05-28 14:19:52 -07:00
Tom Keffer
7ac6eaf0ef Clarifed error message after failed FTP upload. 2020-05-27 07:19:30 -07:00
Tom Keffer
672b5d85b7 Changed the location of the root logger in the logging configuration dictionary to match the Python documents. 2020-05-24 16:49:12 -07:00
Tom Keffer
3c81cd2c1c Added option 'reuse_ssl' to FTP. This activates a workaround for a bug in the
Python ftp library that causes long-lived connections to get closed prematurely.
Works only with Python 3.6 and greater. Also, radically simplified ftpupload.
2020-05-13 09:42:29 -07:00
Tom Keffer
38a19d725a No longer necessary to explicitly patch some keys,
thanks to function _convert_from_string()
2020-05-04 15:48:44 -07:00
Tom Keffer
6348741c64 Took rotating log file shim out. Patch the config file instead.
MacOS uses rotating file by default.
2020-05-03 04:49:33 -07:00
Tom Keffer
0858782ea6 Added a logging handler for rotating files 2020-05-02 13:56:51 -07:00
Tom Keffer
2d8886238c Offer to register the user's station on weewx.com 2020-03-26 15:47:52 -07:00
mwall
89918d28e5 set logging defaults for netbsd and openbsd 2020-03-08 13:47:41 -04:00
Tom Keffer
c962e52086 Add freebsd 2020-02-06 16:11:11 -08:00
Tom Keffer
5a552a7eb2 Refactor, to create a config_from_str() function. 2020-01-24 07:07:57 -08:00
tkeffer@gmail.com
a0fecfaced Added tests for main module.
This allows these files to be used by PyCharm's unittest facility
2020-01-09 05:01:16 -07:00
tkeffer@gmail.com
9ec528b252 Regression testing against older versions of configobj.
Tested against configobj V4.7.2
2020-01-06 13:04:41 -07:00
John Kline
19980d32d3 Robustness enhancements to cc3000 driver including py2/py3 support (#474)
cc300.py:
- changes to work on both py2/py3 (tested on both)
- change timeout to 1s (more not needed)
- retry commands when reading cmd echo times out (the signal of failure)
- use timeout of 20s for memory clear (which takes about 12s)
- various changes as assumptions of commands not currently correct (tried on 2 units)
- use weewx.wxformulas.calculate_rain for rain delta
- use weewx.crc16

engine.py:
- Failure to get time from driver is not treated as an error.

rsyncupload.py:
- Add timeout option.
- Change to allow single file to be rsynced.

util/logwatch/scripts/services/weewx:
- Changes to organize very detailed cc3000 output in logwatch reports.
2019-12-20 08:09:00 -07:00
Tom Keffer
15c7cd83e2 Change how archive timespans get calculated. Fixes issue #469.
This allows oddball archive intervals.
2019-11-22 09:26:51 -08:00
Tom Keffer
d79adc229c Factored out to_complex(). More tests for Wind series & aggregates. 2019-11-20 13:11:19 -08:00
Tom Keffer
178114d0ba Fix problem under Python 2, sensing unicode value of 'NONE' 2019-11-19 08:40:15 -08:00
Tom Keffer
8f169bfe2b New class TimeDerivative 2019-10-29 05:10:33 -07:00
Tom Keffer
82ce1e7a00 Minor changes. 2019-10-25 18:47:53 -07:00
Tom Keffer
3a99a2517b Change implementation of ListOfDicts 2019-10-25 13:56:57 -07:00
Tom Keffer
031fd1e1b5 Benchmark for creating extensible types 2019-09-26 10:57:28 -07:00
Tom Keffer
3e910f439d Merge branch 'development' into extended_types 2019-09-23 08:10:41 -07:00
Tom Keffer
9e54078f0f Deprecated the use of month_delta and year_delta in spans.
See issue #436.
2019-09-20 06:01:44 -07:00
Tom Keffer
0be384a137 Renamed weeutil.weeutil._get_object() to get_object(). 2019-09-18 05:42:17 -07:00
Tom Keffer
7ca87afc95 Moved the bound method test of ExtendedTypes to test_xtypes.py 2019-09-05 17:00:56 -07:00
Tom Keffer
7acd4328c7 Refactored. Moved PressureCooker to wxformulas.py 2019-09-05 16:56:54 -07:00
Tom Keffer
91a56f892c Added tests for pressure, including using a bound method 2019-09-05 16:13:20 -07:00