Tropical Nights

82 views
Skip to first unread message

Roebert Akraks

unread,
Jun 27, 2019, 4:22:33 AM6/27/19
to weewx-user
I would like to have some statistical numbers in my reports. Most of these numbers are available in the monthly / yearly summery, but one thing is missing:

I would like to see the number of "tropical nights", that is the number of days, where the minimum tempeature was above 20°C. I've already done some modifications to the default skin, but I don't know how I could do this.



Thanks for help.

Thomas Keffer

unread,
Jun 27, 2019, 7:53:07 AM6/27/19
to weewx-user
The aggregate min_ge() will do what you want. For example, the number of days of the year with temperature greater than or equal to 20°C would be

$year.outTemp.min_ge((20.0, "degree_C"))

You can make this look a little prettier by playing with the formatting:

$year.outTemp.min_ge((20.0, "degree_C")).format("%3d")

-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/4f541d48-3991-417f-b7cc-aa7086e79289%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

Roebert Akraks

unread,
Jun 27, 2019, 9:06:17 AM6/27/19
to weewx-user
Perfect, thanks, now I found it!

Christian Nimmervoll

unread,
Jun 30, 2019, 7:27:14 AM6/30/19
to weewx-user
I love functions like that.
 
But when i try to get the number of days with temperatures equal oder below 0°C...
I don't find a solution...
Is that also possible?

Chris

Andrew Milner

unread,
Jun 30, 2019, 8:44:29 AM6/30/19
to weewx-user
try $year.outTemp.max_le((0.0, "degree_C")) instead of $year.outTemp.min_ge((20.0, "degree_C"))

Christian Nimmervoll

unread,
Jun 30, 2019, 9:22:02 AM6/30/19
to weewx-user
Great!
Works! :)

Thank you.
Chris
Reply all
Reply to author
Forward
0 new messages