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: > > 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/9354e4bf-a8a2-4437-a0f6-31150b66b06d%40googlegroups.com.
