In order to do this, a lot of infrastructure has to be in place. Take a look at the test file
test_daily.py, function
testTags (line 206).
It sets up a TimeBinder object (line 222). Once you have that, you can do things like
print(tagStats.trend.barometer)
For many of these aggregates, you can use the
xtypes system, which is a lot simpler to access. For example, to get the day's rain
val_tuple = xtypes.get_aggregate('rain', timespan, 'sum', db_manager)
where timespan is the start/stop times over which the aggregation is to be taken, and db_manager is an open database manager object. It returns a
ValueTuple.
If you're not a Python programmer, it's going to be tough. :-(
-tk