Commit Graph

42 Commits

Author SHA1 Message Date
gjr80
dae159ed1a bump wee_import version number and add --no-prompt to change log 2020-12-20 07:02:27 +10:00
gjr80
e5174152f8 implement --no-prompt command line option 2020-11-18 16:42:09 +10:00
mwall
7c57194594 use correct shebang for wee_import. fixes issue #564 2020-05-30 18:56:19 -04:00
gjr80
5738a08fcb bump version number and chnage required WeeWX version 2020-05-13 23:58:42 +10:00
gjr80
b6748e4a2e line ending issues 2020-05-13 23:43:36 +10:00
gjr80
eca612b890 fix messed up shebang 2020-05-13 23:25:32 +10: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
d9e4790ee8 Drop required WeeWX version to 4.0.0b1, should let folks who are pulling down use wee_import before 4.0 is released. 2020-02-22 12:00:58 +10:00
gjr80
177bd19a80 Fixed incorrect exception raised if a WU import receives a 204 response, revised 204 response error message and revised WeeImportIOError headline error message 2020-02-02 13:20:40 +10:00
gjr80
4f4ce0e97c Update wee_import
Update require WeeWX version
2020-02-02 08:04:44 +10: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
gjr80
c566d7abe5 First cut of python logging in wee_import (#441)
* First cut of python logging in wee_import
Utilities Guide updates to be done separately

* Refactored logging.
Removed class WeeImportLog.
All logging now done directly to module level logger.
Console output now done directly from the module concerned using print function.

* Replaced log method calls with info/debug/error method calls
2019-09-07 16:22:40 -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
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
gjr80
3e672c4916 Further work on WD import documentation 2019-02-14 12:22:53 +10:00
Tom Keffer
4f85b13d5a Ported executables using python-modernize 2019-02-12 18:46:47 -08:00
gjr80
f6ff0d0377 Putting back the [WD] stanza that seemed to be lost from the earlier commits 2019-02-12 16:45:10 +10:00
gjr80
f437aa185a Final reversal of the negligent commit 2019-02-12 16:15:11 +10:00
gjr80
57a7f9e9a1 Fix negligent commit, plus fixed a couple of spelling mistakes 2019-02-12 14:19:18 +10:00
gjr80
23419e7d87 Merge branch 'development' into development 2019-02-12 13:50:21 +10:00
vinceskahan
701f094a59 2to3 -f except -w (#315) 2018-04-09 05:55:16 -07:00
gjr80
1587c36ddb First cut adding WeatherCat support to wee_import 2017-04-23 23:48:47 +10:00
gjr80
2b6fbf0fc0 Rework Utilities Guide and other references to wee_database to reflect wee_database changes
Also fixed a few references to tools that we now call utilities
2017-01-12 15:04:54 +10:00
Tom Keffer
b61d09aa82 Use #!/usr/bin/env python to invoke.
Add executable privilege
2016-10-12 16:39:04 -07:00
gjr80
bd60d9b6ea Implement posix date and date-time formats in wee_import and bump version 2016-10-12 23:09:00 +10:00
gjr80
918290f3c6 Forgot wee_import refer last commit comments 2016-09-21 00:40:39 +10:00
gjr80
01afb4afd6 Various minor changes, refer description
- bump required version to 3.6.0
- reformatted --log help text to display better
- now uses revised QC class for QC checks
- typo
2016-09-12 09:37:37 +10:00
gjr80
9183f65725 Various changes resulting from PR148 feedback, refer comments
- ditched Wunder/wunder, now uses WU/wu throughout
- removed unused sections from example import config files
- updated documentation to reflect WU/wu changes
2016-09-10 11:18:18 +10:00
gjr80
d2330018d1 Refer summary comments
- revised Cumulus import preamble to be more consistent with the other
source imports
- renamed weewx_qc config option to qc
- reworked wee_import log and screen output (again) to give more
consistent output, particularlly when doing a dry run
- added qc infor to config sections of various files
2016-09-09 13:13:10 +10:00
gjr80
a36a178a0b Revert to python syslog module rather than logging, other minor fixes
- log output is now save din the weewx log file not a separate
wee_import log file.
- fixed bug in CSVSource.periodgenerator()
- found (and removed) a few references to now defunct wee_import.conf
- revised comments at top of each method
- moved summuray info output from Source.saveArchive() to Source.run()
- added comments to ImportQC class
- reworked option parser config in wee_import
2016-09-08 13:28:06 +10:00
gjr80
7f53a5a0b8 Merge remote-tracking branch 'upstream/master' into wee_import_QC 2016-09-07 12:15:20 +10:00
gjr80
a01ff80775 Fix conflicting --date argument format 2016-09-06 23:04:24 +10:00
gjr80
a3bf16a3f7 Implement QC and rework logging at end of saveToArchive()
- new class ImportQC() to implement weewx StdQC QC min/max limits on
imported records.
- rearrange saveToArchive() logging to give a more consistent log output
- a few minor typos
2016-09-06 22:53:53 +10:00
gjr80
aa9dac99dd Spelling errors picked up in eclipse 2016-09-04 09:11:31 +10:00
gjr80
f2957cfc22 Various minor changes
- changed Cumulus source parameter from folder to directory
- moved startup message so that it still shows first
2016-09-03 09:24:16 +10:00
gjr80
1448cdbb46 Added missing logging import 2016-09-02 13:13:26 +10:00
gjr80
b84f770d3d Revised preamble given wee_import restructure 2016-09-02 09:32:59 +10:00
gjr80
0926542b9f missed wee_import from previous commit 2016-09-01 17:13:33 +10:00
gjr80
8b38aa7ea4 1st commit restructured wee_import
- created weewx/bin/weeimport folder and contents
- created weewx/util/import folder and contents
- deleted weewx/wee_import.conf
- updated weewx/bin/wee_import
2016-08-31 16:32:12 +10:00
gjr80
18b60d7d46 remove except..as statements, fix spelling errors 2016-08-22 11:15:44 +10:00
gjr80
d14a445d35 Various tweaks
- CSV and Cumulus imports now use a UV and radiation config setting to
indicate whether valid UV and radiation obs are in the imported data.
Largely brought about becasue Cumulus writes 0 for UV and solar
radiation if no sensors are present and weewx needs to distinguish
between no data and a 0 observation.
- Tweaked logging of field mappings.
- Added UV and radiation parameters to wee_import.conf
2016-08-19 22:14:52 +10:00
gjr80
a79c791db5 Let's put wee_import in the correct folder! 2016-08-19 11:11:36 +10:00