Commit Graph

283 Commits

Author SHA1 Message Date
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
Tom Keffer
a6f0497ea9 Test _get_temperature_12h_F() 2019-09-05 14:19:26 -07:00
Tom Keffer
ece9a603fd Checkpoint while writing ExtendedTypes 2019-09-05 14:05:24 -07:00
Tom Keffer
bfa3b5daa3 Fixed call to non-existent log.notice. Downgraded some "critical" calls. 2019-08-25 05:36:56 -07:00
Tom Keffer
516a16e79a Changed log message to use space delimiters. No slashes. Really. 2019-08-25 05:20:34 -07:00
Tom Keffer
bc6e00d31f Changed log message to use space delimiters. No slashes. 2019-08-24 18:57:23 -07:00
Tom Keffer
651f382d1a Backwards compatibility hooks for accumulateLeaves(), search_up() 2019-08-24 07:54:04 -07:00
Tom Keffer
5fba00f08b Various formatting nits 2019-08-20 05:45:26 -07:00
Tom Keffer
f90dd8ab7e Inject [Logging] stanza in old weewx.conf 2019-08-17 12:04:19 -07:00
Tom Keffer
9f0dbdeda5 Fixed python3 problem 2019-08-16 14:51:31 -07:00
Tom Keffer
dccf8a3a35 Renamed weeutil.logging to weeutil.logger;
Eliminated backwards compatibility references in weeutil.weeutil
2019-08-16 14:40:14 -07:00
Tom Keffer
9c2ee63de4 Refactored weeutil and weecfg to use Python's logging module 2019-08-16 11:38:53 -07:00
Tom Keffer
8ec207d148 Refactored to use Python's logging module 2019-08-16 08:41:25 -07:00
Tom Keffer
d4b790022d Started transition to using Python's logging module. 2019-08-15 08:04:19 -07:00