Thanks Gary, seems like you are right. I had a play about with various 
different values to test and got similar errors, its a pity, i can think of 
various different tables that would be interesting to explore visually such 
as the previously mentioned windy day count. However my knowledge of python 
is limited to one semester at undergraduate level (a long time ago) so 
unfortunately i lack the prerequisite skills to do myself.
Lots elsewhere in Weewx to explore and learn anyhow, delighted with it so 
far.

On Wednesday, May 2, 2018 at 2:52:16 PM UTC+1, gjr80 wrote:
>
> 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