Error when starting weexw with station_type Simulator

93 views
Skip to first unread message

Karl Napp

unread,
Aug 23, 2023, 9:38:41 AM8/23/23
to weewx-user
Hi,
I'm new using weex.
I cannot start weewx with  station_type = Simulator in wweex.conf.
Following error appears:

Traceback (most recent call last):
  File "/usr/share/weewx/weewxd", line 249, in <module>
    main()
  File "/usr/share/weewx/weewxd", line 148, in main
    engine = weewx.engine.StdEngine(config_dict)
  File "/usr/share/weewx/weewx/engine.py", line 81, in __init__
    self.setupStation(config_dict)
  File "/usr/share/weewx/weewx/engine.py", line 103, in setupStation
    driver = config_dict[station_type]['driver']
  File "/usr/lib/python3/dist-packages/configobj.py", line 554, in __getitem__
    val = dict.__getitem__(self, key)
KeyError: 'Simulator'

Any ideas ?  thanks in advance

Tom Keffer

unread,
Aug 23, 2023, 9:55:16 AM8/23/23
to weewx...@googlegroups.com
You are missing a section [Simulator] in your configuration file.

A station type (in this case, "Simulator"), must have a matching stanza (in this case, "[Simulator]").

Don't just set station_type to "Simulator". Instead, use wee_config --reconfigure.

--
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/bcfb67fb-aba4-4d77-bf4d-0671c0678821n%40googlegroups.com.

Karl Napp

unread,
Aug 23, 2023, 10:31:50 AM8/23/23
to weewx-user
Thanks,
that solves the problem.
Reply all
Reply to author
Forward
0 new messages