Commit Graph

42 Commits

Author SHA1 Message Date
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
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
bfa3b5daa3 Fixed call to non-existent log.notice. Downgraded some "critical" calls. 2019-08-25 05:36:56 -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
6c24156a6f Open the pickle file in binary model 2019-03-02 11:22:05 -08:00
Tom Keffer
5167069ea4 Open up file that is to be ftp'd in binary mode 2019-03-02 10:11:14 -08:00
Tom Keffer
0728b54c6b Use native 'range', instead of compatibility shim. 2019-02-24 06:01:25 -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
ae7c2fb87b Introduced FTP option secure_data. Fixes issue #284. 2017-10-27 05:48:25 -07:00
Tom Keffer
28e7166a90 Slightly more robust mechanism for decoding last time a file was FTP'd. 2017-02-12 13:07:05 -08:00
Tom Keffer
57f62fbd85 Clarified that weewx supports FTPS, not SFTP. 2016-09-06 08:48:23 -07:00
Tom Keffer
995cc4f0d0 The FTP utility now catches PickleError exceptions, then does a retry 2015-09-03 06:57:27 -07:00
tkeffer@gmail.com
2f50b38a40 Fixed indentation error in 'else' clause 2015-07-15 06:41:12 -07:00
Tom Keffer
68f00ad274 FTP uploader now retries several times to connect to a server, instead
of giving up after one try.
2015-07-11 18:43:44 -07:00
Tom Keffer
e8e53776aa Added extra debug info for FTP uploads 2015-06-25 05:52:03 -07:00
Tom Keffer
956f6b6fe7 More compact diagnostics for FTP connect errors. 2015-06-24 20:06:13 -07: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
7a0f3697fa Catch EOFError exceptions on FTP state file, then keep going. 2015-02-19 05:53:58 -08:00
Tom Keffer
93cdc30c92 SFTP now uses fallback for older versions of Python. 2015-01-31 17:38:33 +00:00
Tom Keffer
cbc4da99b9 Secure FTP (SFTP) sessions are now possible. 2015-01-31 17:29:37 +00:00
Tom Keffer
1738d2ffed Reintegrate from the v3 branch.
V3.0.0b1
2014-11-29 18:15:24 +00:00
Tom Keffer
5fb95900bd Improved robustness of the pickling and unpickling of the times of the last upload. 2014-10-12 15:17:26 +00:00
Tom Keffer
1935849c32 Corrected catch clause in exception 2014-06-10 23:21:47 +00:00
Tom Keffer
753f8e90b9 Improved error message. 2014-02-11 01:50:17 +00:00
Tom Keffer
007dd0753c Now allows an explicity FTP port to be specified. 2013-11-14 18:04:03 +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
051fb2c0b8 Moved WEEWX_ROOT up to main section of the configuration file. 2012-09-28 18:46:37 +00:00
Tom Keffer
24222a7d52 Section references changed from 'Reports' to 'StdReport' 2012-08-25 14:22:05 +00:00
Tom Keffer
0d5ce4cdd9 Fixed bug that caused the reporting thread to terminate if an exception is thrown while doing FTP. 2012-07-06 15:52:11 +00:00
Tom Keffer
ddbaee824b Class FtpUpload now inherits from 'object' 2012-02-11 20:34:24 +00:00
Tom Keffer
1b158580df Added FTP error 521 to the list of errors that can occur when a directory already exists. 2012-01-07 18:03:03 +00:00
Tom Keffer
e4f98b8459 Suppressed warnings emitted by Pydev by using dummy names on unused variables. 2010-06-17 01:49:15 +00:00
Tom Keffer
3e8a4fdb91 V1.7.0rc3.
Wraps FTP run() in an exception handler.
2010-04-13 15:10:08 +00:00
Tom Keffer
07d629319f V1.7.0 hopefully 2010-04-12 22:41:45 +00:00