Commit Graph

4953 Commits

Author SHA1 Message Date
Matthew Wall
ac8f09e40f intermediate attempt to make a global debian installer 2020-01-04 12:11:35 -05:00
Matthew Wall
ec3be9d9e8 update aptly instructions 2020-01-04 12:01:26 -05:00
Matthew Wall
a1cd93469f adjust tab heights 2020-01-04 12:01:17 -05:00
Matthew Wall
3c87c8a81d Merge branch 'development' of github.com:weewx/weewx into development 2020-01-04 09:53:27 -05:00
Matthew Wall
3a7554f914 remove duplicate configobj. just the command not PS1. flatten the tabs. 2020-01-04 09:53:23 -05:00
Matthew Wall
793fb8ce25 update deb changelog 2020-01-04 09:42:35 -05:00
mwall
03a1b97d07 python3 typing hints break python2 compatibility 2020-01-04 08:28:43 -05:00
mwall
ae1f61a881 update dev notes regarding gpg config 2020-01-04 08:22:55 -05:00
John Kline
abadc9b80c cc3000 driver: poll on poll_interval boundaries (#487)
* 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

* Poll on polling_interval boundaries (rather than slowly drifting).
2020-01-04 06:12:14 -07:00
Matthew Wall
d6b94a7833 default to python3 and latest os release 2020-01-03 19:35:59 -05:00
Matthew Wall
668bd1f43c tone down the tabs. flatten the hierarchy to one level. 2020-01-03 19:32:59 -05:00
gjr80
f0a3c98f21 Updated wee_import CSV field map paras to reflect use of usUnits field mapping
#473 refers
2020-01-04 08:34:06 +10:00
gjr80
46873169fe Sort of fixes issue #473 2020-01-04 07:55:00 +10:00
CameronD73
794d191fb1 Update wmr300.py (#486)
wmr300 driver:  save station archive when connecting to a fresh weewx database.
Add history limit to station config template
2020-01-03 06:29:37 -07:00
tkeffer@gmail.com
758ad6b453 Fixed problem when using wunderfixer with MySQL 2020-01-02 15:31:40 -07:00
tkeffer@gmail.com
eb44b697c4 Made CSS changes for code: lighter background, no box, less padding. 2020-01-02 13:07:36 -07:00
tkeffer@gmail.com
fccf0bbac2 Fixed syntax error 2020-01-01 17:25:33 -07:00
tkeffer@gmail.com
39b5111177 Added warning to stop weewxd before running wee_device. 2020-01-01 14:58:44 -07:00
tkeffer@gmail.com
2943038c2b Added comment about setup.py injecting python into shebang 2020-01-01 08:57:31 -07:00
tkeffer@gmail.com
3f0d80a571 Added conversions km <-> meter.
Fixes bug when calculating windrun with METRICWX hardware.
2020-01-01 05:24:54 -07:00
tkeffer@gmail.com
71c6e1b533 Changed default unit labels to something closer to ISO standards. 2019-12-31 17:57:34 -07:00
tkeffer@gmail.com
d1b15032f7 Can now recover from MariaDB-specific database connection error 1927.
Also, now wait only 60 seconds after a database error before restarting.
2019-12-31 05:30:59 -07:00
tkeffer@gmail.com
bde6050413 V4.0.0b6 2019-12-31 05:02:46 -07: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
23f6a2536a Make use of weeutil.y_or_n() in cc3000 driver. (#481)
* 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.
2019-12-28 16:44:01 -07:00
John Kline
fe55ca96c5 CC3000: Add get/reset max and min values commands, get debug_serial working and update comments. (#480)
* 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.
2019-12-28 05:42:29 -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
tkeffer@gmail.com
8b80cf0394 Moved the data architecture section.
Still not quite satisfied with this...
2019-12-26 16:14:32 -07:00
tkeffer@gmail.com
229e13a7e9 More architectural details.
Include a figure illustrating the pipeline.
2019-12-25 11:57:09 -07:00
tkeffer@gmail.com
554f5b398a Fix problem that caused dayRain, monthRain, and yearRain to be decoded improperly. 2019-12-24 07:22:20 -07:00
John Kline
0f3455bbc3 Development (#475)
* 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
2019-12-23 17:56:43 -07:00
tkeffer@gmail.com
30a6e2836d Clarified overall architecture 2019-12-22 17:41:22 -07:00
tkeffer@gmail.com
09c43c6ebb Comment no longer needed. All supported versions have FTPS. 2019-12-22 07:12:29 -07:00
tkeffer@gmail.com
2d5af34940 No longer generate yearhilow. It was never used. 2019-12-22 07:11:32 -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
gjr80
bdb48efa7f The non-existent changes that just won't go away 2019-12-20 08:07:08 +10:00
gjr80
b852c86157 Merge remote-tracking branch 'origin/development' into development 2019-12-20 08:03:43 +10:00
gjr80
798283866c The non-existent changes that just won't go away 2019-12-20 08:03:27 +10:00
tkeffer@gmail.com
b2ae5176d1 Got rid of unnecessary assertions. 2019-12-16 17:06:12 -07:00
gjr80
b3a6d96fc4 Fixed a few pieces of code that were not python3 compatible 2019-12-16 19:16:36 +10:00
gjr80
8548ee324e wee_database --calc-missing action, revised wee_import operation and a typo 2019-12-16 18:04:25 +10:00
gjr80
2f099e352e Update wee_import WD console output 2019-12-16 17:04:58 +10:00
gjr80
79a6d7c3c8 Fix a unicode/string conflict 2019-12-16 17:04:31 +10:00
gjr80
8b97381882 Change wee_import to use tranches of 1 day when calculating missing derived obs 2019-12-16 16:07:08 +10:00
tkeffer@gmail.com
ff134a0252 Reformat 2019-12-15 16:46:46 -07:00
tkeffer@gmail.com
28f14e9c64 Now do rain rate calculations in the unit system of the incoming records.
Reformatting.
2019-12-15 16:44:21 -07:00
tkeffer@gmail.com
7326b4ce91 Add option --upload-only to wunderfixer 2019-12-15 12:06:29 -07:00