Template errors/advice
Posted: Mon Mar 19, 2018 7:59 pm
Hi,
I'm trying to create a custom template that I will email once per day. Here is what I have drafted:
# Standard CSV template with data in metric units
#
$# date, time, temperature[C], max daily temp [C], min daily temp [C], max daily humidity[%], rainfall[mm], leaf wetness [0-15],
[YYYY]-[MM]-[DD],[hh]:[mm],[th0temp-avg.1:],[th0temp-dmax.1:-],[th0temp-dmin.1:-],[th0hum-max.1:],[rain0total-sum.1:],[th15hum-max.1:]
I know this is broken so looking for help to fix the max and min temp reporting. Also does the leaf wetness look right assuming th15 is the correct sensor? The leaf sensor has a range of 0 to 15 where 0 is dry and 15 fully wet. I would also like to calculate how long every day the leaf was wet, ie. anything above 0 and in the range 1 to 15..
Final question, can I add a new template or just modify an existing template. I did duplicate and rename the template, but it doesn't appear in the 'add service event' as an option to use.
I'd appreciate any help.
Thanks,
Gary
I'm trying to create a custom template that I will email once per day. Here is what I have drafted:
# Standard CSV template with data in metric units
#
$# date, time, temperature[C], max daily temp [C], min daily temp [C], max daily humidity[%], rainfall[mm], leaf wetness [0-15],
[YYYY]-[MM]-[DD],[hh]:[mm],[th0temp-avg.1:],[th0temp-dmax.1:-],[th0temp-dmin.1:-],[th0hum-max.1:],[rain0total-sum.1:],[th15hum-max.1:]
I know this is broken so looking for help to fix the max and min temp reporting. Also does the leaf wetness look right assuming th15 is the correct sensor? The leaf sensor has a range of 0 to 15 where 0 is dry and 15 fully wet. I would also like to calculate how long every day the leaf was wet, ie. anything above 0 and in the range 1 to 15..
Final question, can I add a new template or just modify an existing template. I did duplicate and rename the template, but it doesn't appear in the 'add service event' as an option to use.
I'd appreciate any help.
Thanks,
Gary