Not much information here, but I am not aware of any changes that would
cause this.

What is the nature of the binding 'sun_binding'? Is it a sqlite database?
MySQL on a remote server?

I assume the placeholder $WM is a simple formatting string.

How about a log? Set debug=1, restart weewxd, then post the log through the
first reporting cycle. Or, if it's easier, you can use wee_reports.


On Mon, Feb 15, 2021 at 9:02 AM [email protected] <
[email protected]> wrote:

> Hi
> I upgraded from v4.1.1 to v4.4 and noticed in the logs that a report took
> 36 seconds to generate where it use to be only 1 second.
> Starting back from v4.1.1 I found that the extra time started when I
> upgraded  from v4.2 to v4.3.
> Im using a Pi4 and on a Pi3 the time was over 70 seconds.
> After eliminating various pieces of code I find that the line
> #set $min1 = $day.rain.sum.inch.format($WM, add_label=False) was causing
> the extra time.
> The following is an extract and not the full code but as the NOOA report
> uses something similar and that works ok Im thinking that the data_binding
> is perhaps the cause or have I got the code wrong and was just lucky in
> older versions.
>
> #for $day in $month($data_binding='sun_binding').days
> =====
> #set $min1 = $day.rain.sum.inch.format($WM, add_label=False)
> ===
>         ===
> #end for
> Just wondered what changed in v4.3 as v4.2 work perfectly
>
> --
> 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].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/9a1f1311-b9a2-4f09-9349-7eaddc54ca4dn%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/9a1f1311-b9a2-4f09-9349-7eaddc54ca4dn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEAe3CvYtqpOYuv1yO6UsmR7WMPBJGREY0EwR%3DC4Eze4kQ%40mail.gmail.com.

Reply via email to