Hi everybody,
I have problems in templates, first with ws_calc: i try to make a month summary with current month values, last year and the difference.
It seems to work with some variables, but not all.
Ex. : for rain i have
%rainmonth% %rainlastmonthyear% %ws_calc[-]=%rainmonth%~%rainlastmonthyear%~1%
and for rainy days
%rain0month% %rain0days_mpast[%ws_month2%~-001]% %ws_calc[-]=%rain0month%~%rain0days_mpast[%ws_month2%~-001]%~0%
I get the right value for rainy days but "rainmonth%~ 48,4~1%" for rain quantity.
I tried with ws_calc1, but it doesn't work.
Also, is there a way to get values (max, total...) of additional time sensor (rain duration) and sun duration in hours:minutes instead of fraction of hours ? I tried to convert in minutes, but i went to the limit of 2 times the same var per line trying not to show 0 values...
Can somebody help me ?
Greetings
Problem with ws_calc
Moderatoren: Werner, Tex, weneu
-
Steph
Hi Werner,
Thanks for the quick answer.
It works when i split on two lines, but the file i want to generate is plain text, so i want to keep the 3 values on the same line for alignment, like this :
The -27,6 should be at the X place. I use the same formulation for rainy days and it works (with version 2.92.5).
I could use html tables as a workaround...
Any idea for time sensors representation (durée and max) ?
Best regards,
Stéphane
Thanks for the quick answer.
It works when i split on two lines, but the file i want to generate is plain text, so i want to keep the 3 values on the same line for alignment, like this :
Code: Alles auswählen
Pluie (mm)
Total : 20,8 48,4 x
-27,6
Jours : 6 9 -3
> 2,0 4 6 -2
> 5,0 1 4 -3
> 10,0 0 1 -1
> 20,0 0 0 0
Durée : 2,58 6,63 -4,05
Max : 0,83 ( 6) 1,75 (30)
I could use html tables as a workaround...
Any idea for time sensors representation (durée and max) ?
Best regards,
Stéphane