It is possible to use the WeeWX 4.0 beta wee_import whilst not interfering with a working 3.9.x install. I posted the instructions back on 1 January but have updated them to cater for a change in branch in the repo (and fixed the spelling mistakes) and re-posted them below:
The
following instructions will allow you to use the WeeWX v4
wee_import code under a WeeWX 3.x install (note this will have no affect on your WeeWX 3.x install):
1. install git if not already installed:
$ sudo apt-get install git
2. create a directory in which the WeeWX repo will be cloned and change to that directory:
$ mkdir /var/tmp/weewx4_src
$ cd /var/tmp/weewx4_src
3. clone the WeeWX GitHub repo:
4. check
wee_import works:
$ sudo PYTHONPATH=/var/tmp/weewx4_src/weewx/bin /var/tmp/weewx4_src/weewx/bin/wee_import --help
$ sudo PYTHONPATH=/var/tmp/weewx4_src/weewx/bin /var/tmp/weewx4_src/weewx/bin/wee_import --version
the version should be 0.4
5. an example import might look like:
$ sudo PYTHONPATH=/var/tmp/weewx4_src/weewx/bin /var/tmp/weewx4_src/weewx/bin/wee_import --config=/home/weewx/weewx.conf --import-config=/var/tmp/wu.conf --date=2019-11-30
Adjust paths to suit (you could probably leave the --config option out and wee_import will find the correct weewx.conf but better safe than sorry)
You should be able to use wee_import
with a suitable import config file and options using your existing
WeeWX 3.x install setup (ie databases) but with the WeeWX v4 wee_import code. Note that you will need to refer to the v4 wee_import documentation which you will find in /var/tmp/weewx4_scr/weewx/docs/utilities.htm and the example import config files will be in /var/tmp/weewx4_src/weewx/util/import. Importantly, the usual caveats apply when using wee_import,
ie back your database, do a dry run first etc but you should find
importing from WU works provided you are using a new style long API key.
Finally, you can remove the WeeWX v4 code using:
$ rm -R /var/tmp/weewx4_src
Gary