On 18/10/17 16:08, Andrew Milner wrote: > Or you can get the previous 365 days by using the $span with > $year_delta=1 for a standard aggregation or max/min
Great suggestion, Andrew.
To obtain the data for the year before previous one, I could do
something like:
$span($year_delta=2).rain - $span($year_delta=1).rain
My question now is... How can I do basic arithmetic in the templates?
:-). I see some references like in
<https://github.com/weewx/weewx/blob/master/docs/customizing.htm#L1410>
but not a single example.
Thanks!.
--
Jesús Cea Avión _/_/ _/_/_/ _/_/_/
[email protected] - http://www.jcea.es/ _/_/ _/_/ _/_/ _/_/ _/_/
Twitter: @jcea _/_/ _/_/ _/_/_/_/_/
jabber / xmpp:[email protected] _/_/ _/_/ _/_/ _/_/ _/_/
"Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/
"My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
--
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].
For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: OpenPGP digital signature
