Just for posterity, what upgrade did you do? On Tue, Feb 16, 2021 at 9:33 AM [email protected] < [email protected]> wrote:
> Sorry guys upgraded my main machine and its all working OK. > > > On Monday, February 15, 2021 at 8:40:40 PM UTC [email protected] wrote: > >> I have 2 davis consoles connected to the same Pi, the second one is only >> used to record sun hours via the rain terminal and is then stored on the >> sun.sdb database in the rain field. >> This database is exactly the same as the weewx.sdb just with a different >> name and are both sqlite and Im using WEEWX MULTI to achieve this along >> with a third for AIRLINK. >> The $WM is similar to the one used in NOAA reports #set $WM="%6.2f" >> The log with debug=1 will take a 2/3 days. >> On Monday, February 15, 2021 at 5:34:33 PM UTC [email protected] wrote: >> >>> 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/64803a39-df6f-4678-b83c-08a94f20a85en%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/64803a39-df6f-4678-b83c-08a94f20a85en%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/CAPq0zEBcjzyqUW5QtePmBwC9eFChmL51FUBW3rw9-DGKsC%3Dqhw%40mail.gmail.com.
