​Hmmm, it should have been formatted automatically as an integer. Did you
change the setting for group_count in skin.conf?

No matter, you can explicitly format it:

$year($years_ago=1).windGust.max_ge($windy) .format("%d")


I'm not sure what you mean by replacing 2017 by a variable. You could do
something like (NOT TESTED):

#for $yo in [1,2,3,4]:
<p>For year starting $year($year​s_ago=$yo).start, there were
$year($years_ago=$yo).windGust.max_ge($windy).format("%d") windy days </p>
#end for


-tk

On Thu, Jan 18, 2018 at 6:11 AM, Joachim Puttkammer <[email protected]>
wrote:

>
> still 2 little problems :
>
> Template
>  2017 days with wind over 45 km/h : 
> $year($years_ago=1).windGust.max_ge($windy)
>
>
> result:
>
> 2017 days with wind over 45 km/h : 21,000000
>
> 1) how to change day into integer?
>
> 2) how to replace 2017 by a variable?
> today: years_ago=1 means 2017 , but next year 2018
>
> --
> 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.
>

-- 
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.

Reply via email to