If I have read the niculskin and weeWX code correctly I think you find that the 
historygenerator can only generate tables for temperature and rain obs (well 
technically obs that use degree_C/degree_F or inch/mm/cm). The reason is that 
the niculskin code only passes through value and units info from 
aggregate_threshold to the weeWX code that actually queries the database and 
returns the required aggregates (the getAggregate() method in class 
DaySummaryManager() in manger.py if you are interested). The getAggregate() 
code has a few lines in there to handle some legacy weeWX versions, in essence 
the code adds in a units group when the aggregate query is done using 
degree_C/degree_F/inch/mm/cm units. If any other units are used the units group 
is not added in and consequently getAggregate() fails.

The try..except in historygenerator.py that results in the error trace you are 
seeing is partially masking the real issue. I suspect if you took that 
try..except out you would see tag the error is in fact coming from manager.py - 
a case where not providing a specific error message would have helped in 
tracking down the issue.

A few extra lines of code in historygenerator.py to pass through a units group 
would solve the issue. Unfortunately that is beyond me at the moment as I am 
away from home.

Gary

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to