I was able to get this to work. The key is to specify an aggregation
interval of one day. For example,
[[[monthhistorical]]]
[[[[min]]]]
label = min
aggregate_type = historical_min
aggregate_interval = day
data_type = outTemp
[[[[outTemp]]]]
[[[[max]]]]
label = max
aggregate_type = historical_max
aggregate_interval = day
data_type = outTemp
Gave the plot:
[image: image.png]
On Thu, Dec 9, 2021 at 12:31 PM Tom Keffer <[email protected]> wrote:
> My apologies: xaggs cannot do what you want. It does not contain a
> function to calculate series, only scalars.
>
> I don't think it would be hard to extend it. Let me think about this for a
> while.
>
> -tk
>
> On Thu, Dec 9, 2021 at 11:56 AM Tom Keffer <[email protected]> wrote:
>
>> There's a small bug in the installer for weewx-xaggs. It neglects to add
>> the startup service for the xaggs xtypes.
>>
>> To fix, go into weewx.conf, and add 'user.xaggs.XAggsService' to the end
>> xtype_services. When you're done, the [Engine] section will look something
>> like this:
>>
>> [Engine]
>> [[Services]]
>> ...
>> xtype_services = weewx.wxxtypes.StdWXXTypes,
>> weewx.wxxtypes.StdPressureCooker, weewx.wxxtypes.StdRainRater,
>> weewx.wxxtypes.StdDelta, user.xaggs.XAggsService
>> ...
>>
>>
>> Then restart weewxd.
>>
>> -tk
>>
>> On Thu, Dec 9, 2021 at 11:49 AM Karen K <[email protected]> wrote:
>>
>>> Look, we would like to see the whole log from starting WeeWX until up to
>>> the first reporting cycle. Not only the short snippet you posted.
>>>
>>> What I guess from that short log is that there are no values for outTemp
>>> in your database or the driver does not supply an observation type of that
>>> name.
>>>
>>> Certainly it has nothing to do with aggregation.
>>>
>>> [email protected] schrieb am Donnerstag, 9. Dezember 2021 um 17:45:46
>>> UTC+1:
>>>
>>>> With debug=1 don't change nothing. Only the error comes out as before.
>>>> My driver is sdr and in my skin.conf i only change xtype_services =
>>>> user.xaggs.XAggsService,. I can use the aggregation to put info in the web
>>>> page with $day.outTemp.historical_avg but i can't use it with graphs like
>>>> [[[historical]]]
>>>>
>>>> [[[[outTemp]]]]
>>>>
>>>>
>>>> aggregation_type=historical_avg
>>>> If only i write this i get the message "Aggregate interval required for
>>>> aggregate type historical_avg but if I add aggregation_interval = day i get
>>>> the error that i put before
>>>>
>>>> Dec 9 17:40:48 raspberrypi weewx[22716] ERROR weewx.reportengine:
>>>> Caught unrecoverable exception in generator
>>>> 'weewx.imagegenerator.ImageGenerator'
>>>> Dec 9 17:40:48 raspberrypi weewx[22716] ERROR weewx.reportengine:
>>>> **** outTemp
>>>> Dec 9 17:40:48 raspberrypi weewx[22716] ERROR weewx.reportengine:
>>>> **** Traceback (most recent call last):
>>>> Dec 9 17:40:48 raspberrypi weewx[22716] ERROR weewx.reportengine:
>>>> **** File "/usr/share/weewx/weewx/reportengine.py", line 196, in run
>>>> Dec 9 17:40:48 raspberrypi weewx[22716] ERROR weewx.reportengine:
>>>> **** obj.start()
>>>> Dec 9 17:40:48 raspberrypi weewx[22716] ERROR weewx.reportengine:
>>>> **** File "/usr/share/weewx/weewx/reportengine.py", line 281, in
>>>> start
>>>> Dec 9 17:40:48 raspberrypi weewx[22716] ERROR weewx.reportengine:
>>>> **** self.run()
>>>> Dec 9 17:40:48 raspberrypi weewx[22716] ERROR weewx.reportengine:
>>>> **** File "/usr/share/weewx/weewx/imagegenerator.py", line 41, in
>>>> run
>>>> Dec 9 17:40:48 raspberrypi weewx[22716] ERROR weewx.reportengine:
>>>> **** self.genImages(self.gen_ts)
>>>> Dec 9 17:40:48 raspberrypi weewx[22716] ERROR weewx.reportengine:
>>>> **** File "/usr/share/weewx/weewx/imagegenerator.py", line 181, in
>>>> genImages
>>>> Dec 9 17:40:48 raspberrypi weewx[22716] ERROR weewx.reportengine:
>>>> **** aggregate_type=aggregate_type,
>>>> Dec 9 17:40:48 raspberrypi weewx[22716] ERROR weewx.reportengine:
>>>> **** File "/usr/share/weewx/weewx/xtypes.py", line 99, in get_series
>>>> Dec 9 17:40:48 raspberrypi weewx[22716] ERROR weewx.reportengine:
>>>> **** raise weewx.UnknownType(obs_type, timespan, aggregate_type,
>>>> aggregate_interval)
>>>> Dec 9 17:40:48 raspberrypi weewx[22716] ERROR weewx.reportengine:
>>>> **** weewx.UnknownType: outTemp
>>>> Dec 9 17:40:48 raspberrypi weewx[22716] ERROR weewx.reportengine:
>>>> **** Generator terminated
>>>>
>>>>
>>>> El jueves, 9 de diciembre de 2021 a las 15:47:21 UTC+1,
>>>> [email protected] escribió:
>>>>
>>>>>
>>>>> if i put aggregate_interval = day i get a error
>>>>> Dec 9 15:45:34 raspberrypi weewx[17702] ERROR weewx.reportengine:
>>>>> Caught unrecoverable exception in generator
>>>>> 'weewx.imagegenerator.ImageGenerator'
>>>>> Dec 9 15:45:34 raspberrypi weewx[17702] ERROR weewx.reportengine:
>>>>> **** outTemp
>>>>> Dec 9 15:45:34 raspberrypi weewx[17702] ERROR weewx.reportengine:
>>>>> **** Traceback (most recent call last):
>>>>> Dec 9 15:45:34 raspberrypi weewx[17702] ERROR weewx.reportengine:
>>>>> **** File "/usr/share/weewx/weewx/reportengine.py", line 196, in
>>>>> run
>>>>> Dec 9 15:45:34 raspberrypi weewx[17702] ERROR weewx.reportengine:
>>>>> **** obj.start()
>>>>> Dec 9 15:45:34 raspberrypi weewx[17702] ERROR weewx.reportengine:
>>>>> **** File "/usr/share/weewx/weewx/reportengine.py", line 281, in
>>>>> start
>>>>> Dec 9 15:45:34 raspberrypi weewx[17702] ERROR weewx.reportengine:
>>>>> **** self.run()
>>>>> Dec 9 15:45:34 raspberrypi weewx[17702] ERROR weewx.reportengine:
>>>>> **** File "/usr/share/weewx/weewx/imagegenerator.py", line 41, in
>>>>> run
>>>>> Dec 9 15:45:34 raspberrypi weewx[17702] ERROR weewx.reportengine:
>>>>> **** self.genImages(self.gen_ts)
>>>>> Dec 9 15:45:34 raspberrypi weewx[17702] ERROR weewx.reportengine:
>>>>> **** File "/usr/share/weewx/weewx/imagegenerator.py", line 181, in
>>>>> genImages
>>>>> Dec 9 15:45:34 raspberrypi weewx[17702] ERROR weewx.reportengine:
>>>>> **** aggregate_interval=aggregate_interval)
>>>>> Dec 9 15:45:34 raspberrypi weewx[17702] ERROR weewx.reportengine:
>>>>> **** File "/usr/share/weewx/weewx/xtypes.py", line 99, in
>>>>> get_series
>>>>> Dec 9 15:45:34 raspberrypi weewx[17702] ERROR weewx.reportengine:
>>>>> **** raise weewx.UnknownType(obs_type)
>>>>> Dec 9 15:45:34 raspberrypi weewx[17702] ERROR weewx.reportengine:
>>>>> **** weewx.UnknownType: outTemp
>>>>> Dec 9 15:45:34 raspberrypi weewx[17702] ERROR weewx.reportengine:
>>>>> **** Generator terminated
>>>>> El jueves, 9 de diciembre de 2021 a las 13:27:15 UTC+1,
>>>>> [email protected] escribió:
>>>>>
>>>>>> Where I write historical_temp is historical_avg
>>>>>>
>>>>>> El jueves, 9 de diciembre de 2021 a las 11:24:20 UTC+1,
>>>>>> [email protected] escribió:
>>>>>>
>>>>>>> I want to make a graph using the xaggs extension which has
>>>>>>> aggregations like historical_avg and is used like this:
>>>>>>> outtemp.historical_avg.
>>>>>>> To make the graph use
>>>>>>> [[[dayhistorical]]]
>>>>>>> [[[[outTemp]]]]
>>>>>>> aggregate_type = historical_temp
>>>>>>> but nothing happens. Neither error nor graphic.
>>>>>>> Can I do that kind of graphics?
>>>>>>>
>>>>>> --
>>> 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].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/weewx-user/a772675a-4b2c-40cb-8fc2-6e0e81e8f4bfn%40googlegroups.com
>>> <https://groups.google.com/d/msgid/weewx-user/a772675a-4b2c-40cb-8fc2-6e0e81e8f4bfn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/CAPq0zECYW0vfDVNz--brF5q8ADbr4ZBNnN1bL6bam794277cRg%40mail.gmail.com.