Weewx V4.#

119 views
Skip to first unread message

Keimpe Bleeker

unread,
Mar 11, 2020, 4:04:42 PM3/11/20
to weewx-user
Hi Tom, After many years using W##%&Disp##, based on a PC-server, I'm waiting for some months to get my wx-station up-and-running with Weewx 4.#, based on RaspberryPi. Everything seems well prepared on Weewx 3.9.2, but that version is not able to import the station history from WU. Tthat's the reason I'm waiting for the 4.# release. Any idea when this will happen? Regards from Friesland (sneak preview: https://oentsjerk.eu/wwx/

gjr80

unread,
Mar 11, 2020, 6:33:55 PM3/11/20
to weewx-user
Hi,

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:

$ git clone https://github.com/weewx/weewx

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

Keimpe Bleeker

unread,
Mar 13, 2020, 5:38:48 AM3/13/20
to weewx-user
Thanks Gary, I ave seen your workaround earlier. Thom infomed me yesterday that 4.0 is on the releaase-treshold and since I'm still a Raspbian-newwby, I will wait in patience for the 4.0 release.

 Regards, Keimpe

Op woensdag 11 maart 2020 23:33:55 UTC+1 schreef gjr80:
Reply all
Reply to author
Forward
0 new messages