Thanks Tom. I have update the extension and it is working great now.
On Saturday, May 9, 2020 at 12:40:41 AM UTC+12, Tom Keffer wrote: > > Try this version: > https://raw.githubusercontent.com/tkeffer/weewx-meteotemplate/master/bin/user/meteotemplate.py > > On Fri, May 8, 2020 at 4:52 AM Tom Keffer <[email protected] <javascript:>> > wrote: > >> Matthew and I are working on converting all of the uploaders. I'm working >> on meteotemplate, and expect to have something later today. >> >> On Fri, May 8, 2020 at 4:19 AM Tom <[email protected] <javascript:>> >> wrote: >> >>> I have the same issues. Thanks to Google I was able to correct the "except >>> KeyError, e:" error but then other error messages appeared. I sent >>> Matthew, the owner of the extension, an email earlier but have not heard >>> back from him. >>> >>> Tom >>> >>> ------ Original Message ------ >>> From: "J Stargazer" <[email protected] <javascript:>> >>> To: "weewx-user" <[email protected] <javascript:>> >>> Sent: 5/8/2020 1:23:08 AM >>> Subject: [weewx-user] Issue with weewx-meteotemplate after upgradeing >>> weewx v4 >>> >>> Hi all. >>> >>> I'm having a bit of an issue with installing the weewx-meteotemplate >>> extension. >>> I had few other issues as well, but have resolved most of those by >>> uninstalling the extensions and reinstalling them. >>> >>> The error I am getting is; >>> >>> May 8 14:21:01 jupiter weewx[2718] CRITICAL __main__: Caught >>> unrecoverable exception: >>> May 8 14:21:01 jupiter weewx[2718] CRITICAL __main__: **** invalid >>> syntax (meteotemplate.py, line 106) >>> May 8 14:21:01 jupiter weewx[2718] CRITICAL __main__: **** >>> Traceback (most recent call last): >>> May 8 14:21:01 jupiter weewx[2718] CRITICAL __main__: **** File >>> "/usr/share/weewx/weewxd", line 148, in main >>> May 8 14:21:01 jupiter weewx[2718] CRITICAL __main__: **** >>> engine = weewx.engine.StdEngine(config_dict) >>> May 8 14:21:01 jupiter weewx[2718] CRITICAL __main__: **** File >>> "/usr/share/weewx/weewx/engine.py", line 75, in __init__ >>> May 8 14:21:01 jupiter weewx[2718] CRITICAL __main__: **** >>> self.loadServices(config_dict) >>> May 8 14:21:01 jupiter weewx[2718] CRITICAL __main__: **** File >>> "/usr/share/weewx/weewx/engine.py", line 138, in loadServices >>> May 8 14:21:01 jupiter weewx[2718] CRITICAL __main__: **** obj >>> = weeutil.weeutil.get_object(svc)(self,config_dict) >>> May 8 14:21:01 jupiter weewx[2718] CRITICAL __main__: **** File >>> "/usr/share/weewx/weeutil/weeutil.py", line 1093, in get_object >>> May 8 14:21:01 jupiter weewx[2718] CRITICAL __main__: **** mod >>> = __import__(module) >>> May 8 14:21:01 jupiter weewx[2718] CRITICAL __main__: **** File >>> "/usr/share/weewx/user/meteotemplate.py", line 106 >>> May 8 14:21:02 jupiter weewx[2718] CRITICAL __main__: **** >>> except KeyError, e: >>> May 8 14:21:02 jupiter weewx[2718] CRITICAL __main__: >>> **** ^ >>> May 8 14:21:02 jupiter weewx[2718] CRITICAL __main__: **** >>> SyntaxError: invalid syntax >>> May 8 14:21:02 jupiter weewx[2718] CRITICAL __main__: **** Exiting. >>> May 8 14:21:35 jupiter weewx[2764]: Stopping weewx weather system: >>> weewx not running.... >>> >>> I followed the error to - File "/usr/share/weewx/user/meteotemplate.py", >>> line 106 >>> Line 106 shows (highlighted yellow); >>> >>> super(Meteotemplate, self).__init__(engine, cfg_dict) >>> loginf("service version is %s" % VERSION) >>> try: >>> site_dict = cfg_dict['StdRESTful']['Meteotemplate'] >>> site_dict = accumulateLeaves(site_dict, max_level=1) >>> site_dict['password'] >>> except KeyError, e: >>> logerr("Data will not be uploaded: Missing option %s" % e) >>> return >>> >>> Unfortunately I have no idea what this is telling me. >>> >>> Any help would be really appreciated. >>> >>> Thanks, >>> Jono >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "weewx-user" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected] <javascript:>. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/weewx-user/e4cbb0f2-d650-4fe7-a9f7-21c77008780a%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/weewx-user/e4cbb0f2-d650-4fe7-a9f7-21c77008780a%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "weewx-user" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected] <javascript:>. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/weewx-user/emf04290cb-7ff4-4bcd-84d0-8c1688f94a9f%40kq5s >>> >>> <https://groups.google.com/d/msgid/weewx-user/emf04290cb-7ff4-4bcd-84d0-8c1688f94a9f%40kq5s?utm_medium=email&utm_source=footer> >>> . >>> >> -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/71ca8b55-a232-4fe8-b3ac-436b26bc02c7%40googlegroups.com.
