Tom Keffer
bdc9c81b10
Add instructions on changing the schema using wee_database.
2022-05-05 08:54:02 -07:00
gjr80
35e1d483c7
fix wee_database --check-strings/--fix-strings TEXT field problem, issue #738 refers
2022-02-09 10:51:52 +10:00
Tom Keffer
11d2e2762c
Defer configuring logging until after the configuration file has been read.
...
Related to issue #699 .
2021-09-22 11:24:47 -07:00
gjr80
e472e402e9
refer issue #648
...
- better handle cases where `--calc-missing` tries to create a `StdWXCalculate` service object that uses a non-existent binding
- `--calc-missing` now handles archive table names other than 'archive'
- provide better user feedback if the binding specified by `--binding` does not exist
2021-05-22 16:39:30 +10:00
Tom Keffer
f96d020f90
Allow options --date, --from, and --to to be used with wee_database --reweight.
...
PR #659 .
2021-04-03 06:00:01 -07:00
edi-x
b517f86702
Allow options --date, --from and --to for wee_database --reweight again.
2021-04-03 11:54:39 +02:00
Tom Keffer
f71f6a0b01
Check for too many positional arguments.
...
Prettier formatting of what --drop-column is about to do.
2021-02-25 17:17:09 -08:00
Tom Keffer
6d81b1125c
Minor reformating
2021-02-25 16:46:05 -08:00
Tom Keffer
d537d5495d
Catch and log exceptions resulting from attempting to drop a non-existent column
2021-02-25 13:17:57 -08:00
Tom Keffer
f36caea530
wee_database gets new option --drop-columns
...
(in addition to --add-column and --rename-column).
2021-02-25 10:58:03 -08:00
Tom Keffer
f1d46a9b38
wee_database gets new options --add-column and --rename-column.
2021-02-22 12:20:38 -08:00
gjr80
5f972cb349
Fix v4.3.0 daily sums patch bug, implement V4.0 database
2021-01-24 18:08:13 +10:00
Tom Keffer
915e0a8fed
Fixed minor problem when database is empty.
2021-01-22 05:20:59 -08:00
Tom Keffer
0f67337e70
Fixed --check-strings problem if there are no records in the database.
2021-01-21 14:14:13 -08:00
Tom Keffer
02230d310d
Auto-patch daily summaries on startup.
2020-12-11 09:07:44 -08:00
Tom Keffer
c1901592b4
Add --reweight command for wee_database
2020-12-07 15:11:46 -08:00
Tom Keffer
ffa991a153
Use recalculate_weights() instead of IntervalWeighting object
2020-12-06 06:23:41 -08:00
Tom Keffer
5e2eea3935
Fix problem where the number of predicted records does not match the actual number of processed records.
2020-04-06 18:49:38 -07:00
Tom Keffer
7671b48b2a
Emit progress while doing --transfer. Errors now printed to stderr.
2020-04-06 17:05:50 -07:00
gjr80
b6416cd9fb
minor output format changes, removed unused variable, fixed couple of pycharm complaints
2019-11-26 19:00:31 +10:00
gjr80
75c3721e8f
Revised calc-missing functionality should now be working. Think most corner cases have been picked up.
2019-11-25 19:06:08 +10:00
gjr80
311825048a
Fixed a few wee_database usage instructions changes missed on previous commit
2019-10-30 10:48:41 +10:00
gjr80
3324c5d7b8
Fixed issue where first record was never processed if now --date or --to or --from was provided
2019-10-27 10:10:40 +10:00
gjr80
a02488122f
- change calcmissing tranche size from 50 to 20 days
...
- fixed bug that caused the last day of the tranche to be skipped when calc missing
- aligned progress reporting with rebuild daily reporting (ie every 1000 records)
2019-10-24 13:23:18 +10:00
gjr80
aac27406b9
Fix couple of typos
2019-10-20 10:04:43 +10:00
gjr80
9cd529f88b
Added ability to specify times in --from and --to to allow better control of new --calc-missing action
...
Also fixed a few console output and variable naming inconsistencies within the rebuild code
2019-10-20 09:52:49 +10:00
gjr80
84145cdcd1
- added --calc-missing action to wee_database to calculate and store missing derived fields over a given timespan
...
- fix a couple of typos
2019-10-03 13:33:33 +10:00
Tom Keffer
4838e615fe
Ported most of the utilities to use the Python logging module.
2019-08-17 14:49:34 -07:00
Tom Keffer
0728b54c6b
Use native 'range', instead of compatibility shim.
2019-02-24 06:01:25 -08:00
Tom Keffer
4f85b13d5a
Ported executables using python-modernize
2019-02-12 18:46:47 -08:00
Tom Keffer
e9aa33d6b5
Ported wee_database to Python 3
2019-02-10 16:57:23 -08:00
Tom Keffer
1e9b0a0c1c
chmod +x
2019-01-22 17:01:18 -08:00
tkeffer@gmail.com
16fc7fb5d3
Use WeeWX consistently (instead of weeWX).
2018-12-20 15:50:51 -08:00
gjr80
5c59a31a24
Fix unexplained change to shebang
2018-08-15 08:48:25 +10:00
gjr80
98f96c71a2
Made wee_database dropDaily() console output and manager.drop_daily() log output more consistent when an exception is encountered. Issue #335
2018-08-13 10:23:32 +10:00
vinceskahan
701f094a59
2to3 -f except -w ( #315 )
2018-04-09 05:55:16 -07:00
Matthew Wall
db6bcc3cad
keep PEP happy
2017-02-13 00:13:06 -05:00
Matthew Wall
0693654ed6
fixed typo
2017-02-12 22:26:55 -05:00
Matthew Wall
81341eb839
fixed typo
2017-02-12 22:25:53 -05:00
Matthew Wall
5a858a2e7b
simplify
2017-02-12 21:52:03 -05:00
Tom Keffer
1df9b2002d
Moved start time to just before applying the patch
2017-02-09 08:26:58 -08:00
gjr80
10369c0f6a
windSpeed fix now gracefully handles no windSpeed summary table, tweaked --update output/logging
2017-02-06 11:45:25 +10:00
gjr80
b98f5c54cb
Reworked check_strings() output ( #213 )
...
Reworked check_strings() screen and syslog output:
- now gives progress ala --rebuild-daily
- syslog is silent for --check-strings and --fix-strings with --dry-run
- left 'Preparing' (rather than 'Starting') but added 'this may take a
while' as there is a significant delay in dbmanager.genBatchRows()
initialising at line 619 (well there was for 400k records)
2017-02-05 04:22:55 -08:00
Tom Keffer
d7a7913cc8
More clear msg when encountering an ImportError
2017-02-01 16:05:38 -08:00
Tom Keffer
639c3518aa
Changed to execute in user environment
2017-01-30 09:52:02 -08:00
Tom Keffer
da3daff82a
Clarified option strings
2017-01-28 06:20:45 -08:00
gjr80
bc9e1ee729
Restructure usage string, hard code transaction days
2017-01-28 00:44:42 +10:00
Tom Keffer
80a92fb98a
wee_database now uses new version of backfill_day_summary
2017-01-19 13:17:56 -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
f645c70604
Checks daily summary version except when patching
2017-01-10 17:38:57 -08:00