Weewx update checks weewx.conf, but no other weewx*.conf files.

60 views
Skip to first unread message

Lucas Heijst

unread,
Apr 12, 2020, 11:41:02 AM4/12/20
to weewx-development
Tom,

On several of my systems more than one weewx instance is run, so I have created a weewx.conf for each instance like:
weewx_vpro.conf (vantage driver)
weewx_mstk.conf (meteostick driver)
weewx_klim.conf (klimalogg driver)
weewx_rtld.conf (rtldavis driver)
weewx_tfrc.conf (tfrec driver)
weewx_mben.conf (modbus energy driver)
weewx_cmon.conf (computer monitor driver)

With an update of weewx only the file 'weewx.conf' is checked and changed.

Would it be difficult to check and change all weewx*.conf files in the /home/weewx directory as well?
Now I have to rename them one by one to weewx.conf, do the upgrade and rename them back afterwards.

Luc

Thomas Keffer

unread,
Apr 12, 2020, 12:58:12 PM4/12/20
to Lucas Heijst, weewx-development
It's possible to do it using the tool wee_config. For example (NOT TESTED):

cd /home/weewx
python3 ./bin/wee_config --upgrade --config=weewx_vpro.conf --dist-config=weewx.conf.4.0.0b18 --output=weewx_vpro_conf.new

# (Check over weewx_vpro_conf.new, then)

mv weewx_vpro.conf weewx_vpro.conf.backup
mv weewx_vpro.conf.new weewx_vpro.conf

-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/a62bc30b-2fea-48e0-be73-1f59c66bb9e2%40googlegroups.com.

Lucas Heijst

unread,
Apr 12, 2020, 6:07:51 PM4/12/20
to weewx-development
Thanks Tom,

It worked like a charm!

A small typo in your second line:
must be

I have modified all my dedicated *.conf files and found a few lines in the [[Calculations]] section which should not be there.

Luc

On Sunday, 12 April 2020 13:58:12 UTC-3, Tom Keffer wrote:
It's possible to do it using the tool wee_config. For example (NOT TESTED):

cd /home/weewx
python3 ./bin/wee_config --upgrade --config=weewx_vpro.conf --dist-config=weewx.conf.4.0.0b18 --output=weewx_vpro_conf.new

# (Check over weewx_vpro_conf.new, then)

mv weewx_vpro.conf weewx_vpro.conf.backup
mv weewx_vpro.conf.new weewx_vpro.conf

-tk

On Sun, Apr 12, 2020 at 8:41 AM Lucas Heijst <ljm....@gmail.com> wrote:
Tom,

On several of my systems more than one weewx instance is run, so I have created a weewx.conf for each instance like:
weewx_vpro.conf (vantage driver)
weewx_mstk.conf (meteostick driver)
weewx_klim.conf (klimalogg driver)
weewx_rtld.conf (rtldavis driver)
weewx_tfrc.conf (tfrec driver)
weewx_mben.conf (modbus energy driver)
weewx_cmon.conf (computer monitor driver)

With an update of weewx only the file 'weewx.conf' is checked and changed.

Would it be difficult to check and change all weewx*.conf files in the /home/weewx directory as well?
Now I have to rename them one by one to weewx.conf, do the upgrade and rename them back afterwards.

Luc

--
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-de...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages