Commit Graph

22 Commits

Author SHA1 Message Date
gjr80
7d077feecf fix some pycharm complaints 2020-09-28 16:11:50 +10:00
gjr80
9fbd0a8c8c remove null bytes from input source file data before import 2020-09-28 16:09:18 +10:00
gjr80
3ea517d180 Added support for a user defined field delimiter for CSV imports 2020-04-14 06:47:11 +10:00
gjr80
3b8932d864 CSV imports now support cardinal, intercardinal and secondary intercardinal directions when importing a 'direction' based field i.e., field uses units degree_compass 2020-03-25 17:19:43 +10:00
gjr80
4eda5711d2 better handle encoded csv source files (#518) 2020-03-24 04:57:57 -07: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
869b898261 - fixed a lot of pycharm complaints
- added missing comments to recent code changes
- missing socket import
2019-03-11 20:19:20 +10:00
gjr80
f3ec9d8dfc Changed first_period and last_period properties to be @property decorated properties 2019-03-11 17:27:30 +10:00
Tom Keffer
8859e6a33a Started porting wee_import to Python 3. Untested. 2019-02-28 09:31:33 -08:00
tkeffer@gmail.com
16fc7fb5d3 Use WeeWX consistently (instead of weeWX). 2018-12-20 15:50:51 -08:00
gjr80
3e1aa765df Added --ignore-invalid-data import config option 2018-04-19 14:26:32 +10:00
gjr80
9a64309e3f Can now specify date field separator for Cumulus imports, weewx -> weeWX 2017-01-28 16:49:12 +10: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
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
Tom Keffer
7787c89310 Added wee_import to changes doc.
Added Gary to copyright notice
2016-09-10 16:49:48 -07:00
gjr80
a7f4282a13 More changes from PR148 comments
- tightened up log notifications to be more succinct
- notifications should only cover the extraordinary
- changed WeeImportLog.verboselog() signature
2016-09-11 09:01:12 +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
aa9dac99dd Spelling errors picked up in eclipse 2016-09-04 09:11:31 +10:00
gjr80
23dcfaac65 Rework some log messages and fix unit system issues for some date limited imports
- fixed issue affecting imports where no records are saved to archive
until 2nd or later periods
- rework various log messages
- now only get a WXCalculate object if we really need one
- fixed issue whereby unit system for no db situation was not returned
correctly
- removed some redundant object naming
2016-09-03 16:19:13 +10:00
gjr80
0e23a4ed37 Various
- fixed some redundant/omitted imports
- removed whitespace
- fixed typos in .conf files
- fixed incorrect optparse option settings
2016-09-01 17:11:36 +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