Number of days on which the average Temperature was above a certain value

125 views
Skip to first unread message

Rolf Zanchettin

unread,
May 14, 2020, 9:22:51 AM5/14/20
to weewx-user
Hello,

I would like to display the number of days on which the average Temperature was greater or equal 5° C.
How can I achieve this?


Thanks in advance
Best regards, Rolf

Tom Keffer

unread,
May 14, 2020, 11:38:03 AM5/14/20
to weewx-user
There is a 'max_ge()' aggregation, but, unfortunately, no 'avg_ge()'. It could be added via the xtypes facility, but it would require some clever Python programming.

Let me think about that...

-tk



--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/d1a3130c-d00b-4eb2-8d09-44a36d27e35f%40googlegroups.com.

Tom Keffer

unread,
May 14, 2020, 2:45:04 PM5/14/20
to weewx-user
Nope. Not possible with the present version of xtypes. 

But, it's given me some ideas on how to modify xtypes to make it possible. Maybe in v4.0.1.

Rolf Zanchettin

unread,
May 15, 2020, 4:43:20 AM5/15/20
to weewx-user

Hi Tom,

thanks for the reply. 
That would be awesome :-)

Best regards
Rolf


Am Donnerstag, 14. Mai 2020 20:45:04 UTC+2 schrieb Tom Keffer:
Nope. Not possible with the present version of xtypes. 

But, it's given me some ideas on how to modify xtypes to make it possible. Maybe in v4.0.1.

On Thu, May 14, 2020 at 8:37 AM Tom Keffer <tke...@gmail.com> wrote:
There is a 'max_ge()' aggregation, but, unfortunately, no 'avg_ge()'. It could be added via the xtypes facility, but it would require some clever Python programming.

Let me think about that...

-tk



On Thu, May 14, 2020 at 6:22 AM Rolf Zanchettin <rolz...@gmail.com> wrote:
Hello,

I would like to display the number of days on which the average Temperature was greater or equal 5° C.
How can I achieve this?


Thanks in advance
Best regards, Rolf

--
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 weewx...@googlegroups.com.

Tom Keffer

unread,
May 15, 2020, 9:50:14 PM5/15/20
to weewx-user
Rolf, I actually found a way around the limitations. You can do this now with V4.0.0.

See the extension weewx-xstats and let me know if you have any questions.

-tk

To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/41084e16-e757-45e2-8e40-85e0f1204e06%40googlegroups.com.

Rolf Zanchettin

unread,
May 18, 2020, 2:15:03 AM5/18/20
to weewx-user
Hey, Tom,
i have installed the extension and it works perfectly!
 Thanks a lot .

Best regards
Rolf 
Reply all
Reply to author
Forward
0 new messages