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

On Thursday, 12 March 2020 06:04:42 UTC+10, Keimpe Bleeker wrote:
>
> 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/ 
> <https://www.google.com/url?q=https%3A%2F%2Foentsjerk.eu%2Fwwx%2F&sa=D&sntz=1&usg=AFQjCNHRw4A6zFho0ZBPFOR1AdtlnIvV7g>
> ) 
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" 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-user/93cdacc6-4cf5-4769-8a10-b01b11be86df%40googlegroups.com.

Reply via email to