V5 create --config= bug

71 views
Skip to first unread message

Graham Eddy

unread,
Aug 27, 2023, 9:58:17 AM8/27/23
to weewx-development
minor V5 bug:
  weewx:~ $ weectl station create —config=station1/weewx.conf
(using relative filename) creates everything fine except it sets WEEWX_HOME to station1 in weewx.conf, so
  weewx:~ $ weewxd —config=station1/weewx.conf
runs fine until it crashes when tries to generate a report:

    ngen += self.generate(section[subsection], subsection, gen_ts)

            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/weewx/venv/lib/python3.11/site-packages/weewx/cheetahgenerator.py", line 245, in generate

    os.chdir(os.path.join(self.config_dict['WEEWX_ROOT'],

FileNotFoundError: [Errno 2] No such file or directory: 'station1/skins/Seasons'


i suggest either the weectl code converts the relative filename in —config= to absolute filename for WEEWX_HOME, or change doc to say absolute pathname must be specified
⊣GE⊢

Tom Keffer

unread,
Aug 30, 2023, 6:01:37 PM8/30/23
to Graham Eddy, weewx-development
Thanks for spotting this!

Fixed in commit fc26ab7.

-tk

--
You received this message because you are subscribed to the Google Groups "weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/E8BA924C-8E40-46E5-BEE3-2D8F376BCE1F%40geddy.au.

Greg

unread,
Aug 31, 2023, 9:02:35 PM8/31/23
to weewx-development
Is there a V5 change log anywhere?
I cannot find it.
I just upgraded to v5.0.0b11and was wondering what has changed.
Thanks

Tom Keffer

unread,
Aug 31, 2023, 9:11:32 PM8/31/23
to Greg, weewx-development
Unfortunately, no there is not.

FYI. Expect some changes in how extensions are installed.

Paul R Anderson

unread,
Aug 31, 2023, 9:25:16 PM8/31/23
to Tom Keffer, Greg, weewx-development

Greg

unread,
Aug 31, 2023, 10:02:18 PM8/31/23
to weewx-development
Thanks I have bookmarked that github link. I couldn't even find that.
Reply all
Reply to author
Forward
0 new messages