Problem with ws_calc
Verfasst: 21 Jul 2006 15:44
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
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