Open ThomDietrich opened 3 years ago
aggregation
is a string, not the same type as the binding
, so the syntax is not the same.
Try with quotes:
aggregation = "individual, aggregate"
If it doesn't work, try also removing the space:
aggregation = "individual,aggregate"
I confirm this solution.
I can confirm too, however see this as a workaround.
The rest of the configuration file weewx.conf
works with lists (like hemispheres = N, S, E, W
) and so should addons.
This looks like a rather easy thing to solve. Untested:
aggregation = self.aggregation if isinstance(self.aggregation, list) else [self.aggregation]
if 'aggregate' in aggregation:
...
if 'individual' in aggregation:
...
I can confirm too, however see this as a workaround.
obviously it's a workaround, found by looking at the code, and that's all we can do for now, since we cannot commit the needed modifications, only Matthew can.
I'm sure as soon as he will be back he'll fix this.
Thank you for this workaround. I was getting into trouble to make it work.
With weewx.conf:
I'm seeing the issue below. I know it's the default but still wanted to report the error. Best!