Commit Graph

126 Commits

Author SHA1 Message Date
Tom Keffer
1b5667df98 Moved wmr200 udev rules to its extension. 2021-01-04 11:41:57 -08:00
John Kline
9740ca8376 cc3000 udev rule doesn't work on Raspbian. (#621) 2020-11-25 18:28:18 -08:00
gjr80
dc8e3d6392 - allow units used in .cat file to be specified
- add weathercat example import config to wee_import commenys
- update weathercat example config file
2020-05-12 15:31:53 +10:00
gjr80
3159e132c8 1st cut adding (re-adding) WeatherCat support to wee_import 2020-05-06 22:52:21 +10:00
Matthew Wall
b11b4f8f7a fix rc scripts to all respect /etc/default 2020-04-22 17:27:48 -04:00
Matthew Wall
28f524f1e2 include template default file. update rc scripts for redhat and suse to use default file with sane fallbacks. keep all environment variables in one default file. building on debian now requires python3-distutils instead of python2-setuptools. 2020-04-22 14:38:08 -04:00
gjr80
3ea517d180 Added support for a user defined field delimiter for CSV imports 2020-04-14 06:47:11 +10:00
Matthew Wall
eee1acd8aa forgot the wunderfixer 2020-04-11 09:54:08 -04:00
Matthew Wall
6c818dd84d added stubs for each weewx entry point 2020-04-11 09:53:38 -04:00
Tom Keffer
bbcb7efe0a Removed hard-coded python path from BSD init.d 2020-03-23 05:37:53 -07:00
yesjpm
816c5f2297 Update weewx.conf (#515) 2020-03-13 16:20:54 -07:00
Tom Keffer
ac1ab83cd4 Systemd type changed from "simple" to "forking". 2020-01-20 15:56:28 -08:00
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
gjr80
b1c7db9478 Reworked CSV field map info in both Utilities Guide and example CSV import config file.
Addresses issue #425
2019-12-20 09:42:25 +10:00
tkeffer@gmail.com
05e3c5095e Deleted Pipfile. Too much trouble. 2019-12-11 18:22:03 -07:00
gjr80
ff3065de45 Updated WU import config comments/example to reflect usage of WU API
Minor comment updates
2019-09-18 09:51:35 +10:00
tkeffer@gmail.com
c6ff6edadf Plist for the Mac launcher now includes a log file for stderr. 2019-09-02 15:45:31 -07:00
Tom Keffer
ac93649e95 Catch up merge of branch 'development' into branch 'python3'.
This includes wdimport stuff.

# Conflicts:
#	bin/weeimport/weeimport.py
#	bin/weeimport/wuimport.py
2019-03-11 09:26:49 -07:00
Tom Keffer
12bd590849 Added piwheels source for pip files. 2019-02-25 06:16:57 -08:00
gjr80
230697babf - 1st steps in reworking the counting of records and progress reporting to cater for WD which seems to have an inordnate number of duplicate or missing log entries
- changes --suppress to --suppress-warnings
- further work to suppress warnings for WD imports
2019-02-24 23:17:38 +10:00
Tom Keffer
73e61a78b4 Update Pipfile 2019-02-21 05:28:26 -08:00
Tom Keffer
a55a81e5b2 Moved Pipefile to its own directory 2019-02-20 12:02:39 -08:00
gjr80
5a133231f1 replace weewx/weeWX with WeeWX 2019-01-20 16:44:48 +10:00
gjr80
6ed18f6866 Add WD to supported import sources 2019-01-20 16:15:48 +10:00
gjr80
8676b2d823 First cut WD example import config file 2019-01-18 22:29:43 +10:00
tkeffer@gmail.com
16fc7fb5d3 Use WeeWX consistently (instead of weeWX). 2018-12-20 15:50:51 -08:00
Tom Keffer
fefac03be9 Catch up with master branch 2018-09-18 07:49:56 -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
Tom Keffer
b62210b837 Catch up merge with v3.8.2 2018-08-16 11:39:48 -07:00
Thorsten Alteholz
ccca623e7e as does not wait for time to be set, seems to be better 2018-07-07 16:21:25 +02:00
Matthew Wall
2f6e5cc68b keep systemd from mucking with the weewx-multi script 2018-07-06 01:11:56 -04:00
gjr80
3e1aa765df Added --ignore-invalid-data import config option 2018-04-19 14:26:32 +10:00
Rick Sayre
7cb05c5b67 Add SMF file for service support under Solaris/Illumos etc 2018-03-03 16:10:42 -08:00
Matthew Wall
d0a4a83be4 forgot to comment endscript in logrotate conf 2017-12-30 14:24:04 -05:00
Matthew Wall
0e14f856e5 single file with all udev rules for easier rpm/deb deployments 2017-12-28 11:25:25 -05:00
Matthew Wall
54d9aac49f comments in logrotate to explain corner cases 2017-12-28 11:17:28 -05:00
Matthew Wall
7457d34a6d parameterize cfgdir in the weewx-multi init script 2017-12-25 12:41:59 -05:00
Matthew Wall
e75c5e7263 update rsyslog config syntax 2017-12-20 23:10:36 -05:00
gjr80
567f21d37d cater for change in manager log output 2017-03-11 06:30:22 +10:00
Matthew Wall
f2e101ad04 Merge branch 'master', remote branch 'origin' into development 2017-03-06 08:50:17 -05: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
89daf1feb2 fixed shift bug in weewx-multi 2017-03-05 13:37:07 -05:00
Matthew Wall
dbc6c0a0d7 make init script work properly with /etc/default/weewx 2017-02-12 23:13:01 -05:00
Matthew Wall
7d27106b4c read /etc/default before bailing out 2017-02-12 22:59:56 -05:00
gjr80
9a64309e3f Can now specify date field separator for Cumulus imports, weewx -> weeWX 2017-01-28 16:49:12 +10:00
matthewwall
fcdb4bed09 ensure that weewx-multi works on deb and rpm as well as setup.py 2017-01-22 12:48:05 -05:00