Version 4.2.0 and Acurite 5-in-1

60 views
Skip to first unread message

Gary Strand

unread,
Nov 10, 2020, 2:27:07 PM11/10/20
to weewx-user
I'm getting errors after moving to 4.2.0 with my Acurite 5-in-1:


[...]
Nov 10 12:24:07 hal9000 weewx[33371] CRITICAL __main__: Caught unrecoverable exception:
Nov 10 12:24:07 hal9000 weewx[33371] CRITICAL __main__:     ****  'Acurite'
Nov 10 12:24:07 hal9000 weewx[33371] CRITICAL __main__:     ****  Traceback (most recent call last):
Nov 10 12:24:07 hal9000 weewx[33371] CRITICAL __main__:     ****    File "/usr/share/weewx/weewxd", line 148, in main
Nov 10 12:24:07 hal9000 weewx[33371] CRITICAL __main__:     ****      engine = weewx.engine.StdEngine(config_dict)
Nov 10 12:24:07 hal9000 weewx[33371] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 75, in __init__
Nov 10 12:24:07 hal9000 weewx[33371] CRITICAL __main__:     ****      self.setupStation(config_dict)
Nov 10 12:24:07 hal9000 weewx[33371] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 93, in setupStation
Nov 10 12:24:07 hal9000 weewx[33371] CRITICAL __main__:     ****      driver = config_dict[station_type]['driver']
Nov 10 12:24:07 hal9000 weewx[33371] CRITICAL __main__:     ****    File "/usr/lib/python3/dist-packages/configobj.py", line 554, in __getitem__
Nov 10 12:24:07 hal9000 weewx[33371] CRITICAL __main__:     ****      val = dict.__getitem__(self, key)
Nov 10 12:24:07 hal9000 weewx[33371] CRITICAL __main__:     ****  KeyError: 'Acurite'
Nov 10 12:24:07 hal9000 weewx[33371] CRITICAL __main__:     ****  Exiting.
Nov 10 12:24:07 hal9000 weewx[33347]:    ...done.

[...]

My understanding is that there's no longer a sensor-specific section in weewx.conf any more.

Any assistance is appreciated!

Tom Keffer

unread,
Nov 10, 2020, 2:59:54 PM11/10/20
to weewx-user
Don't know where you saw that. There's always been a sensor-specific section in weewx.conf.

In your case, it looks like you are missing the [Acurite] section. When you upgraded, you should have seen something like:

Configuration file '/etc/weewx/weewx.conf'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** weewx.conf (Y/I/N/O/D/Z) [default=N] ? 

Do you recall how you answered the question? If you answered 'Y', then you would get a fresh version of weewx.conf, with no information about your station. 

You can fix with the utility wee_config:

wee_config --reconfigure

-tk



--
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/05e5bcb6-b1ee-4cb0-be09-04a255ad292fn%40googlegroups.com.

Gary Strand

unread,
Nov 10, 2020, 4:19:17 PM11/10/20
to weewx-user
Apologies for the erroneous post. I had to reset the console and that seems to have cleared up the problem.
Reply all
Reply to author
Forward
0 new messages