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 <https://aka.ms/o0ukef> > ------------------------------ > *From:* weewx...@googlegroups.com <weewx...@googlegroups.com> on behalf > of Neville Davis <nevilled...@gmail.com> > *Sent:* Sunday, May 30, 2021 9:00:13 AM > *To:* weewx-user <weewx...@googlegroups.com> > *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 <weewx...@googlegroups.com> on behalf > of Neville Davis <nevilled...@gmail.com> > *Sent:* Sunday, May 30, 2021 8:43:18 AM > *To:* weewx-user <weewx...@googlegroups.com> > *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 OK....in /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 '<class > '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 "<string>", line 1, in <module> > > 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 a topic in the > Google Groups "weewx-user" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/weewx-user/tsKLfRh0QvA/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/9eec16fe-633b-4ab5-9c17-22c85156ce0en%40googlegroups.com > > <https://groups.google.com/d/msgid/weewx-user/9eec16fe-633b-4ab5-9c17-22c85156ce0en%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > -- > 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/tsKLfRh0QvA/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/b2d4de88-f472-4964-b94f-15e077c24367n%40googlegroups.com > > <https://groups.google.com/d/msgid/weewx-user/b2d4de88-f472-4964-b94f-15e077c24367n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/1f11b2a9-e309-4fde-9182-e5e40e019ba8n%40googlegroups.com.