Commit Graph

126 Commits

Author SHA1 Message Date
Matthew Wall
9061f263a7 better comments in weewx.conf about the reports 2017-02-25 07:57:56 -05:00
Matthew Wall
c816570a78 brute force avoidance of whitespace problems 2017-02-24 21:28:01 -05:00
Matthew Wall
07d620b719 silly unit test is still borked on whitespace 2017-02-24 21:09:36 -05:00
Matthew Wall
1f8aeb53aa attempt to get unit test to work 2017-02-24 20:57:29 -05:00
Matthew Wall
cf96ba97dc use a default_options section to apply units and other settings to all reports 2017-02-24 20:35:39 -05:00
Matthew Wall
db6bcc3cad keep PEP happy 2017-02-13 00:13:06 -05:00
Matthew Wall
d1b347fb34 more simplification 2017-02-12 23:53:12 -05:00
Matthew Wall
f23734df99 make output consistent 2017-02-12 23:37:43 -05:00
gjr80
7493536a47 Now picks up absence of windSpeed daily summary 2017-02-06 11:52:25 +10:00
Tom Keffer
f869fd9773 Got the weighting update to work on MySQL 2017-01-22 17:21:39 -08:00
gjr80
15924f1964 Removed vacuum 2017-01-21 01:18:53 +10:00
Tom Keffer
4cb7df6994 Modified weighting fix
Should not mess with lessUpdate
Delete lastWeightPatch after successful patch
2017-01-19 15:28:33 -08:00
gjr80
fcf90e4cb0 Removed the p word, patch.py is now database.py, rejigged wee_database as per skype and followup emails
- progress function for fixes included as a method in base class that
can be overridden
- much changing of logging to give consistent results/output
- believe I retained Tom's recent changes to patch.py (commit 4acf752)
2017-01-19 22:31:06 +10:00
Tom Keffer
4acf75251d Simplified patching by moving metadata code to DaySummaryManager 2017-01-17 12:56:07 -08:00
gjr80
9ad9f4bd28 Further refinement
- max and maxtime now updated
- reworked the progress function, now a method in the class

Have left __main__ code in that has been used for testing windSpeed
recalculation fix
2017-01-16 17:28:15 +10:00
Tom Keffer
4245ed4ff7 Got test suites working again. 2017-01-15 08:34:30 -08:00
gjr80
482efe17aa First cut of de-patching patch.py and adding windSpeed recalculation
- renamed base class to remove use of the term 'patch'
- 1st cut class WindSpeedRecalculation to handle windSpeed recalculation
- interval weighting class yet to be reviewed
- patch.py to be removed in due course
2017-01-15 23:51:50 +10:00
Tom Keffer
8c2921ec27 Simplified a bit. Changed name of metadata to 'lastWeightPatch' 2017-01-14 18:08:40 -08:00
Tom Keffer
c2d610ede2 Merge remote-tracking branch 'origin/master' into development 2017-01-14 13:31:04 -08:00
Tom Keffer
7b6642fa4b Fixed error message. Changed coding style 2017-01-12 08:09:35 -08:00
Tom Keffer
babc55b1cd Changed printed message when patching.
More clearly shows that a patch is in progress.
2017-01-12 07:30:32 -08:00
Tom Keffer
f645c70604 Checks daily summary version except when patching 2017-01-10 17:38:57 -08:00
gjr80
ef5ffad55b Handle no db/no db server issues when applying interval weighting during weewx startup 2017-01-10 15:24:56 +10:00
Matthew Wall
7421fe5ccb updates care only about major and minor parts of version 2017-01-08 16:21:17 -05:00
Matthew Wall
9622db59c1 get setup.py to work properly on windows 2017-01-08 15:35:08 -05:00
gjr80
f0e7e26496 Rework wee_database as per issue 61 comments/discussion
- removed required weewx version code
- --string-check/--fix changed to --check-string/--fix-strings
- implement --check-weighting/--fix-weighting to replace
--apply-weight-patch
- rejig some old 2.x.y text that refers to archive database
- all reference to backfill has been removed and only rebuild is used
- 1st cut implementation of time taken report for selected actions (some
still to be tested)
- removed all reference to 'patch' except for patch.py in weecfg - need
to see how far we want to take this!

patch.py
- removed weewx version checking as per wee_database
- rejigging of some names to remove the 'patch' word from wee_database
2017-01-08 14:28:07 +10:00
gjr80
10f6ec0606 Fix various errors. Now runs without error.
- fixed issue with 'Version' metadata processing
- fix circular import issue in weecfg.__init__()
- fix --dry-run default issue in wee_database
2016-12-23 08:55:07 +10:00
gjr80
3fb9c49f95 See description
- now uses 'Version' metadata field
- apply_patches() now accepts a patch config dict
- day summaries are now set at Version 2.0 on creation
- 1st cut addition of --apply-weight-patch to wee_database
2016-12-22 10:50:25 +10:00
gjr80
1dccfe6e48 Need to LOG_INFO (not LOG_DEBUG) that we are applying patch by backfill 2016-12-11 10:23:20 +10:00
gjr80
98009aa8bd Refer comments
- chicken and egg import issues when trying to run during weewx startup
so moved all patch code into patch.py
- removed WeewxPatchLog class, all logging now done via standard syslog
calls
- 2nd cut allocating log calls to INFO or DEBUG
- removed no longer used log_results and verbose fields from patch
config dict
- revised comments/in-line usage instructions
- and variou sother minor chnages I can't remember
2016-12-11 10:20:40 +10:00
gjr80
b0221ea3ba Reworked a number of exception handlers 2016-12-10 07:39:15 +10:00
gjr80
53d897d3fe Added new files supporting weighted sums patch, accumulator sums are now weighted by interval
Also shortened a few long lines in accum.py
2016-12-09 07:58:01 +10:00
gjr80
ee57344fa5 Undoing commit to wrong branch 2016-12-09 07:44:58 +10:00
gjr80
946fb796bb New files with classes supporting a weighted sums patch 2016-12-09 07:26:54 +10:00
Tom Keffer
5abd3e66cb Removed the site-specific "Pond" extensions from the Standard skin.
They've outlived their usefulness
2016-11-15 08:52:37 -08:00
Tom Keffer
162ac36bf5 fixed expected comment section 2016-10-11 16:12:22 -07:00
Tom Keffer
43e8b30879 Now transfers over old comment section of [StdWXCalculate] when doing
upgrade.
Bumped version to V3.6.0b3
2016-10-04 11:20:34 -07:00
Tom Keffer
1fa2ea896c Fixed version glitch in test suites. 2016-10-01 17:59:46 -07:00
Tom Keffer
221222aae8 Introduced new section [[Calculations]] under [StdWXCalculate] 2016-10-01 17:45:14 -07:00
Tom Keffer
57f62fbd85 Clarified that weewx supports FTPS, not SFTP. 2016-09-06 08:48:23 -07:00
Matthew Wall
4353da937c deal with config that has no StandardReport 2016-04-03 11:46:38 -04:00
Matthew Wall
6506baaad6 fix bug in wee_config when conf has no FTP 2016-03-20 13:44:36 -06:00
Matthew Wall
31ebf61348 deal with no ET at high latitudes 2016-03-14 16:18:49 -04:00
Matthew Wall
401211a76a default to latitude 0 instead of latitude 90 2016-03-14 13:11:15 -04:00
Matthew Wall
ec1b92c603 give driver author a chance to modify the configuration. addresses issue #84 2016-03-10 19:25:04 -05:00
Tom Keffer
0cbe0302be Fix test broken by addition to [StdQC] 2016-02-12 14:44:22 -08:00
Matthew Wall
5304f79eaf fix broken indents that caused missing default driver stanza 2016-02-12 09:14:09 -05:00
Tom Keffer
f19c119d5f Added missing "import errno" 2016-02-09 17:59:56 -08:00
Matthew Wall
8f94f08493 keep pycharm happy 2016-02-09 18:40:54 -05:00
Matthew Wall
a71fa20d81 continue to function even if a driver does not define a configuration editor 2016-02-09 18:02:38 -05:00