weewx 4.1.1.1 error query

93 views
Skip to first unread message

VE4PER / Andy

unread,
Jun 7, 2020, 2:16:52 AM6/7/20
to weewx-user

My wind speed cups are physically broken; so no wind data ---awaiting delivery of parts and since it is down anyway I decided to do all the updates now while I wait.

I recently upgraded ubuntu OS to 20.04LTS, python to python3 and it appears the update process also updated weewx to 4.1.1.1.

It appears that the install properly created the mysql/MariadB weewx and set up data tables properly.

However, some error messages showed up when I used the "sudo tail -f /var/log/syslog" command after database update was successful. Some were clearly missing modules that I was able to install and clear those up but one repeated one I don't understand what it is telling me nor what process to follow to correct it, it seems possibly something related to a common key error that appears to apply to a number scripts/program code strings?

Jun  7 01:08:04 cedar weewx[47128] CRITICAL __main__: Caught unrecoverable exception:
Jun  7 01:08:04 cedar weewx[47128] CRITICAL __main__:     ****  'StdRESTful'
Jun  7 01:08:04 cedar weewx[47128] CRITICAL __main__:     ****  Traceback (most recent call last):
Jun  7 01:08:04 cedar weewx[47128] CRITICAL __main__:     ****    File "/usr/share/weewx/weewxd", line 148, in main
Jun  7 01:08:04 cedar weewx[47128] CRITICAL __main__:     ****      engine = weewx.engine.StdEngine(config_dict)
Jun  7 01:08:04 cedar weewx[47128] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 75, in __init__
Jun  7 01:08:04 cedar weewx[47128] CRITICAL __main__:     ****      self.loadServices(config_dict)
Jun  7 01:08:04 cedar weewx[47128] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 138, in loadServices
Jun  7 01:08:04 cedar weewx[47128] CRITICAL __main__:     ****      obj = weeutil.weeutil.get_object(svc)(self,config_dict)
Jun  7 01:08:04 cedar weewx[47128] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/restx.py", line 1366, in __init__
Jun  7 01:08:04 cedar weewx[47128] CRITICAL __main__:     ****      _registry_dict = accumulateLeaves(config_dict['StdRESTful']['StationRegistry'], max_level=1)
Jun  7 01:08:04 cedar weewx[47128] CRITICAL __main__:     ****    File "/usr/lib/python3/dist-packages/configobj.py", line 554, in __getitem__
Jun  7 01:08:04 cedar weewx[47128] CRITICAL __main__:     ****      val = dict.__getitem__(self, key)
Jun  7 01:08:04 cedar weewx[47128] CRITICAL __main__:     ****  KeyError: 'StdRESTful'
Jun  7 01:08:04 cedar weewx[47128] CRITICAL __main__:     ****  Exiting.

 Any and all tips or help would be appreciated, Thanks

Andy

Graham Eddy

unread,
Jun 7, 2020, 2:54:40 AM6/7/20
to weewx...@googlegroups.com
you would probably get that error if you tell weewx to use StdStationRegistry service e.g. in weewx.conf something like:
    restful_service = weewx.restx.StdStationRegistry, ...
but not defined a RESTful definition stanza in weewx.conf e.g.
    [StdRESTful]    < < < < this key missing
        [[StationRegistry]]
            register_this_station = true
g-eddy

--
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/b5c011ec-e838-2ce1-26ea-5bf0e863de3d%40gmail.com.

VE4PER / Andy

unread,
Jun 7, 2020, 3:59:42 AM6/7/20
to weewx-user

If somebody knows what URL and it's format is in question here and where to enter it I would appreciate knowing

Thanks

and Thanks again Graham


Andy



-------- Forwarded Message --------
Subject: Re: [weewx-user] weewx 4.1.1.1 error query
Date: Sun, 7 Jun 2020 02:55:55 -0500
From: VE4PER / Andy <andrew.webb...@gmail.com>
To: Graham Eddy <graha...@gmail.com>


Thanks for your time and tips Graham.

Andy


weewx.conf entries StdRESTful related

I changed the red statements to what is shown in green below; the key error appears corrected but I got the following error msg about missing station URL and not sure where to specify it or what format it has to be.

Everything appears to work properly now and wx data is being sent but wind data will be in error until I get replacement anemometer cups (enroute I'm told)

Jun  7 02:22:27 cedar weewx[49295] INFO weewx.restx: StationRegistry: Station will not be registered: no station_url specified.



#   This section is for uploading data to Internet sites
#
#[StdRESTful]
 #  
  #  [[StationRegistry]]
        # To register this weather station with weewx, set this to true
   #     register_this_station = false

 

#   This section is for uploading data to Internet sites

[StdRESTful]
   
   [[StationRegistry]]
        # To register this weather station with weewx, set this to true
        register_this_station = true

  
   #   This section configures the internal weewx engine.

[Engine]
   
    [[Services]]
        # This section specifies the services that should be run. They are
        # grouped by type, and the order of services within each group
        # determines the order in which the services will be run.
        prep_services = weewx.engine.StdTimeSynch
        data_services = ,
        process_services = weewx.engine.StdConvert, weewx.engine.StdCalibrate, weewx.engine.StdQC, weewx.wxservices.StdWXCalculate
        archive_services = weewx.engine.StdArchive
        restful_services = weewx.restx.StdStationRegistry, weewx.restx.StdWunderground, weewx.restx.StdPWSweather, weewx.restx.StdCWOP, weewx.restx.StdWOW, weewx.restx.StdAWEKAS
        report_services = weewx.engine.StdPrint, weewx.engine.StdReport

VE4PER / Andy

unread,
Jun 7, 2020, 4:12:46 AM6/7/20
to Graham Eddy, weewx...@googlegroups.com

OK

tis done Sir.

where is web site with registered station located? Never cam across it in any docs so far

On 2020-06-07 03:01, Graham Eddy wrote:
you should have a line like the following under [Station] stanza:
    station_url = http://www.example.com < < < < your weather station website
this is required along with ‘register_this_station = true’ to register, but it is harmless if you do not register station

this is the second of two fundamental stanzas in your weewx.conf. i don’t know the history of your confg file, but i recommend a thorough comparison with a recent distribution to look for more gaps.
cheers
g-eddy

VE4PER / Andy

unread,
Jun 7, 2020, 4:17:37 AM6/7/20
to Graham Eddy, weewx-user

OK thanks found the site   http://www.weewx.com/stations.html  


On 2020-06-07 3:01 a.m., Graham Eddy wrote:
you should have a line like the following under [Station] stanza:
    station_url = http://www.example.com < < < < your weather station website
this is required along with ‘register_this_station = true’ to register, but it is harmless if you do not register station

this is the second of two fundamental stanzas in your weewx.conf. i don’t know the history of your confg file, but i recommend a thorough comparison with a recent distribution to look for more gaps.
cheers
g-eddy

Tom Keffer

unread,
Jun 7, 2020, 8:06:54 AM6/7/20
to weewx-user
Somehow your configuration file weewx.conf got corrupted. It should look like:

[StdRESTful]

    [[StationRegistry]]
        # To register this weather station with weewx, set this to true
        register_this_station = false

    [[AWEKAS]]
        # This section is for configuring posts to AWEKAS.

        ... (etc.)

Either the section name [StdRESTful] is missing, or it accumulated a typo.

-tk

--
Reply all
Reply to author
Forward
0 new messages