Access WEEWX_ROOT in weewx.conf

44 views
Skip to first unread message

michael.k...@gmx.at

unread,
Oct 29, 2023, 1:31:18 PM10/29/23
to weewx-user
Let's assume this is from my weewx.conf (it is not working this way):

WEEWX_ROOT = /home/pi/weewx-data
[Logging]
    ...
    [[handlers]]
        ... 
        [[[rotate]]]
            filename = 
WEEWX_ROOT/log/weewxd.log

Can I access the above defined WEEWX_ROOT in a section below? If yes, how, and is this a weewx or a configobj feature?

bell...@gmail.com

unread,
Oct 29, 2023, 7:41:27 PM10/29/23
to weewx-user
A bit of background information is here, https://groups.google.com/g/weewx-development/c/SGSkmxi5L6Y/m/8k9Jk_aSAwAJ
I ended up using a relative path like, filename = log/weewxd.log.
rich

michael.k...@gmx.at

unread,
Oct 30, 2023, 12:38:44 PM10/30/23
to weewx-user
Thanks, but relative to which location? The current dir weewxd was startet from?
Reply all
Reply to author
Forward
0 new messages