Gary

I am trying to import my historical data from underground.
If I understood you wrote the utility

I got some problem, and here is how I was able to work around the three 
issues I encountered:
Note that this are my first lines in Python, I'm more a node's guy, then 
double check my Python proposals...


in wee_import.py (v4.00.b12), line 1068, current_rain can be None, and the 
utility fail, and exit, please can you change the test:
if current_rain >= last_rain:
into
if current_rain is not None and current_rain >= last_rain:



in wee_import, line 795, the test fail, I had to remove this test:
*WeeWX 4.0.0 or greater is required, found 4.0.0b12. Nothing done, exiting*



in wuimport.py, line 297, can you replace the test, which is failing 
sometime with an exit:
(the expection does not initialise _date, not sure it is what is wanted ?)
if obs == 'epoch':
try:
_date = datetime.date.fromtimestamp(_flat_record['epoch'])
except ValueError:
_flat_record['epoch'] = _flat_record['epoch'] // 1000
by
if _flat_record['epoch'] > 1000000000000:
_flat_record['epoch'] = _flat_record['epoch'] // 1000

# do we need to use a try here ?
# what to put in _date if the function fail ?
_date = datetime.date.fromtimestamp(_flat_record['epoch'])

I am running the import for now, but it will take some time.
I'll send you more comments if I get other problem.
thanks
Nicolas
NB: Is it possible to directly push change proposals in GitHub ? 


-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/8e0a31e1-0ab3-459f-8961-ae36d92e30ef%40googlegroups.com.

Reply via email to