Re: [weewx-user] Re: ERROR weewx.cheetahgenerator: **** MemoryError

2023-06-25 Thread Karen K
Tom Keffer schrieb am Sonntag, 25. Juni 2023 um 23:22:50 UTC+2:

Nicely done, Rich. Fits the facts perfectly.



So we could include some monitoring of sys.modules in the core loop of 
WeeWX and complain to the logs if there is such an issue? 

-- 
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/0813965d-814f-4297-ac1b-b4c40a364396n%40googlegroups.com.


Re: [weewx-user] rmyro driver

2023-06-25 Thread Kevin Schuchmann
As a final note for maybe someone else in the same situation, in the Debian 
packages is a 2to3 python converter, and it seems to work just fine as the 
errors are gone, data is now being received and html webpage created.  Kevin

On Sunday, June 25, 2023 at 6:02:50 PM UTC-7 Kevin Schuchmann wrote:

> Tom,
>  It seems python2.7 is not available as a package for debian bookworm and 
> getting everything together to make my own is not desirable , best practice 
> and long term fix is to get it ported.  Pylint has a fit  looking at the 
> code so it seems my best bet will be to continue looking for someone that 
> can port it... Thanks Kevin
>
> On Sunday, June 25, 2023 at 3:43:23 PM UTC-7 Tom Keffer wrote:
>
>> It appears that the driver has not been ported to Python 3. You will 
>> either have to run it using Python 2.7, or do the port.
>>
>> On Sun, Jun 25, 2023 at 3:30 PM Kevin Schuchmann  
>> wrote:
>>
>>> Hi,
>>>   New to weewx and trying to get 2 stations running, followed the multi 
>>> station instructions and got the first station running, a rainwise unit. 
>>> The second unit I'm using the rmyro.py driver  and I'm having some 
>>> issues... I'm using a 26800 translator reconfigured to mimic output like a 
>>> response one unit but I'm not even getting that far.. 
>>> when starting the first time I got
>>> weewx-rm_young[121466] CRITICAL __main__:   Missing 
>>> weewx-m_young[121466] CRITICAL __main__:   Missing parentheses in 
>>> call to 'print'. Did you mean print(...)? (rmyro.py, line 261) 
>>>
>>> so I added parentheses to the print lines and got past that but now it 
>>> errors out at
>>>
>>> Caught unrecoverable exception:
>>> weewx-rm_young[121534] CRITICAL __main__:   multiple exception 
>>> types must be parenthesized (rmyro.py, line 331)
>>> weewx-rm_young[121534] CRITICAL __main__:   Traceback (most 
>>> recent call last):
>>> python3[121534]: weewx-rm_young[121534] CRITICAL __main__:    
>>>  File "/usr/share/weewx/weewxd", line 148, in main
>>> python3[121534]: weewx-rm_young[121534] CRITICAL __main__:  
>>>  engine = weewx.engine.StdEngine(config_dict)
>>> python3[121534]: weewx-rm_young[121534] CRITICAL __main__:  
>>>   ^^^
>>> python3[121534]: weewx-rm_young[121534] CRITICAL __main__:    
>>>  File "/usr/share/weewx/weewx/engine.py", line 81, in __init__
>>> python3[121534]: weewx-rm_young[121534] CRITICAL __main__:  
>>>  self.setupStation(config_dict)
>>> python3[121534]: weewx-rm_young[121534] CRITICAL __main__:    
>>>  File "/usr/share/weewx/weewx/engine.py", line 108, in setupStation
>>> python3[121534]: weewx-rm_young[121534] CRITICAL __main__:  
>>>  __import__(driver)
>>> python3[121534]: weewx-rm_young[121534] CRITICAL __main__:    
>>>  File "/usr/share/weewx/weewx/drivers/rmyro.py", line 331
>>> python3[121534]: weewx-rm_young[121534] CRITICAL __main__:  
>>>  except IOError, e:
>>> python3[121534]: weewx-rm_young[121534] CRITICAL __main__:  
>>> ^^
>>> python3[121534]: weewx-rm_young[121534] CRITICAL __main__:  
>>>  SyntaxError: multiple exception types must be parenthesized
>>> python3[121534]: weewx-rm_young[121534] CRITICAL __main__:  
>>>  Exiting.
>>>
>>> I am not a programmer and I am afraid I can't wing this one... the owner 
>>> of the driver on github has archived it to read -only so I cant open an 
>>> issue, anyone out there that could fix the code in the driver?Thanks 
>>> Kevin  
>>>  
>>>
>>> -- 
>>> 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/a452ed8f-6457-4c61-8c19-3dc43d9ddfcan%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/0a96c1f4-c71c-4e4a-bf57-720e428f1aedn%40googlegroups.com.


Re: [weewx-user] rmyro driver

2023-06-25 Thread Kevin Schuchmann
Tom,
 It seems python2.7 is not available as a package for debian bookworm and 
getting everything together to make my own is not desirable , best practice 
and long term fix is to get it ported.  Pylint has a fit  looking at the 
code so it seems my best bet will be to continue looking for someone that 
can port it... Thanks Kevin

On Sunday, June 25, 2023 at 3:43:23 PM UTC-7 Tom Keffer wrote:

> It appears that the driver has not been ported to Python 3. You will 
> either have to run it using Python 2.7, or do the port.
>
> On Sun, Jun 25, 2023 at 3:30 PM Kevin Schuchmann  
> wrote:
>
>> Hi,
>>   New to weewx and trying to get 2 stations running, followed the multi 
>> station instructions and got the first station running, a rainwise unit. 
>> The second unit I'm using the rmyro.py driver  and I'm having some 
>> issues... I'm using a 26800 translator reconfigured to mimic output like a 
>> response one unit but I'm not even getting that far.. 
>> when starting the first time I got
>> weewx-rm_young[121466] CRITICAL __main__:   Missing 
>> weewx-m_young[121466] CRITICAL __main__:   Missing parentheses in 
>> call to 'print'. Did you mean print(...)? (rmyro.py, line 261) 
>>
>> so I added parentheses to the print lines and got past that but now it 
>> errors out at
>>
>> Caught unrecoverable exception:
>> weewx-rm_young[121534] CRITICAL __main__:   multiple exception 
>> types must be parenthesized (rmyro.py, line 331)
>> weewx-rm_young[121534] CRITICAL __main__:   Traceback (most 
>> recent call last):
>> python3[121534]: weewx-rm_young[121534] CRITICAL __main__:    
>>  File "/usr/share/weewx/weewxd", line 148, in main
>> python3[121534]: weewx-rm_young[121534] CRITICAL __main__:  
>>  engine = weewx.engine.StdEngine(config_dict)
>> python3[121534]: weewx-rm_young[121534] CRITICAL __main__:    
>> ^^^
>> python3[121534]: weewx-rm_young[121534] CRITICAL __main__:    
>>  File "/usr/share/weewx/weewx/engine.py", line 81, in __init__
>> python3[121534]: weewx-rm_young[121534] CRITICAL __main__:  
>>  self.setupStation(config_dict)
>> python3[121534]: weewx-rm_young[121534] CRITICAL __main__:    
>>  File "/usr/share/weewx/weewx/engine.py", line 108, in setupStation
>> python3[121534]: weewx-rm_young[121534] CRITICAL __main__:  
>>  __import__(driver)
>> python3[121534]: weewx-rm_young[121534] CRITICAL __main__:    
>>  File "/usr/share/weewx/weewx/drivers/rmyro.py", line 331
>> python3[121534]: weewx-rm_young[121534] CRITICAL __main__:  
>>  except IOError, e:
>> python3[121534]: weewx-rm_young[121534] CRITICAL __main__:    
>>   ^^
>> python3[121534]: weewx-rm_young[121534] CRITICAL __main__:  
>>  SyntaxError: multiple exception types must be parenthesized
>> python3[121534]: weewx-rm_young[121534] CRITICAL __main__:  
>>  Exiting.
>>
>> I am not a programmer and I am afraid I can't wing this one... the owner 
>> of the driver on github has archived it to read -only so I cant open an 
>> issue, anyone out there that could fix the code in the driver?Thanks 
>> Kevin  
>>  
>>
>> -- 
>> 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/a452ed8f-6457-4c61-8c19-3dc43d9ddfcan%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/d55f7003-8947-4d04-b66e-ee083652e7a0n%40googlegroups.com.


Re: [weewx-user] rmyro driver

2023-06-25 Thread Tom Keffer
It appears that the driver has not been ported to Python 3. You will either
have to run it using Python 2.7, or do the port.

On Sun, Jun 25, 2023 at 3:30 PM Kevin Schuchmann  wrote:

> Hi,
>   New to weewx and trying to get 2 stations running, followed the multi
> station instructions and got the first station running, a rainwise unit.
> The second unit I'm using the rmyro.py driver  and I'm having some
> issues... I'm using a 26800 translator reconfigured to mimic output like a
> response one unit but I'm not even getting that far..
> when starting the first time I got
> weewx-rm_young[121466] CRITICAL __main__:   Missing
> weewx-m_young[121466] CRITICAL __main__:   Missing parentheses in
> call to 'print'. Did you mean print(...)? (rmyro.py, line 261)
>
> so I added parentheses to the print lines and got past that but now it
> errors out at
>
> Caught unrecoverable exception:
> weewx-rm_young[121534] CRITICAL __main__:   multiple exception
> types must be parenthesized (rmyro.py, line 331)
> weewx-rm_young[121534] CRITICAL __main__:   Traceback (most recent
> call last):
> python3[121534]: weewx-rm_young[121534] CRITICAL __main__: 
>  File "/usr/share/weewx/weewxd", line 148, in main
> python3[121534]: weewx-rm_young[121534] CRITICAL __main__: 
>  engine = weewx.engine.StdEngine(config_dict)
> python3[121534]: weewx-rm_young[121534] CRITICAL __main__: 
> ^^^
> python3[121534]: weewx-rm_young[121534] CRITICAL __main__: 
>  File "/usr/share/weewx/weewx/engine.py", line 81, in __init__
> python3[121534]: weewx-rm_young[121534] CRITICAL __main__: 
>  self.setupStation(config_dict)
> python3[121534]: weewx-rm_young[121534] CRITICAL __main__: 
>  File "/usr/share/weewx/weewx/engine.py", line 108, in setupStation
> python3[121534]: weewx-rm_young[121534] CRITICAL __main__: 
>  __import__(driver)
> python3[121534]: weewx-rm_young[121534] CRITICAL __main__: 
>  File "/usr/share/weewx/weewx/drivers/rmyro.py", line 331
> python3[121534]: weewx-rm_young[121534] CRITICAL __main__: 
>  except IOError, e:
> python3[121534]: weewx-rm_young[121534] CRITICAL __main__: 
>   ^^
> python3[121534]: weewx-rm_young[121534] CRITICAL __main__: 
>  SyntaxError: multiple exception types must be parenthesized
> python3[121534]: weewx-rm_young[121534] CRITICAL __main__: 
>  Exiting.
>
> I am not a programmer and I am afraid I can't wing this one... the owner
> of the driver on github has archived it to read -only so I cant open an
> issue, anyone out there that could fix the code in the driver?Thanks
> Kevin
>
>
> --
> 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/a452ed8f-6457-4c61-8c19-3dc43d9ddfcan%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/CAPq0zEDg68MS-TNwEDrxw-eh-saPb2Tauva9hSzJn5w56B-FoQ%40mail.gmail.com.


[weewx-user] rmyro driver

2023-06-25 Thread Kevin Schuchmann
Hi,
  New to weewx and trying to get 2 stations running, followed the multi 
station instructions and got the first station running, a rainwise unit. 
The second unit I'm using the rmyro.py driver  and I'm having some 
issues... I'm using a 26800 translator reconfigured to mimic output like a 
response one unit but I'm not even getting that far.. 
when starting the first time I got
weewx-rm_young[121466] CRITICAL __main__:   Missing 
weewx-m_young[121466] CRITICAL __main__:   Missing parentheses in 
call to 'print'. Did you mean print(...)? (rmyro.py, line 261) 

so I added parentheses to the print lines and got past that but now it 
errors out at

Caught unrecoverable exception:
weewx-rm_young[121534] CRITICAL __main__:   multiple exception 
types must be parenthesized (rmyro.py, line 331)
weewx-rm_young[121534] CRITICAL __main__:   Traceback (most recent 
call last):
python3[121534]: weewx-rm_young[121534] CRITICAL __main__: File 
"/usr/share/weewx/weewxd", line 148, in main
python3[121534]: weewx-rm_young[121534] CRITICAL __main__:  
 engine = weewx.engine.StdEngine(config_dict)
python3[121534]: weewx-rm_young[121534] CRITICAL __main__:  
  ^^^
python3[121534]: weewx-rm_young[121534] CRITICAL __main__: File 
"/usr/share/weewx/weewx/engine.py", line 81, in __init__
python3[121534]: weewx-rm_young[121534] CRITICAL __main__:  
 self.setupStation(config_dict)
python3[121534]: weewx-rm_young[121534] CRITICAL __main__: File 
"/usr/share/weewx/weewx/engine.py", line 108, in setupStation
python3[121534]: weewx-rm_young[121534] CRITICAL __main__:  
 __import__(driver)
python3[121534]: weewx-rm_young[121534] CRITICAL __main__: File 
"/usr/share/weewx/weewx/drivers/rmyro.py", line 331
python3[121534]: weewx-rm_young[121534] CRITICAL __main__:  
 except IOError, e:
python3[121534]: weewx-rm_young[121534] CRITICAL __main__:  
^^
python3[121534]: weewx-rm_young[121534] CRITICAL __main__:  
 SyntaxError: multiple exception types must be parenthesized
python3[121534]: weewx-rm_young[121534] CRITICAL __main__:  
 Exiting.

I am not a programmer and I am afraid I can't wing this one... the owner of 
the driver on github has archived it to read -only so I cant open an issue, 
anyone out there that could fix the code in the driver?Thanks Kevin

   

-- 
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/a452ed8f-6457-4c61-8c19-3dc43d9ddfcan%40googlegroups.com.


Re: [weewx-user] Re: ERROR weewx.cheetahgenerator: **** MemoryError

2023-06-25 Thread Tom Keffer
Nicely done, Rich. Fits the facts perfectly.

On Sun, Jun 25, 2023 at 2:12 PM bell...@gmail.com 
wrote:

> Your understanding is correct. As part of my debugging I ran the Seasons
> skin and some additional skins. After each template was processed I logged
> the number of entries in sys.modules. On the first reporting cycle it
> increased by 1 for each template. After that it has not changed.
> Belchertown allows the station owner to add custom content via #includes.
> The OP was creating this html content every archive and therefore the cache
> lookup failed. Since it was html it could be included with the ‘raw’
> directive, skipping the whole Cheetah compilation process.
> - rich
>
> On Sunday, 25 June 2023 at 16:21:55 UTC-4 Tom Keffer wrote:
>
>> Good sleuthing! Pretty crappy algorithm that allows a cache to grow
>> without bounds.
>>
>> The skins that come with WeeWX (Seasons, Standard) use static source
>> template files. They are always the same. So, if I understand you
>> correctly, each template should take only one slot in sys.modules.
>>
>> Does the Belchertown skin do things differently?
>>
>> -tk
>>
>>
>> On Sun, Jun 25, 2023 at 8:46 AM bell...@gmail.com 
>> wrote:
>>
>>> In my experimental skin I was running into this issue, so I decided to
>>> delve into Cheetah’s internals and learned the following. As part of the
>>> compilation process the module is added to sys.modules and the generated
>>> code is cached. If one is dynamically generating template source and it is
>>> different, then it will not be found in the cache and an additional entry
>>> will be added to sys.modules and the cache. This will result in ever
>>> increasing memory usage. Since the OP was dynamically generating html and
>>> not Cheetah source, it could be included as ‘raw’. This skips the
>>> compilation step and the addition of it to sys.modules and the cache.
>>> - rich
>>>
>>> --
>>>
>> 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/c33494f0-1ff1-464e-b37c-df48f02dc1d3n%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/f6a401d0-614d-4b7d-b44e-9f58f0870f8en%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/CAPq0zEDWK1WyAvpMr3EX2JYpLa-53Nu87nCVJ3hsSbZGRpAweg%40mail.gmail.com.


Re: [weewx-user] Re: ERROR weewx.cheetahgenerator: **** MemoryError

2023-06-25 Thread bell...@gmail.com
Your understanding is correct. As part of my debugging I ran the Seasons 
skin and some additional skins. After each template was processed I logged 
the number of entries in sys.modules. On the first reporting cycle it 
increased by 1 for each template. After that it has not changed.
Belchertown allows the station owner to add custom content via #includes. 
The OP was creating this html content every archive and therefore the cache 
lookup failed. Since it was html it could be included with the ‘raw’ 
directive, skipping the whole Cheetah compilation process.
- rich

On Sunday, 25 June 2023 at 16:21:55 UTC-4 Tom Keffer wrote:

> Good sleuthing! Pretty crappy algorithm that allows a cache to grow 
> without bounds.
>
> The skins that come with WeeWX (Seasons, Standard) use static source 
> template files. They are always the same. So, if I understand you 
> correctly, each template should take only one slot in sys.modules.
>
> Does the Belchertown skin do things differently?
>
> -tk
>
>
> On Sun, Jun 25, 2023 at 8:46 AM bell...@gmail.com  
> wrote:
>
>> In my experimental skin I was running into this issue, so I decided to 
>> delve into Cheetah’s internals and learned the following. As part of the 
>> compilation process the module is added to sys.modules and the generated 
>> code is cached. If one is dynamically generating template source and it is 
>> different, then it will not be found in the cache and an additional entry 
>> will be added to sys.modules and the cache. This will result in ever 
>> increasing memory usage. Since the OP was dynamically generating html and 
>> not Cheetah source, it could be included as ‘raw’. This skips the 
>> compilation step and the addition of it to sys.modules and the cache. 
>> - rich 
>>
>> -- 
>>
> 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/c33494f0-1ff1-464e-b37c-df48f02dc1d3n%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/f6a401d0-614d-4b7d-b44e-9f58f0870f8en%40googlegroups.com.


Re: [weewx-user] Rain cumulative total wrong total in graph

2023-06-25 Thread gjr80
Need to talk to Tom about that, high standards and I'm not sure I am there 
yet. Plus v5 is the focus at the moment.

Gary
On Sunday, 25 June 2023 at 21:59:37 UTC+1 Greg from Oz wrote:

> Sorry I didn't see the wiki part.
> I just read the install bits.
> Yes the wiki will cut it.
>
> Also are you going to make this a standard in weewx?
>
> Thanks again it is great.
> I will pay around with it later and make the reset 9am due day graphs.
>
>
> On Mon, 26 June 2023, 06:42 gjr80,  wrote:
>
>> On Sunday, 25 June 2023 at 00:21:28 UTC+1 Greg from Oz wrote:
>>
>> Thanks Gary I will try your extension.
>> The instructions say to do this:
>> wget -P /var/tmp 
>> https://github.com/gjr80/weewx-gw1000/releases/download/v0.1.0/xcum-0.1.0.tar.gz
>> The above is not found .
>> Should be below statement:?
>> wget -P /var/tmp 
>> https://github.com/gjr80/weewx-xcumulative/releases/download/v0.1.0/xcum-0.1.0.tar.gz
>>
>> Correct, thanks, fixed. 
>>
>> On Sunday, 25 June 2023 at 00:46:59 UTC+1 Greg from Oz wrote:
>>
>> OK I have installed the extension and it seems to work!
>> Thanks Gary
>>
>> You might want to put in the documentation about how to set the reset 
>> times examples.
>> I used:
>> reset = day
>> reset = week
>> reset =month
>> reset = year
>>
>> [[[yearraincumulation]]]
>>rain1
>>  data_binding = wx_binding
>>   rain_year_start = 1
>>
>>   data_type = rain
>>   aggregate_type = cumulative
>>   aggregate_interval = 604800 #1 day
>>   label = Rain cumulative
>>   plot_type = line
>>   line_type = solid
>>   line_gap_fraction = 0.5
>>   reset = year
>>
>>  
>> So the Available config options 
>>  
>> and Using the *Cumulative XType* in WeeWX plots 
>>  wiki pages 
>> didn't cut it?
>>
>> Gary
>>
>> -- 
>>
> 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/Td-2dHCXwaA/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> weewx-user+...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/f9f2d466-681d-4570-82be-71998ff2eba7n%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/c2f25d5a-f54c-4e0f-ac72-6da9db69c7a3n%40googlegroups.com.


Re: [weewx-user] Rain cumulative total wrong total in graph

2023-06-25 Thread Greg Reive
Sorry I didn't see the wiki part.
I just read the install bits.
Yes the wiki will cut it.

Also are you going to make this a standard in weewx?

Thanks again it is great.
I will pay around with it later and make the reset 9am due day graphs.


On Mon, 26 June 2023, 06:42 gjr80,  wrote:

> On Sunday, 25 June 2023 at 00:21:28 UTC+1 Greg from Oz wrote:
>
> Thanks Gary I will try your extension.
> The instructions say to do this:
> wget -P /var/tmp
> https://github.com/gjr80/weewx-gw1000/releases/download/v0.1.0/xcum-0.1.0.tar.gz
> The above is not found .
> Should be below statement:?
> wget -P /var/tmp
> https://github.com/gjr80/weewx-xcumulative/releases/download/v0.1.0/xcum-0.1.0.tar.gz
>
> Correct, thanks, fixed.
>
> On Sunday, 25 June 2023 at 00:46:59 UTC+1 Greg from Oz wrote:
>
> OK I have installed the extension and it seems to work!
> Thanks Gary
>
> You might want to put in the documentation about how to set the reset
> times examples.
> I used:
> reset = day
> reset = week
> reset =month
> reset = year
>
> [[[yearraincumulation]]]
>rain1
>  data_binding = wx_binding
>   rain_year_start = 1
>
>   data_type = rain
>   aggregate_type = cumulative
>   aggregate_interval = 604800 #1 day
>   label = Rain cumulative
>   plot_type = line
>   line_type = solid
>   line_gap_fraction = 0.5
>   reset = year
>
>
> So the Available config options
> 
> and Using the *Cumulative XType* in WeeWX plots
>  wiki pages
> didn't cut it?
>
> Gary
>
> --
> 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/Td-2dHCXwaA/unsubscribe.
> To unsubscribe from this group and all its topics, 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/f9f2d466-681d-4570-82be-71998ff2eba7n%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/CAD_tbc-%2BFvDD4WUDn_Gq8mEve2c1Pperz-vKk7A9j%2Bb5QvodVA%40mail.gmail.com.


Re: [weewx-user] Rain cumulative total wrong total in graph

2023-06-25 Thread gjr80
On Sunday, 25 June 2023 at 00:21:28 UTC+1 Greg from Oz wrote:

Thanks Gary I will try your extension.
The instructions say to do this:
wget -P /var/tmp 
https://github.com/gjr80/weewx-gw1000/releases/download/v0.1.0/xcum-0.1.0.tar.gz
The above is not found .
Should be below statement:?
wget -P /var/tmp 
https://github.com/gjr80/weewx-xcumulative/releases/download/v0.1.0/xcum-0.1.0.tar.gz

Correct, thanks, fixed. 

On Sunday, 25 June 2023 at 00:46:59 UTC+1 Greg from Oz wrote:

OK I have installed the extension and it seems to work!
Thanks Gary

You might want to put in the documentation about how to set the reset times 
examples.
I used:
reset = day
reset = week
reset =month
reset = year

[[[yearraincumulation]]]
   rain1
 data_binding = wx_binding
  rain_year_start = 1

  data_type = rain
  aggregate_type = cumulative
  aggregate_interval = 604800 #1 day
  label = Rain cumulative
  plot_type = line
  line_type = solid
  line_gap_fraction = 0.5
  reset = year

 
So the Available config options 
 
and Using the *Cumulative XType* in WeeWX plots 
 wiki pages 
didn't cut it?

Gary

-- 
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/f9f2d466-681d-4570-82be-71998ff2eba7n%40googlegroups.com.


Re: [weewx-user] Re: ERROR weewx.cheetahgenerator: **** MemoryError

2023-06-25 Thread Tom Keffer
Good sleuthing! Pretty crappy algorithm that allows a cache to grow without
bounds.

The skins that come with WeeWX (Seasons, Standard) use static source
template files. They are always the same. So, if I understand you
correctly, each template should take only one slot in sys.modules.

Does the Belchertown skin do things differently?

-tk


On Sun, Jun 25, 2023 at 8:46 AM bell...@gmail.com 
wrote:

> In my experimental skin I was running into this issue, so I decided to
> delve into Cheetah’s internals and learned the following. As part of the
> compilation process the module is added to sys.modules and the generated
> code is cached. If one is dynamically generating template source and it is
> different, then it will not be found in the cache and an additional entry
> will be added to sys.modules and the cache. This will result in ever
> increasing memory usage. Since the OP was dynamically generating html and
> not Cheetah source, it could be included as ‘raw’. This skips the
> compilation step and the addition of it to sys.modules and the cache.
> - rich
>
> --
> 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/c33494f0-1ff1-464e-b37c-df48f02dc1d3n%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/CAPq0zEC5Kfx6UYw9SQ9MVhtaabUwhP1b%2BMniw-A9qAdW9ovPLw%40mail.gmail.com.


Re: [weewx-user] Re: ERROR weewx.cheetahgenerator: **** MemoryError

2023-06-25 Thread bell...@gmail.com
In my experimental skin I was running into this issue, so I decided to 
delve into Cheetah’s internals and learned the following. As part of the 
compilation process the module is added to sys.modules and the generated 
code is cached. If one is dynamically generating template source and it is 
different, then it will not be found in the cache and an additional entry 
will be added to sys.modules and the cache. This will result in ever 
increasing memory usage. Since the OP was dynamically generating html and 
not Cheetah source, it could be included as ‘raw’. This skips the 
compilation step and the addition of it to sys.modules and the cache. 
- rich

-- 
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/c33494f0-1ff1-464e-b37c-df48f02dc1d3n%40googlegroups.com.