This is a new extension that nicely shows the power of the new XTypes
extensions in V4.0.

https://github.com/tkeffer/weewx-historical

It creates new aggregation types that allows you to use tags such as

<p>Max temperature for this day: $day.outTemp.historical_max in
$day.outTemp.historical_maxtime.format("%Y")</p>

This would result in something like:

Max temperature for this day: 64.8°F in 2013


Probably only useful if your database covers many years.

Tested on sqlite only. In theory, it should work on MySQL/MariaDB.

My intention is to eventually extend it so it will work for plots as well.

For more about XTypes:
https://github.com/weewx/weewx/wiki/WeeWX-V4-user-defined-types

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" 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-development/CAPq0zECHHV3GUXALxna2a9RVS2n%3DiHL9PSfQe%3D9jObqExgTr2Q%40mail.gmail.com.

Reply via email to