Commit Graph

47 Commits

Author SHA1 Message Date
John Kline
dfe31c2da6 Reimplement gen_records(), refactor command(), doc changes, logwatch changes. (#484)
* Robustness enhancements to cc3000 driver including py2/py3 support
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.

* cc3000 driver cleanup and fixes

* rework genStartup, implement history-since, don't convert to unicode on py2

* fix typo

* fix typo

* Change logwatch script to match capitalization change in wxformulas.calculate_rain

* logwatch change to match engine.py log message change

* Another round of cleaning up the logwatch script.

* remove tabs in logwatch script

* Add missing commands.  Get running under debug=1 in PY3.

* A better _format_bytes.

* Make use of weeutil.y_or_n for prompting.

* rewrite function to download archive records, refactor command function

* minor changes to exec_cmd_with_retries, add all cmds to logwatch script

* Update comments.

* change/add comment
2019-12-29 16:15:13 -07:00
John Kline
1b67d896bc Cleanup of log messages in CC3000 driver. (#479)
* Robustness enhancements to cc3000 driver including py2/py3 support
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.

* cc3000 driver cleanup and fixes

* rework genStartup, implement history-since, don't convert to unicode on py2

* fix typo

* fix typo

* Change logwatch script to match capitalization change in wxformulas.calculate_rain

* logwatch change to match engine.py log message change

* Another round of cleaning up the logwatch script.

* remove tabs in logwatch script
2019-12-27 04:42:39 -07:00
John Kline
829bc0ee59 Development (#478)
* logwatch change to match engine.py log message change
2019-12-26 18:53:09 -07:00
John Kline
47fd72ca08 Development (#477)
* Change logwatch script to match capitalization change in wxformulas.calculate_rain
2019-12-26 17:21:00 -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
Buster One
c2663f591b Fix unmatched lines in logwatch (#340)
* Changed "garbage" to upper case in logwatch configuration file
2018-09-07 07:17:50 -07:00
gjr80
567f21d37d cater for change in manager log output 2017-03-11 06:30:22 +10:00
gjr80
144b2e17ac update logwatch script to properly handle revised generator log messages
refer commit
03c3e4ef57 (diff-3cefdd7265f340e9683b0a2d0417b70f)
2017-03-06 13:03:43 +10:00
Matthew Wall
81ffaa0aaf added more acurite rules to logwatch script 2015-06-24 09:22:47 -04:00
Matthew Wall
7cbf929756 detect some acurite log messages 2015-04-10 16:47:35 -04:00
Matthew Wall
554ba29723 eliminate svn:keywords Id 2015-03-08 11:03:39 -04:00
Matthew Wall
23ffbfdb44 no need to report 'no tidal events' 2014-12-20 14:55:35 +00:00
Matthew Wall
5d82f081a0 logwatch adjustments for v3 2014-12-06 17:25:03 +00:00
Tom Keffer
1738d2ffed Reintegrate from the v3 branch.
V3.0.0b1
2014-11-29 18:15:24 +00:00
Matthew Wall
ca7cdf64f6 added logwatch rules for ws28xx changes 2014-06-24 11:33:42 +00:00
Matthew Wall
5eaecc75be minor logwatch adjustments 2014-06-23 14:31:11 +00:00
Matthew Wall
5cd6c4d2f0 added retries. isolate station initialization. added logwatch rules for cc3000. 2014-06-04 16:24:30 +00:00
Matthew Wall
ef83c11166 count garbage collection in logwatch 2014-03-14 13:59:03 +00:00
Matthew Wall
65700b856b count wxengine restarts. match 2.6 syntax for adding archive records. 2014-03-10 16:27:34 +00:00
Matthew Wall
f21fe2843b match 2.6 archive logging messages 2014-02-09 00:05:17 +00:00
Matthew Wall
b75e438d41 proper (?) use of verbosity in the debian init script. provide feedback about process already running. added some vantage log message checks. 2014-02-05 21:13:51 +00:00
Matthew Wall
6dc10747f2 make logwatch slightly more modular 2014-01-31 14:44:52 +00:00
Matthew Wall
4bf30ebc81 defer defaults to arg lists. more logwatch tweaks. 2014-01-29 18:27:37 +00:00
Matthew Wall
571d071dfb logwatch adjustments for changes in 2.6 2014-01-29 15:40:53 +00:00
Matthew Wall
00f0849862 summarize ws23xx invalid wind and fousb suspected bogus data 2014-01-17 13:52:55 +00:00
Matthew Wall
03638178fa filter te923 debug messages 2014-01-13 13:58:56 +00:00
Matthew Wall
507bb776e5 report clock skew in logwatch 2014-01-02 14:54:42 +00:00
Matthew Wall
6378deaf0b update changelog and logwatch 2013-12-23 13:39:35 +00:00
Matthew Wall
fc8fa8bc40 more logwatch tweaks 2013-12-21 15:14:07 +00:00
Matthew Wall
ced4002d13 capture output from various uploaders 2013-12-14 15:41:30 +00:00
Matthew Wall
dc6c17d99e added a few more log patterns; minor cleanup 2013-12-09 18:34:56 +00:00
Matthew Wall
bfa2059153 add check for wind overflow and validity 2013-12-09 01:50:30 +00:00
Matthew Wall
4b7df6b1fc fix te923 rain count multiplier. make te923 memory dumps more reliable. adjustments for different te923 memory sizes. better detection of ws23xx connection mode. fixed outHumdity typo. 2013-11-27 15:51:50 +00:00
Matthew Wall
054fdda139 track fousb rain counter decrements in logwatch 2013-11-12 14:27:07 +00:00
Matthew Wall
3f4a18dc6c report upload failures as errors 2013-11-12 01:04:59 +00:00
Matthew Wall
9530b6ceb9 keep track of fine offset behaviors 2013-11-11 14:08:36 +00:00
Matthew Wall
8446ae190d look for precip/obvis in wx first, fallback to conditions 2013-11-10 03:45:56 +00:00
Matthew Wall
077173139b recognize more log messages 2013-10-14 11:11:35 +00:00
Matthew Wall
e7b3d226e7 match changes to log output in restful.py 2013-10-13 17:13:28 +00:00
Matthew Wall
e6ac08bc3a minor tuneup of logging and logwatching 2013-10-12 12:45:51 +00:00
Matthew Wall
beeddfe62a recognize ws28xx messages 2013-10-09 12:12:15 +00:00
Matthew Wall
ff04a95053 update to logwatch for forecast, cheetahgenerator 2013-10-09 11:48:58 +00:00
Matthew Wall
b4dda4accc added matches for fousb sync and catchup messages 2013-03-14 21:23:14 +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
Matthew Wall
6408a56dab update to match latest logging changes, mostly to fousb 2013-02-20 12:20:28 +00:00
Matthew Wall
f49c10c78e handle more log messages 2013-02-09 16:31:56 +00:00
Matthew Wall
9170a8fa98 merge packaging branch to trunk 2013-01-28 18:23:05 +00:00