--
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 weewx-user+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/92a4cb34-0516-44f3-8406-2a08b25a4d77n%40googlegroups.com.
2024-12-19T08:55:33.656223+00:00 weewx5 weewxd[1317867]: INFO weewx.cheetahgenerator: Generated 1 files for report cumulus in 3.50 seconds
Thanks for the help, I've got this running pretty well now, however I have an issue with formatting a variable. The WXSim developer has told me the expected rain value is an accumulator for the year. I created a $rainacc so the template code looks like this:#set $rainacc = $year.rain.sum.raw - $month.rain.sum.raw
#for $record in $month.records
#set $rainacc = $rainacc + $record.rain.raw
$record.dateTime.format("%d/%m/%Y %H:%M"),$record.outTemp.format(add_label=False),$record.outHumidity.format(add_label=False),$record.dewpoint.format(add_label=False),$record.windSpeed.format(add_label=False),$record.windGust.format(add_label=False),$record.windDir.format(add_label=False),0,0,$record.barometer.format(add_label=False),$rainacc,0,0,0,0,0,0,$record.radiation.format(add_label=False),0
#end for
This works, however the output for rain is to 13 decimals: 1083.8000001314047. No matter what I do I can't seem to format it to 2 decimal places. I have tried $rainacc.round(2)and $rainacc.format(%.2f)
--
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 weewx-user+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/9b766655-b90d-4a85-8d48-f1d4e9fb7e96n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/b887fd8e-20a7-40b6-a4fa-59ecd42ddd9dn%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/kLC0osy-AsQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEDCzzC1hvwFxU7vaxmxcwZk8O611nekT7qouHq0HOJo9g%40mail.gmail.com.