Thanks for spotting this!

Fixed in commit fc26ab7
<https://github.com/weewx/weewx/commit/fc26ab7c17a60cdaf5aa189f7c83479ff6d87b45>
.

-tk

On Sun, Aug 27, 2023 at 6:58 AM Graham Eddy <[email protected]> wrote:

> 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⊢*
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-development/E8BA924C-8E40-46E5-BEE3-2D8F376BCE1F%40geddy.au
> <https://groups.google.com/d/msgid/weewx-development/E8BA924C-8E40-46E5-BEE3-2D8F376BCE1F%40geddy.au?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/CAPq0zEBWCb3_J52GBkxD7u_D3h3BMV6UC6-uYdfDE2yn15Sz6g%40mail.gmail.com.

Reply via email to