Re: [weewx-user] Re: Aussearch error accessing the BOM

2021-05-29 Thread Susan Mackay
Thanks for the tip to download the latest file form the repository - all 
working again now.
Also thanks for the quick response.
Susan

On Sunday, 30 May 2021 at 9:13:37 am UTC+10 Darryn Capes-Davis wrote:

> Great. Good to see everyone working again. Hopefully we are in the clear 
> for a while to come. I did enter into the form BOM points you towards and 
> have started a conversation as to why assets that are available via a 
> browser and not available to well behaved scripts, and what is the 
> legislative restriction that they are following. Nothing back yet.
>
> Get Outlook for iOS 
> --
> *From:* weewx...@googlegroups.com  on behalf 
> of Neville Davis 
> *Sent:* Sunday, May 30, 2021 9:00:13 AM
> *To:* weewx-user 
> *Subject:* Re: [weewx-user] Re: Aussearch error accessing the BOM 
>  
> Had deleted files, now have restarted json files now generated. 
>
> [image: Screen Shot 2021-05-30 at 8.56.16 am.png]
>
> Thanks Darryn
>
> On Sunday, May 30, 2021 at 8:46:59 AM UTC+10 Darryn Capes-Davis wrote:
>
> Hi Neville,
>
> You may need to empty files in /var/lib/weewx/aussearch. Also make sure 
> you have restarted weewx. 
>
> Cheers
>
> Darryn
>
> --
> *From:* weewx...@googlegroups.com  on behalf 
> of Neville Davis 
> *Sent:* Sunday, May 30, 2021 8:43:18 AM
> *To:* weewx-user 
> *Subject:* [weewx-user] Re: Aussearch error accessing the BOM 
>  
> Darryn 
>
> new aussearch.py installed (large no of changes since my feb install 
> compared with BBedit) 
> Still not working...the json files are not being generated, the xml files 
> are OKin /var/lib/weewx/aussearch.
>
> logs show
>
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: Caught 
> unrecoverable exception in generator 
> 'weewx.cheetahgenerator.CheetahGenerator'
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
>   maximum recursion depth exceeded
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
>   Traceback (most recent call last):
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
> File "/home/weewx/bin/weewx/reportengine.py", line 196, in run
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
>   obj.start()
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
> File "/home/weewx/bin/weewx/reportengine.py", line 281, in start
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
>   self.run()
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
> File "/home/weewx/bin/weewx/cheetahgenerator.py", line 149, in run
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
>   self.initExtensions(gen_dict[section_name])
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
> File "/home/weewx/bin/weewx/cheetahgenerator.py", line 193, in 
> initExtensions
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
>   self.search_list_objs.append(class_(self))
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
> File "/home/weewx/bin/user/aussearch.py", line 213, in __init__
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
>   self.refresh_time = 
> float(self.generator.skin_dict['AusSearch']['refresh_time'])
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
> File "/home/weewx/bin/user/aussearch.py", line 535, in __init__
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
>   (self.local_file_path, check_datetime))
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
> File "/home/weewx/bin/user/aussearch.py", line 548, in __getattr__
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
>   syslog.syslog(syslog.LOG_DEBUG, "aussearch: json file does not 
> exist: %s" %
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
> File "/home/weewx/bin/user/aussearch.py", line 548, in __getattr__
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
>   syslog.syslog(syslog.LOG_DEBUG, "aussearch: json file does not 
> exist: %s" %
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
> File "/home/weewx/bin/user/aussearch.py", line 548, in __getattr__
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
>   syslog.syslog(syslog.LOG_DEBUG, "aussearch: json file does not 
> exist: %s" %
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
> [Previous line repeated 491 more times]
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
>   RecursionError: maximum recursion depth exceeded
> May 30 

Re: [weewx-user] Re: Aussearch error accessing the BOM

2021-05-29 Thread Neville Davis
Yep did empty files have not done a restart yet...will now do

On Sunday, May 30, 2021 at 8:46:59 AM UTC+10 Darryn Capes-Davis wrote:

> Hi Neville,
>
> You may need to empty files in /var/lib/weewx/aussearch. Also make sure 
> you have restarted weewx. 
>
> Cheers
>
> Darryn
>
> --
> *From:* weewx...@googlegroups.com  on behalf 
> of Neville Davis 
> *Sent:* Sunday, May 30, 2021 8:43:18 AM
> *To:* weewx-user 
> *Subject:* [weewx-user] Re: Aussearch error accessing the BOM 
>  
> Darryn 
>
> new aussearch.py installed (large no of changes since my feb install 
> compared with BBedit) 
> Still not working...the json files are not being generated, the xml files 
> are OKin /var/lib/weewx/aussearch.
>
> logs show
>
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: Caught 
> unrecoverable exception in generator 
> 'weewx.cheetahgenerator.CheetahGenerator'
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
>   maximum recursion depth exceeded
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
>   Traceback (most recent call last):
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
> File "/home/weewx/bin/weewx/reportengine.py", line 196, in run
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
>   obj.start()
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
> File "/home/weewx/bin/weewx/reportengine.py", line 281, in start
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
>   self.run()
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
> File "/home/weewx/bin/weewx/cheetahgenerator.py", line 149, in run
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
>   self.initExtensions(gen_dict[section_name])
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
> File "/home/weewx/bin/weewx/cheetahgenerator.py", line 193, in 
> initExtensions
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
>   self.search_list_objs.append(class_(self))
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
> File "/home/weewx/bin/user/aussearch.py", line 213, in __init__
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
>   self.refresh_time = 
> float(self.generator.skin_dict['AusSearch']['refresh_time'])
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
> File "/home/weewx/bin/user/aussearch.py", line 535, in __init__
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
>   (self.local_file_path, check_datetime))
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
> File "/home/weewx/bin/user/aussearch.py", line 548, in __getattr__
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
>   syslog.syslog(syslog.LOG_DEBUG, "aussearch: json file does not 
> exist: %s" %
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
> File "/home/weewx/bin/user/aussearch.py", line 548, in __getattr__
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
>   syslog.syslog(syslog.LOG_DEBUG, "aussearch: json file does not 
> exist: %s" %
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
> File "/home/weewx/bin/user/aussearch.py", line 548, in __getattr__
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
>   syslog.syslog(syslog.LOG_DEBUG, "aussearch: json file does not 
> exist: %s" %
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
> [Previous line repeated 491 more times]
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
>   RecursionError: maximum recursion depth exceeded
> May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
>   Generator terminated
>
> On Sunday, May 30, 2021 at 7:54:15 AM UTC+10 Neville Davis wrote:
>
>  Yes happening to me as well… started on Thursday,,,my normal fix of 
> getting the /var/lib/weewx/aussearch reloaded not working…I will check the 
> repo  
> Thanks Darryn
>
> On Saturday, May 29, 2021 at 10:05:50 PM UTC+10 Darryn Capes-Davis wrote:
>
> Hi Susan, 
>
> See the GitHub repo for update aussearch.py. The code now behaves more 
> like a browser with more headers and keep alive so not blocked by BOM. 
>
> Regards
>
> Darryn
>
> On Saturday, May 29, 2021 at 7:22:14 PM UTC+10 vk3...@gmail.com wrote:
>
> I have been using Aussearch for a while now but in the last few days I've 
> been getting: 
>
> May 29 19:05:34 weather weewxd[8649]: weewx[8649] ERROR user.aussearch: 
> aussearch: cannot download xml file 
> 

Re: [weewx-user] Re: Aussearch error accessing the BOM

2021-05-29 Thread Carlingford Weather
Hi Neville,

You may need to empty files in /var/lib/weewx/aussearch. Also make sure you 
have restarted weewx.

Cheers

Darryn


From: weewx-user@googlegroups.com  on behalf of 
Neville Davis 
Sent: Sunday, May 30, 2021 8:43:18 AM
To: weewx-user 
Subject: [weewx-user] Re: Aussearch error accessing the BOM

Darryn

new aussearch.py installed (large no of changes since my feb install compared 
with BBedit)
Still not working...the json files are not being generated, the xml files are 
OKin /var/lib/weewx/aussearch.

logs show

May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: Caught 
unrecoverable exception in generator 'weewx.cheetahgenerator.CheetahGenerator'
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:   
maximum recursion depth exceeded
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:   
Traceback (most recent call last):
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:    
 File "/home/weewx/bin/weewx/reportengine.py", line 196, in run
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:    
   obj.start()
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:    
 File "/home/weewx/bin/weewx/reportengine.py", line 281, in start
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:    
   self.run()
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:    
 File "/home/weewx/bin/weewx/cheetahgenerator.py", line 149, in run
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:    
   self.initExtensions(gen_dict[section_name])
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:    
 File "/home/weewx/bin/weewx/cheetahgenerator.py", line 193, in initExtensions
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:    
   self.search_list_objs.append(class_(self))
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:    
 File "/home/weewx/bin/user/aussearch.py", line 213, in __init__
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:    
   self.refresh_time = 
float(self.generator.skin_dict['AusSearch']['refresh_time'])
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:    
 File "/home/weewx/bin/user/aussearch.py", line 535, in __init__
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:    
   (self.local_file_path, check_datetime))
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:    
 File "/home/weewx/bin/user/aussearch.py", line 548, in __getattr__
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:    
   syslog.syslog(syslog.LOG_DEBUG, "aussearch: json file does not exist: %s" %
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:    
 File "/home/weewx/bin/user/aussearch.py", line 548, in __getattr__
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:    
   syslog.syslog(syslog.LOG_DEBUG, "aussearch: json file does not exist: %s" %
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:    
 File "/home/weewx/bin/user/aussearch.py", line 548, in __getattr__
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:    
   syslog.syslog(syslog.LOG_DEBUG, "aussearch: json file does not exist: %s" %
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:    
 [Previous line repeated 491 more times]
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:   
RecursionError: maximum recursion depth exceeded
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine:   
Generator terminated

On Sunday, May 30, 2021 at 7:54:15 AM UTC+10 Neville Davis wrote:
 Yes happening to me as well… started on Thursday,,,my normal fix of getting 
the /var/lib/weewx/aussearch reloaded not working…I will check the repo
Thanks Darryn

On Saturday, May 29, 2021 at 10:05:50 PM UTC+10 Darryn Capes-Davis wrote:
Hi Susan,

See the GitHub repo for update aussearch.py. The code now behaves more like a 
browser with more headers and keep alive so not blocked by BOM.

Regards

Darryn

On Saturday, May 29, 2021 at 7:22:14 PM UTC+10 vk3...@gmail.com wrote:
I have been using Aussearch for a while now but in the last few days I've been 
getting:

May 29 19:05:34 weather weewxd[8649]: weewx[8649] ERROR user.aussearch: 
aussearch: cannot download xml file 
http://www.bom.gov.au/fwo/IDZ00059.warnings_vic.xml: HTTP Error 403: Forbidden

That part is not so bad but I suspect that it is also leading to:


May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR weewx.cheetahgenerator: 
Generate failed with exception ''

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR weewx.cheetahgenerator: 
 Ignoring template 

[weewx-user] Re: Aussearch error accessing the BOM

2021-05-29 Thread Neville Davis
Darryn

new aussearch.py installed (large no of changes since my feb install 
compared with BBedit) 
Still not working...the json files are not being generated, the xml files 
are OKin /var/lib/weewx/aussearch.

logs show

May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: Caught 
unrecoverable exception in generator 
'weewx.cheetahgenerator.CheetahGenerator'
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
  maximum recursion depth exceeded
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
  Traceback (most recent call last):
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
File "/home/weewx/bin/weewx/reportengine.py", line 196, in run
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
  obj.start()
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
File "/home/weewx/bin/weewx/reportengine.py", line 281, in start
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
  self.run()
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
File "/home/weewx/bin/weewx/cheetahgenerator.py", line 149, in run
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
  self.initExtensions(gen_dict[section_name])
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
File "/home/weewx/bin/weewx/cheetahgenerator.py", line 193, in 
initExtensions
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
  self.search_list_objs.append(class_(self))
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
File "/home/weewx/bin/user/aussearch.py", line 213, in __init__
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
  self.refresh_time = 
float(self.generator.skin_dict['AusSearch']['refresh_time'])
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
File "/home/weewx/bin/user/aussearch.py", line 535, in __init__
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
  (self.local_file_path, check_datetime))
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
File "/home/weewx/bin/user/aussearch.py", line 548, in __getattr__
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
  syslog.syslog(syslog.LOG_DEBUG, "aussearch: json file does not 
exist: %s" %
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
File "/home/weewx/bin/user/aussearch.py", line 548, in __getattr__
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
  syslog.syslog(syslog.LOG_DEBUG, "aussearch: json file does not 
exist: %s" %
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
File "/home/weewx/bin/user/aussearch.py", line 548, in __getattr__
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
  syslog.syslog(syslog.LOG_DEBUG, "aussearch: json file does not 
exist: %s" %
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
[Previous line repeated 491 more times]
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
  RecursionError: maximum recursion depth exceeded
May 30 08:30:24 raspberrypi weewx[700] ERROR weewx.reportengine: 
  Generator terminated

On Sunday, May 30, 2021 at 7:54:15 AM UTC+10 Neville Davis wrote:

>  Yes happening to me as well… started on Thursday,,,my normal fix of 
> getting the /var/lib/weewx/aussearch reloaded not working…I will check the 
> repo 
> Thanks Darryn
>
> On Saturday, May 29, 2021 at 10:05:50 PM UTC+10 Darryn Capes-Davis wrote:
>
>> Hi Susan,
>>
>> See the GitHub repo for update aussearch.py. The code now behaves more 
>> like a browser with more headers and keep alive so not blocked by BOM. 
>>
>> Regards
>>
>> Darryn
>>
>> On Saturday, May 29, 2021 at 7:22:14 PM UTC+10 vk3...@gmail.com wrote:
>>
>>> I have been using Aussearch for a while now but in the last few days 
>>> I've been getting:
>>>
>>> May 29 19:05:34 weather weewxd[8649]: weewx[8649] ERROR user.aussearch: 
>>> aussearch: cannot download xml file 
>>> http://www.bom.gov.au/fwo/IDZ00059.warnings_vic.xml: HTTP Error 403: 
>>> Forbidden
>>>
>>> That part is not so bad but I suspect that it is also leading to:
>>>
>>>
>>> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
>>> weewx.cheetahgenerator: Generate failed with exception '>> 'RecursionError'>'
>>>
>>> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
>>> weewx.cheetahgenerator:  Ignoring template 
>>> /home/weewx/skins/Responsive/index.html.tmpl
>>>
>>> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
>>> weewx.cheetahgenerator:  Reason: maximum recursion depth exceeded in 
>>> comparison
>>>
>>> May 29 19:06:08 

[weewx-user] Re: Aussearch error accessing the BOM

2021-05-29 Thread Neville Davis
 Yes happening to me as well… started on Thursday,,,my normal fix of 
getting the /var/lib/weewx/aussearch reloaded not working…I will check the 
repo 
Thanks Darryn

On Saturday, May 29, 2021 at 10:05:50 PM UTC+10 Darryn Capes-Davis wrote:

> Hi Susan,
>
> See the GitHub repo for update aussearch.py. The code now behaves more 
> like a browser with more headers and keep alive so not blocked by BOM. 
>
> Regards
>
> Darryn
>
> On Saturday, May 29, 2021 at 7:22:14 PM UTC+10 vk3...@gmail.com wrote:
>
>> I have been using Aussearch for a while now but in the last few days I've 
>> been getting:
>>
>> May 29 19:05:34 weather weewxd[8649]: weewx[8649] ERROR user.aussearch: 
>> aussearch: cannot download xml file 
>> http://www.bom.gov.au/fwo/IDZ00059.warnings_vic.xml: HTTP Error 403: 
>> Forbidden
>>
>> That part is not so bad but I suspect that it is also leading to:
>>
>>
>> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
>> weewx.cheetahgenerator: Generate failed with exception '> 'RecursionError'>'
>>
>> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
>> weewx.cheetahgenerator:  Ignoring template 
>> /home/weewx/skins/Responsive/index.html.tmpl
>>
>> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
>> weewx.cheetahgenerator:  Reason: maximum recursion depth exceeded in 
>> comparison
>>
>> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
>> weewx.cheetahgenerator:   Traceback (most recent call last):
>>
>> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
>> weewx.cheetahgenerator: File 
>> "/home/weewx/bin/weewx/cheetahgenerator.py", line 322, in generate
>>
>> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
>> weewx.cheetahgenerator:   unicode_string = 
>> compiled_template.respond()
>>
>> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
>> weewx.cheetahgenerator: File 
>> "_home_weewx_skins_Responsive_index_html_tmpl.py", line 1688, in respond
>>
>> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
>> weewx.cheetahgenerator: File 
>> "_home_weewx_skins_Responsive_index_html_tmpl.py", line 681, in 
>> __errorCatcher88
>>
>> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
>> weewx.cheetahgenerator: File "", line 1, in 
>>
>> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
>> weewx.cheetahgenerator: File 
>> "/home/weewx/bin/user/aussearch.py", line 381, in __getattr__
>>
>> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
>> weewx.cheetahgenerator:   if self.root_node is not None:
>>
>> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
>> weewx.cheetahgenerator: File 
>> "/home/weewx/bin/user/aussearch.py", line 381, in __getattr__
>>
>> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
>> weewx.cheetahgenerator:   if self.root_node is not None:
>>
>> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
>> weewx.cheetahgenerator: File 
>> "/home/weewx/bin/user/aussearch.py", line 381, in __getattr__
>>
>> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
>> weewx.cheetahgenerator:   if self.root_node is not None:
>>
>> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
>> weewx.cheetahgenerator: [Previous line repeated 489 more times]
>>
>> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
>> weewx.cheetahgenerator: File 
>> "/home/weewx/bin/user/aussearch.py", line 378, in __getattr__
>>
>> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
>> weewx.cheetahgenerator:   if child_or_attrib in ['__call__', 
>> 'has_key']:
>>
>> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
>> weewx.cheetahgenerator:   RecursionError: maximum recursion depth 
>> exceeded in comparison
>>
>>
>> This is stopping the generation of the whole web page file.
>>
>> I suspect that this is part of the on-going process by the BoM  to 
>> restrict access to various files but I could be wrong.
>>
>> Before I try to take this out, is there any workaround?
>>
>> Susan
>>
>

-- 
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/d633c60d-423c-44f0-b6be-34f43b936d7bn%40googlegroups.com.


[weewx-user] Re: Negative Rain

2021-05-29 Thread Karen K
After I adjusted the time of the console no further error messages occured. 
All is working as normal again.

I looked into the driver. From what I saw there, the time sent by the 
device is used to decide when to reset the rain counter. So it should work 
even if the clock is misaligned. But it did not. 

The Davis weather station sends data wireless. The consoles are not 
connected to the network. Only the WeatherLinkLive device is. So I wonder 
how the WeatherLinkLive device could learn about the time adjustment of the 
console.

Karen K schrieb am Donnerstag, 27. Mai 2021 um 19:51:13 UTC+2:

> 2 hours of work to fix the database from the logging messages.
>
> Karen K schrieb am Donnerstag, 27. Mai 2021 um 17:46:34 UTC+2:
>
>> Thank you, Susan, for your thoughts. 
>>
>> I use WeatherLinkLive hardware from Davis. I looked around how to adjust 
>> the clock time of that device. Nothing found.
>>
>> Then I checked the time that is displayed on the console. It was some 
>> minutes behind. So I adjusted the time of the console. 
>>
>> We have 2 consoles. I checked the second console, too. It was behind, 
>> too. And adjusting the first console did not affect the second console. I 
>> adjusted it, too.
>>
>> After that - surprise - the WeatherLinkLive device is sending the correct 
>> time, too. I do not understand, how that works.
>>
>> I will see, what happens this night.
>>
>>
>> vk3...@gmail.com schrieb am Donnerstag, 27. Mai 2021 um 04:59:54 UTC+2:
>>
>>> Weewx expects the rain amount added since the last 'loop' record but *my 
>>> guess* is that the weather station is providing the volume of rain since 
>>> some reset time (midnight?). Therefore the driver is remembering the last 
>>> volume the station provided and subtracts that from the latest volume to 
>>> pass on the difference to weewx. (This is how my driver - not the one you 
>>> are using - handles this.)
>>>
>>> Further I'm guessing that the driver will try to match the weather 
>>> stations reset time.
>>>
>>> As the problem starts just after midnight, it could well be that there 
>>> is a difference in the times that the weather station sets the rain volume 
>>> for the day back to zero and when the driver tries to do the same. If the 
>>> driver has a certain value from just before midnight; the weather station 
>>> resets to zero but the driver does not; the next rain volume seen by the 
>>> driver will be loer than the last one it has recorded and so will pass on a 
>>> negative 'increment'.
>>>
>>> I would check that both the weather station and the system running weewx 
>>> have the same time and therefore record the 'midnight reset' together.
>>>
>>> (This is all wild supposition on my part - please treat it as such!)
>>>
>>> Susan
>>>
>>> On Thursday, 27 May 2021 at 5:49:45 am UTC+10 kk44...@gmail.com wrote:
>>>
 First I realized, that rainRate > 0 but rain == 0. And it was raining. 
 So I looked into it.

 weewx.conf says:

 [Station]

 ...

 station_type = WeatherLinkLiveUDP

 [WeatherLinkLiveUDP]

 wll_ip = XXX.XXX.XXX.XXX

 poll_interval = 10

 driver = user.weatherlinkliveudp

 hardware = Davis Vantage Pro2
 Before midnight, no error is logged into syslog. All is normal. 
 Starting with 00:00:05 today WeeWX complains to syslog about a negative 
 rain value:

 May 26 00:00:05 LokalWiki weewx[365882] WARNING weewx.qc: 2021-05-26 
 00:00:06 CEST (1621980006) LOOP value 'rain' -0.14960629921259844 outside 
 limits (0.0, 10.0)
 This message is repeated for *every loop packet*. The value increases 
 during the day a little bit.

 May 26 21:05:50 LokalWiki weewx[365882] WARNING weewx.qc: 2021-05-26 
 21:05:50 CEST (1622055950) LOOP value 'rain' -0.015748031496062992 outside 
 limits (0.0, 10.0)
 When I realized all that, I stopped WeeWX and started it again. No more 
 messages from that moment on. And rain is registered again as normal.

 Reading weewx.sdb results in:

 sqlite> select dateTime,rain,rainRate from archive where 
 dateTime>=162198 order by 1;

 162198|0.0|0.0

 1621980300|0.149606299212598|0.0

 1621980600|0.0|0.0
 ...

 1621980300 == 26.05.2021 00:05:00 CEST, which is the time, when the 
 messages started. For all other timestamps up to the restart rain is 0.0

 Can someone draw sense out of that?




-- 
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/531fe152-5418-44fe-94f7-7352dbc29d97n%40googlegroups.com.


Re: [weewx-user] Re: no connection to the web server

2021-05-29 Thread vince
On Saturday, May 29, 2021 at 1:25:05 AM UTC-7 eckha...@googlemail.com wrote:

> i reinstalled all of them ... then i checked the folders on the spot and 
> checked their contents. without success! I give up. 
>
> vince schrieb am Samstag, 29. Mai 2021 um 03:45:52 UTC+2:
>
>> See if the FAQ 
>>  helps 
>> any.
>>
>> You've established weewx is generating files.  You haven't pinned down 
>> whether weewx+apache are in agreement on where the web pages are, nor if 
>> apache is running at all.
>>
>
I suspect that we have a translation to English problem here.
The problem descriptions are so cryptic and short that we cannot determine 
what you are doing, and you refuse to give us transcripts of what you are 
seeing.


   - Try to open http://x.x.x.x in a browser and tell us what Apache 
   responds with
   - They try to open http://x.x.x.x/weewx and tell us what Apache responds 
   with
   - (put in the ip address of your webserver above please)
   

Do not say "it didn't work" or "without success".

Give us an exact transcript of what the browser returned to you.

-- 
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/8a1def4c-de13-4ff2-a83d-531c3d6cfd0fn%40googlegroups.com.


Re: [weewx-user] Re: no connection to the web server

2021-05-29 Thread Rainer Lang

@OP: don't give up too early, too fast 

As per his OP, it looks as if he is using Apache2, however, if the web 
server is configured properly and configured to display the html files 
created under /home/weewx/public_html (and if it's running at all) is a 
different question.


Weewx seems to run properly, saves every 5 minutes data to the database 
and the pictures and the html page of the Seasons skin are created - the 
issue is that they are not displayed in the browser.


So it appears to be web server configuration question

Afaik, by default, apache2 expects files to be read from outside via 
http/https to be located in /var/www/html and subdirectories.
If another directory / path is being used (e.g. 
/home/weewx/public_html), Apache needs to be told (and needs to have 
read rights for this directory).


maybe for an inexperienced user (we don't know the experience level of 
the OP) our explanations need to be more explicit


first of all, as stupid as it may sound, apache needs to run:
check via: *service apache2 status*
then
see what several posts/replies suggest:
---
... have the file "weewx.conf" in "/etc/apache2/conf-enabled/" folder?

this file (weewx.conf) is NOT the weewx.conf from /etc/weewx used to 
start weewx
but a file with the same name (i.e. weewx.conf) and it should have the 
content which is shown below, starting with "Alias /weewx " (without "")


*Alias /weewx /home/weewx/public_html*
**
*    Options FollowSymlinks*
*    AllowOverride None*
*    Require all granted*
**
---
if it exists, check if the content matches the bold text above
if it doesn't exist, create a text file weewx.conf with the above 
content in bold - save !


apache2 needs to be restarted after changes made (or creation) of/to 
(the Apache specific file) weewx.conf

with
|sudo /etc/init.d/apache2 restart|

then in principle the Seasons skin should be visible in the web browser

Another test could be to copy the content of /home/weewx/public_html
to /var/www/html/weewx
(create the folder weewx if not existing with sudo mkdir 
/var/www/html/weewx)

allow apache to read it
sudo chmod -R 755 /var/www/html/weewx
and then check in the browser:
http://ip-address/weewx

if this works, apache2 is running properly and also hasn't been told 
where to pick up the weewx index.html



On 29.05.2021 15:40, Tom Keffer wrote:
He may not be using Apache. Indeed, he may not have a webserver at 
all --- we don't know.


On Sat, May 29, 2021 at 5:52 AM storm...@gmail.com 
 > wrote:


Check to see if the weewx.conf  is also in 
/etc/apache2/conf-available folder.

On Saturday, May 29, 2021 at 4:25:05 AM UTC-4
eckha...@googlemail.com  wrote:

i reinstalled all of them ... then i checked the folders on
the spot and checked their contents. without success! I give up.

vince schrieb am Samstag, 29. Mai 2021 um 03:45:52 UTC+2:


See if the FAQ
 
helps
any.

You've established weewx is generating files. You haven't
pinned down whether weewx+apache are in agreement on where
the web pages are, nor if apache is running at all.


On Friday, May 28, 2021 at 6:22:18 PM UTC-7
storm...@gmail.com wrote:

Do you have the file "weewx.conf" in
"/etc/apache2/conf-enabled/" folder?


Alias /weewx /home/weewx/public_html

    Options FollowSymlinks
    AllowOverride None
    Require all granted


If not, add the file and restart apache2

On Friday, May 28, 2021 at 9:08:58 PM UTC-4
tke...@gmail.com wrote:

Everything looks totally normal to me. Did you
browse to file:///home/weewx/public_html/?

Or, did you tell your webserver to look there?

On Fri, May 28, 2021 at 5:40 PM
'eckha...@googlemail.com' via weewx-user
 wrote:


index.PNG


the funny thing is there is also data in the
file but i can't call it up


eckha...@googlemail.com schrieb am Samstag,
29. Mai 2021 um 02:34:30 UTC+2:

Unbenannt.PNG

eckha...@googlemail.com schrieb am
Samstag, 29. Mai 2021 um 02:33:35 UTC+2:



weewx.PNG
tke...@gmail.com schrieb am Samstag,
29. Mai 2021 um 02:15:55 UTC+2:

Weewx seems to be running normally.


Re: [weewx-user] Re: no connection to the web server

2021-05-29 Thread Tom Keffer
He may not be using Apache. Indeed, he may not have a webserver at all ---
we don't know.

On Sat, May 29, 2021 at 5:52 AM storm...@gmail.com 
wrote:

> Check to see if the  weewx.conf  is also in  /etc/apache2/conf-available
> folder.
>
> On Saturday, May 29, 2021 at 4:25:05 AM UTC-4 eckha...@googlemail.com
> wrote:
>
>> i reinstalled all of them ... then i checked the folders on the spot and
>> checked their contents. without success! I give up.
>>
>> vince schrieb am Samstag, 29. Mai 2021 um 03:45:52 UTC+2:
>>
>>>
>>> See if the FAQ
>>>  helps
>>> any.
>>>
>>> You've established weewx is generating files.  You haven't pinned down
>>> whether weewx+apache are in agreement on where the web pages are, nor if
>>> apache is running at all.
>>>
>>>
>>> On Friday, May 28, 2021 at 6:22:18 PM UTC-7 storm...@gmail.com wrote:
>>>
 Do you have the file "weewx.conf" in  "/etc/apache2/conf-enabled/"
 folder?


 Alias /weewx /home/weewx/public_html
 
 Options FollowSymlinks
 AllowOverride None
 Require all granted
 

 If not, add the file and restart apache2

 On Friday, May 28, 2021 at 9:08:58 PM UTC-4 tke...@gmail.com wrote:

> Everything looks totally normal to me. Did you browse
> to file:///home/weewx/public_html/?
>
> Or, did you tell your webserver to look there?
>
> On Fri, May 28, 2021 at 5:40 PM 'eckha...@googlemail.com' via
> weewx-user  wrote:
>
>>
>> [image: index.PNG]
>>
>>
>> the funny thing is there is also data in the file but i can't call it
>> up
>>
>>
>> eckha...@googlemail.com schrieb am Samstag, 29. Mai 2021 um 02:34:30
>> UTC+2:
>>
>>> [image: Unbenannt.PNG]
>>>
>>> eckha...@googlemail.com schrieb am Samstag, 29. Mai 2021 um
>>> 02:33:35 UTC+2:
>>>


 [image: weewx.PNG]
 tke...@gmail.com schrieb am Samstag, 29. Mai 2021 um 02:15:55
 UTC+2:

> Weewx seems to be running normally.
>
> Is there a question in there? Did you look in
> /home/weewx/public_html?
>
> On Fri, May 28, 2021 at 5:00 PM 'eckha...@googlemail.com' via
> weewx-user  wrote:
>
>> addendum
>>
>> May 29 00:56:02 raspberrypi weewx[471] INFO weewx.manager: Added
>> record 2021-05-29 00:55:00 BST (1622246100) to database 'weewx.sdb'
>> May 29 00:56:02 raspberrypi weewx[471] INFO weewx.manager: Added
>> record 2021-05-29 00:55:00 BST (1622246100) to daily summary in 
>> 'weewx.sdb'
>> May 29 00:56:02 raspberrypi weewx[471] DEBUG weewx.reportengine:
>> Running reports for latest time in the database.
>> May 29 00:56:02 raspberrypi weewx[471] DEBUG weewx.reportengine:
>> Running report 'SeasonsReport'
>> May 29 00:56:02 raspberrypi weewx[471] DEBUG weewx.reportengine:
>> Found configuration file /home/weewx/skins/Seasons/skin.conf for 
>> report
>> 'SeasonsReport'
>> May 29 00:56:02 raspberrypi weewx[471] DEBUG
>> weewx.cheetahgenerator: Using search list
>> ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station',
>> 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats',
>> 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras',
>> 'weewx.cheetahgenerator.JSONHelpers']
>> May 29 00:56:02 raspberrypi weewx[471] DEBUG weewx.manager: Daily
>> summary version is 4.0
>> May 29 00:56:04 raspberrypi weewx[471] INFO
>> weewx.cheetahgenerator: Generated 8 files for report SeasonsReport 
>> in 2.03
>> seconds
>> May 29 00:56:04 raspberrypi weewx[471] DEBUG weewx.manager: Daily
>> summary version is 4.0
>> May 29 00:56:05 raspberrypi weewx[471] INFO weewx.imagegenerator:
>> Generated 15 images for report SeasonsReport in 0.58 seconds
>> May 29 00:56:05 raspberrypi weewx[471] INFO weewx.reportengine:
>> Copied 5 files to /home/weewx/public_html
>> May 29 00:56:05 raspberrypi weewx[471] DEBUG weewx.reportengine:
>> Report 'SmartphoneReport' not enabled. Skipping.
>> May 29 00:56:05 raspberrypi weewx[471] DEBUG weewx.reportengine:
>> Report 'MobileReport' not enabled. Skipping.
>> May 29 00:56:05 raspberrypi weewx[471] DEBUG weewx.reportengine:
>> Report 'StandardReport' not enabled. Skipping.
>> May 29 00:56:05 raspberrypi weewx[471] DEBUG weewx.reportengine:
>> Report 'FTP' not enabled. Skipping.
>> May 29 00:56:05 raspberrypi weewx[471] DEBUG weewx.reportengine:
>> Report 'RSYNC' not enabled. Skipping.
>> May 29 00:56:50 raspberrypi dhcpcd[601]: eth0: Router
>> Advertisement from fe80::cece:1eff:fe3a:d164
>>

Re: [weewx-user] Re: no connection to the web server

2021-05-29 Thread storm...@gmail.com
Check to see if the  weewx.conf  is also in  /etc/apache2/conf-available 
folder.

On Saturday, May 29, 2021 at 4:25:05 AM UTC-4 eckha...@googlemail.com wrote:

> i reinstalled all of them ... then i checked the folders on the spot and 
> checked their contents. without success! I give up. 
>
> vince schrieb am Samstag, 29. Mai 2021 um 03:45:52 UTC+2:
>
>>
>> See if the FAQ 
>>  helps 
>> any.
>>
>> You've established weewx is generating files.  You haven't pinned down 
>> whether weewx+apache are in agreement on where the web pages are, nor if 
>> apache is running at all.
>>
>>
>> On Friday, May 28, 2021 at 6:22:18 PM UTC-7 storm...@gmail.com wrote:
>>
>>> Do you have the file "weewx.conf" in  "/etc/apache2/conf-enabled/" 
>>> folder?
>>>
>>>
>>> Alias /weewx /home/weewx/public_html
>>> 
>>> Options FollowSymlinks
>>> AllowOverride None
>>> Require all granted
>>> 
>>>
>>> If not, add the file and restart apache2
>>>
>>> On Friday, May 28, 2021 at 9:08:58 PM UTC-4 tke...@gmail.com wrote:
>>>
 Everything looks totally normal to me. Did you browse 
 to file:///home/weewx/public_html/?

 Or, did you tell your webserver to look there?

 On Fri, May 28, 2021 at 5:40 PM 'eckha...@googlemail.com' via 
 weewx-user  wrote:

>
> [image: index.PNG]
>
>
> the funny thing is there is also data in the file but i can't call it 
> up 
>
>
> eckha...@googlemail.com schrieb am Samstag, 29. Mai 2021 um 02:34:30 
> UTC+2:
>
>> [image: Unbenannt.PNG]
>>
>> eckha...@googlemail.com schrieb am Samstag, 29. Mai 2021 um 02:33:35 
>> UTC+2:
>>
>>>
>>>
>>> [image: weewx.PNG]
>>> tke...@gmail.com schrieb am Samstag, 29. Mai 2021 um 02:15:55 UTC+2:
>>>
 Weewx seems to be running normally. 

 Is there a question in there? Did you look in 
 /home/weewx/public_html?

 On Fri, May 28, 2021 at 5:00 PM 'eckha...@googlemail.com' via 
 weewx-user  wrote:

> addendum 
>
> May 29 00:56:02 raspberrypi weewx[471] INFO weewx.manager: Added 
> record 2021-05-29 00:55:00 BST (1622246100) to database 'weewx.sdb'
> May 29 00:56:02 raspberrypi weewx[471] INFO weewx.manager: Added 
> record 2021-05-29 00:55:00 BST (1622246100) to daily summary in 
> 'weewx.sdb'
> May 29 00:56:02 raspberrypi weewx[471] DEBUG weewx.reportengine: 
> Running reports for latest time in the database.
> May 29 00:56:02 raspberrypi weewx[471] DEBUG weewx.reportengine: 
> Running report 'SeasonsReport'
> May 29 00:56:02 raspberrypi weewx[471] DEBUG weewx.reportengine: 
> Found configuration file /home/weewx/skins/Seasons/skin.conf for 
> report 
> 'SeasonsReport'
> May 29 00:56:02 raspberrypi weewx[471] DEBUG 
> weewx.cheetahgenerator: Using search list 
> ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 
> 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 
> 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras', 
> 'weewx.cheetahgenerator.JSONHelpers']
> May 29 00:56:02 raspberrypi weewx[471] DEBUG weewx.manager: Daily 
> summary version is 4.0
> May 29 00:56:04 raspberrypi weewx[471] INFO 
> weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 
> 2.03 
> seconds
> May 29 00:56:04 raspberrypi weewx[471] DEBUG weewx.manager: Daily 
> summary version is 4.0
> May 29 00:56:05 raspberrypi weewx[471] INFO weewx.imagegenerator: 
> Generated 15 images for report SeasonsReport in 0.58 seconds
> May 29 00:56:05 raspberrypi weewx[471] INFO weewx.reportengine: 
> Copied 5 files to /home/weewx/public_html
> May 29 00:56:05 raspberrypi weewx[471] DEBUG weewx.reportengine: 
> Report 'SmartphoneReport' not enabled. Skipping.
> May 29 00:56:05 raspberrypi weewx[471] DEBUG weewx.reportengine: 
> Report 'MobileReport' not enabled. Skipping.
> May 29 00:56:05 raspberrypi weewx[471] DEBUG weewx.reportengine: 
> Report 'StandardReport' not enabled. Skipping.
> May 29 00:56:05 raspberrypi weewx[471] DEBUG weewx.reportengine: 
> Report 'FTP' not enabled. Skipping.
> May 29 00:56:05 raspberrypi weewx[471] DEBUG weewx.reportengine: 
> Report 'RSYNC' not enabled. Skipping.
> May 29 00:56:50 raspberrypi dhcpcd[601]: eth0: Router 
> Advertisement from fe80::cece:1eff:fe3a:d164
>
> eckha...@googlemail.com schrieb am Samstag, 29. Mai 2021 um 
> 01:59:44 UTC+2:
>
>>
>> Hey 
>>
>> Hardware:
>> Froggit WS1050
>> Pi 4 
>> Rasbian os 
>> Weewx 

[weewx-user] Re: Aussearch error accessing the BOM

2021-05-29 Thread Darryn Capes-Davis
Hi Susan,

See the GitHub repo for update aussearch.py. The code now behaves more like 
a browser with more headers and keep alive so not blocked by BOM. 

Regards

Darryn

On Saturday, May 29, 2021 at 7:22:14 PM UTC+10 vk3...@gmail.com wrote:

> I have been using Aussearch for a while now but in the last few days I've 
> been getting:
>
> May 29 19:05:34 weather weewxd[8649]: weewx[8649] ERROR user.aussearch: 
> aussearch: cannot download xml file 
> http://www.bom.gov.au/fwo/IDZ00059.warnings_vic.xml: HTTP Error 403: 
> Forbidden
>
> That part is not so bad but I suspect that it is also leading to:
>
>
> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
> weewx.cheetahgenerator: Generate failed with exception ' 'RecursionError'>'
>
> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
> weewx.cheetahgenerator:  Ignoring template 
> /home/weewx/skins/Responsive/index.html.tmpl
>
> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
> weewx.cheetahgenerator:  Reason: maximum recursion depth exceeded in 
> comparison
>
> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
> weewx.cheetahgenerator:   Traceback (most recent call last):
>
> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
> weewx.cheetahgenerator: File 
> "/home/weewx/bin/weewx/cheetahgenerator.py", line 322, in generate
>
> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
> weewx.cheetahgenerator:   unicode_string = 
> compiled_template.respond()
>
> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
> weewx.cheetahgenerator: File 
> "_home_weewx_skins_Responsive_index_html_tmpl.py", line 1688, in respond
>
> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
> weewx.cheetahgenerator: File 
> "_home_weewx_skins_Responsive_index_html_tmpl.py", line 681, in 
> __errorCatcher88
>
> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
> weewx.cheetahgenerator: File "", line 1, in 
>
> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
> weewx.cheetahgenerator: File "/home/weewx/bin/user/aussearch.py", 
> line 381, in __getattr__
>
> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
> weewx.cheetahgenerator:   if self.root_node is not None:
>
> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
> weewx.cheetahgenerator: File "/home/weewx/bin/user/aussearch.py", 
> line 381, in __getattr__
>
> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
> weewx.cheetahgenerator:   if self.root_node is not None:
>
> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
> weewx.cheetahgenerator: File "/home/weewx/bin/user/aussearch.py", 
> line 381, in __getattr__
>
> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
> weewx.cheetahgenerator:   if self.root_node is not None:
>
> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
> weewx.cheetahgenerator: [Previous line repeated 489 more times]
>
> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
> weewx.cheetahgenerator: File "/home/weewx/bin/user/aussearch.py", 
> line 378, in __getattr__
>
> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
> weewx.cheetahgenerator:   if child_or_attrib in ['__call__', 
> 'has_key']:
>
> May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
> weewx.cheetahgenerator:   RecursionError: maximum recursion depth 
> exceeded in comparison
>
>
> This is stopping the generation of the whole web page file.
>
> I suspect that this is part of the on-going process by the BoM  to 
> restrict access to various files but I could be wrong.
>
> Before I try to take this out, is there any workaround?
>
> Susan
>

-- 
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/27732597-e9f3-45c3-91a5-028d269c79c7n%40googlegroups.com.


[weewx-user] Aussearch error accessing the BOM

2021-05-29 Thread Susan Mackay
I have been using Aussearch for a while now but in the last few days I've 
been getting:

May 29 19:05:34 weather weewxd[8649]: weewx[8649] ERROR user.aussearch: 
aussearch: cannot download xml file 
http://www.bom.gov.au/fwo/IDZ00059.warnings_vic.xml: HTTP Error 403: 
Forbidden

That part is not so bad but I suspect that it is also leading to:


May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
weewx.cheetahgenerator: Generate failed with exception ''

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
weewx.cheetahgenerator:  Ignoring template 
/home/weewx/skins/Responsive/index.html.tmpl

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
weewx.cheetahgenerator:  Reason: maximum recursion depth exceeded in 
comparison

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
weewx.cheetahgenerator:   Traceback (most recent call last):

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
weewx.cheetahgenerator: File 
"/home/weewx/bin/weewx/cheetahgenerator.py", line 322, in generate

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
weewx.cheetahgenerator:   unicode_string = 
compiled_template.respond()

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
weewx.cheetahgenerator: File 
"_home_weewx_skins_Responsive_index_html_tmpl.py", line 1688, in respond

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
weewx.cheetahgenerator: File 
"_home_weewx_skins_Responsive_index_html_tmpl.py", line 681, in 
__errorCatcher88

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
weewx.cheetahgenerator: File "", line 1, in 

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
weewx.cheetahgenerator: File "/home/weewx/bin/user/aussearch.py", 
line 381, in __getattr__

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
weewx.cheetahgenerator:   if self.root_node is not None:

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
weewx.cheetahgenerator: File "/home/weewx/bin/user/aussearch.py", 
line 381, in __getattr__

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
weewx.cheetahgenerator:   if self.root_node is not None:

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
weewx.cheetahgenerator: File "/home/weewx/bin/user/aussearch.py", 
line 381, in __getattr__

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
weewx.cheetahgenerator:   if self.root_node is not None:

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
weewx.cheetahgenerator: [Previous line repeated 489 more times]

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
weewx.cheetahgenerator: File "/home/weewx/bin/user/aussearch.py", 
line 378, in __getattr__

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
weewx.cheetahgenerator:   if child_or_attrib in ['__call__', 
'has_key']:

May 29 19:06:08 weather weewxd[8649]: weewx[8649] ERROR 
weewx.cheetahgenerator:   RecursionError: maximum recursion depth 
exceeded in comparison


This is stopping the generation of the whole web page file.

I suspect that this is part of the on-going process by the BoM  to restrict 
access to various files but I could be wrong.

Before I try to take this out, is there any workaround?

Susan

-- 
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/8fb173f0-3436-4eb8-aa40-0893855c1b1fn%40googlegroups.com.


Re: [weewx-user] Re: no connection to the web server

2021-05-29 Thread 'eckha...@googlemail.com' via weewx-user
 i reinstalled all of them ... then i checked the folders on the spot and 
checked their contents. without success! I give up. 

vince schrieb am Samstag, 29. Mai 2021 um 03:45:52 UTC+2:

>
> See if the FAQ 
>  helps 
> any.
>
> You've established weewx is generating files.  You haven't pinned down 
> whether weewx+apache are in agreement on where the web pages are, nor if 
> apache is running at all.
>
>
> On Friday, May 28, 2021 at 6:22:18 PM UTC-7 storm...@gmail.com wrote:
>
>> Do you have the file "weewx.conf" in  "/etc/apache2/conf-enabled/" folder?
>>
>>
>> Alias /weewx /home/weewx/public_html
>> 
>> Options FollowSymlinks
>> AllowOverride None
>> Require all granted
>> 
>>
>> If not, add the file and restart apache2
>>
>> On Friday, May 28, 2021 at 9:08:58 PM UTC-4 tke...@gmail.com wrote:
>>
>>> Everything looks totally normal to me. Did you browse 
>>> to file:///home/weewx/public_html/?
>>>
>>> Or, did you tell your webserver to look there?
>>>
>>> On Fri, May 28, 2021 at 5:40 PM 'eckha...@googlemail.com' via 
>>> weewx-user  wrote:
>>>

 [image: index.PNG]


 the funny thing is there is also data in the file but i can't call it up 


 eckha...@googlemail.com schrieb am Samstag, 29. Mai 2021 um 02:34:30 
 UTC+2:

> [image: Unbenannt.PNG]
>
> eckha...@googlemail.com schrieb am Samstag, 29. Mai 2021 um 02:33:35 
> UTC+2:
>
>>
>>
>> [image: weewx.PNG]
>> tke...@gmail.com schrieb am Samstag, 29. Mai 2021 um 02:15:55 UTC+2:
>>
>>> Weewx seems to be running normally. 
>>>
>>> Is there a question in there? Did you look in 
>>> /home/weewx/public_html?
>>>
>>> On Fri, May 28, 2021 at 5:00 PM 'eckha...@googlemail.com' via 
>>> weewx-user  wrote:
>>>
 addendum 

 May 29 00:56:02 raspberrypi weewx[471] INFO weewx.manager: Added 
 record 2021-05-29 00:55:00 BST (1622246100) to database 'weewx.sdb'
 May 29 00:56:02 raspberrypi weewx[471] INFO weewx.manager: Added 
 record 2021-05-29 00:55:00 BST (1622246100) to daily summary in 
 'weewx.sdb'
 May 29 00:56:02 raspberrypi weewx[471] DEBUG weewx.reportengine: 
 Running reports for latest time in the database.
 May 29 00:56:02 raspberrypi weewx[471] DEBUG weewx.reportengine: 
 Running report 'SeasonsReport'
 May 29 00:56:02 raspberrypi weewx[471] DEBUG weewx.reportengine: 
 Found configuration file /home/weewx/skins/Seasons/skin.conf for 
 report 
 'SeasonsReport'
 May 29 00:56:02 raspberrypi weewx[471] DEBUG 
 weewx.cheetahgenerator: Using search list 
 ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 
 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 
 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras', 
 'weewx.cheetahgenerator.JSONHelpers']
 May 29 00:56:02 raspberrypi weewx[471] DEBUG weewx.manager: Daily 
 summary version is 4.0
 May 29 00:56:04 raspberrypi weewx[471] INFO weewx.cheetahgenerator: 
 Generated 8 files for report SeasonsReport in 2.03 seconds
 May 29 00:56:04 raspberrypi weewx[471] DEBUG weewx.manager: Daily 
 summary version is 4.0
 May 29 00:56:05 raspberrypi weewx[471] INFO weewx.imagegenerator: 
 Generated 15 images for report SeasonsReport in 0.58 seconds
 May 29 00:56:05 raspberrypi weewx[471] INFO weewx.reportengine: 
 Copied 5 files to /home/weewx/public_html
 May 29 00:56:05 raspberrypi weewx[471] DEBUG weewx.reportengine: 
 Report 'SmartphoneReport' not enabled. Skipping.
 May 29 00:56:05 raspberrypi weewx[471] DEBUG weewx.reportengine: 
 Report 'MobileReport' not enabled. Skipping.
 May 29 00:56:05 raspberrypi weewx[471] DEBUG weewx.reportengine: 
 Report 'StandardReport' not enabled. Skipping.
 May 29 00:56:05 raspberrypi weewx[471] DEBUG weewx.reportengine: 
 Report 'FTP' not enabled. Skipping.
 May 29 00:56:05 raspberrypi weewx[471] DEBUG weewx.reportengine: 
 Report 'RSYNC' not enabled. Skipping.
 May 29 00:56:50 raspberrypi dhcpcd[601]: eth0: Router Advertisement 
 from fe80::cece:1eff:fe3a:d164

 eckha...@googlemail.com schrieb am Samstag, 29. Mai 2021 um 
 01:59:44 UTC+2:

>
> Hey 
>
> Hardware:
> Froggit WS1050
> Pi 4 
> Rasbian os 
> Weewx 4.5.1
> LOG:
> pi@raspberrypi:~ $ tail -f /var/log/syslog
> May 29 00:50:23 raspberrypi systemd[727]: Listening on GnuPG 
> network 
> certificate   
>  
> management daemon.
> May