Commit Graph

28 Commits

Author SHA1 Message Date
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
5fba00f08b Various formatting nits 2019-08-20 05:45:26 -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
0581a91712 Fixed problem decoding incoming bytes from the rsync process 2019-03-07 16:56:29 -08:00
Tom Keffer
ce27606534 Ported weeutil directory to Python 3 2019-02-22 17:45:10 -08:00
Tom Keffer
8e2d07ac56 When reading ConfigObj from a file, decode from utf-8 2019-02-07 10:20:19 -08:00
vinceskahan
701f094a59 2to3 -f except -w (#315) 2018-04-09 05:55:16 -07:00
Tom Keffer
081fcc92ac Fixed bug that prevented rsync uploader from working. 2016-01-18 08:58:10 -08:00
Matthew Wall
ccb5b34e2e added option for log_success to generators 2016-01-15 12:29:28 -05:00
Tom Keffer
3a75d73b4a More useful rsync error message. 2015-12-22 16:30:39 -10:00
Tom Keffer
d2ade101d5 Merge pull request #60 from W0CHP/master
Added rsync patch from Kenneth Baker
2015-10-24 17:24:38 +03:00
Chip Cuccio
fad49567c7 Added **kwargs idiom for config dict tests 2015-10-23 11:06:52 -05:00
Chip Cuccio
abc8f88196 * Added patch from Kenneth Baker:
- Option to specify SSH key to use for rsync
    - Option to enable ssh/rsync compression
    - Example weewx.conf [[RSYNC]] skin/stanza config options:
        compress = True
        ssh_options = -i /home/weewx/weewx-id_dsa
2015-08-05 13:23:51 -05:00
Tom Keffer
052e6befdd Merge pull request #59 from W0CHP/master
Fixes rsync v. => 3.1 transfer stats feedback to properly reflect no.…
2015-08-04 06:33:18 -07:00
Chip Cuccio
9f2e599db5 Fixes rsync v. => 3.1 transfer stats feedback to properly reflect no. of files tranferred. This fix/patch was provided by Kenneth Baker <bakerkj@umich.edu>. Tested on ARM debian Jessie (Rpi2 w/rsync 3.1.1. 2015-08-04 08:14:25 -05:00
Matthew Wall
d855d17abf new wee_config now working properly with dpkg. consistent use of exit. do not do backup files when invoked via dpkg. 2015-04-25 18:29:10 -04:00
Tom Keffer
91e9864a98 Went through all the Python code, deleting all SVN $Id$ tags.
Standardized copyright notices, except for those I don't own.
2015-02-21 09:44:19 -08:00
Tom Keffer
1738d2ffed Reintegrate from the v3 branch.
V3.0.0b1
2014-11-29 18:15:24 +00:00
Tom Keffer
2b9e83d74a bytes is a reserved keyword. Substituted Nbytes instead. 2014-10-11 21:40:12 +00:00
Tom Keffer
b9f40fa226 Applied patch from Gary Roderick, which adds debug information to rsync 2014-09-17 13:30:07 +00:00
Tom Keffer
2986dd7f54 Got rid of newline in log message. 2014-02-15 14:13:26 +00:00
Matthew Wall
9da1cdcbf1 set eol-style to native on all source files 2013-10-09 00:44:50 +00:00
Tom Keffer
34dd39e66e rsync now works with Python 2.5 and 2.6 (not just 2.7) 2013-04-13 14:44:23 +00:00
Tom Keffer
69b853a3ae rsync now allows a port to be specified. Patch from user Mark Flocco. 2013-03-15 17:13:23 +00:00
Matthew Wall
0525c12b3a make logwatch work with syslog out-of-the-box. adjust rsylog config to capture wee_config_* output as well as weewxd output. 2013-03-01 01:36:21 +00:00
Tom Keffer
c45e7bd2ed Changed syntax of exception to Python V2.X 2013-01-01 16:18:17 +00:00
Tom Keffer
b008af71e8 Added support for Rsynch, contributed by user William Page. 2012-12-31 19:35:13 +00:00