Re: [weewx-user] Added time to produce report on Ver 4.3

2021-02-17 Thread philip....@gmail.com
Have 2 pi's running, one is an experimental pi where if I change something 
on the web site I make sure it works before I add it to the main pi.
When I upgraded the main from v4.1.1 to v4.4 it worked OK but on the 
experimental pi it was there I noticed one of the reports was taking longer.
Now both are running v4.4 ok but not sure what caused the hiccup in the 
first place.
Have been playing with a monthly summaries web page which was the one 
report that started taking over 35 seconds to produce but is now OK on both 
machines.



On Tuesday, February 16, 2021 at 5:49:02 PM UTC tke...@gmail.com wrote:

> Just for posterity, what upgrade did you do?
>
> On Tue, Feb 16, 2021 at 9:33 AM philip@gmail.com  
> wrote:
>
>> Sorry guys upgraded my main machine and its all working OK.
>>
>>
>> On Monday, February 15, 2021 at 8:40:40 PM UTC philip@gmail.com 
>> 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 tke...@gmail.com 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 philip@gmail.com <
 philip@gmail.com> 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 weewx-user+...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/9a1f1311-b9a2-4f09-9349-7eaddc54ca4dn%40googlegroups.com
>  
> 
> .
>
 -- 
>> 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 on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/64803a39-df6f-4678-b83c-08a94f20a85en%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/cea8a792-d499-47f8-8625-d7fa4af8b2a4n%40googlegroups.com.


Re: [weewx-user] Added time to produce report on Ver 4.3

2021-02-16 Thread Tom Keffer
Just for posterity, what upgrade did you do?

On Tue, Feb 16, 2021 at 9:33 AM philip@gmail.com <
philip.c.ow...@gmail.com> wrote:

> Sorry guys upgraded my main machine and its all working OK.
>
>
> On Monday, February 15, 2021 at 8:40:40 PM UTC philip@gmail.com 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 tke...@gmail.com 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 philip@gmail.com <
>>> philip@gmail.com> 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 weewx-user+...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/weewx-user/9a1f1311-b9a2-4f09-9349-7eaddc54ca4dn%40googlegroups.com
 
 .

>>> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/64803a39-df6f-4678-b83c-08a94f20a85en%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEBcjzyqUW5QtePmBwC9eFChmL51FUBW3rw9-DGKsC%3Dqhw%40mail.gmail.com.


Re: [weewx-user] Added time to produce report on Ver 4.3

2021-02-16 Thread philip....@gmail.com
Sorry guys upgraded my main machine and its all working OK.


On Monday, February 15, 2021 at 8:40:40 PM UTC philip@gmail.com 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 tke...@gmail.com 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 philip@gmail.com <
>> philip@gmail.com> 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 weewx-user+...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/9a1f1311-b9a2-4f09-9349-7eaddc54ca4dn%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/64803a39-df6f-4678-b83c-08a94f20a85en%40googlegroups.com.


Re: [weewx-user] Added time to produce report on Ver 4.3

2021-02-15 Thread philip....@gmail.com
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 tke...@gmail.com 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 philip@gmail.com  
> 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 weewx-user+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/9a1f1311-b9a2-4f09-9349-7eaddc54ca4dn%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/110ba2c4-4a4a-4395-9e9c-4fba20e998c7n%40googlegroups.com.


Re: [weewx-user] Added time to produce report on Ver 4.3

2021-02-15 Thread Tom Keffer
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 philip@gmail.com <
philip.c.ow...@gmail.com> 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 weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/9a1f1311-b9a2-4f09-9349-7eaddc54ca4dn%40googlegroups.com
> 
> .
>

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


[weewx-user] Added time to produce report on Ver 4.3

2021-02-15 Thread philip....@gmail.com
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/9a1f1311-b9a2-4f09-9349-7eaddc54ca4dn%40googlegroups.com.