[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-09 Thread Tom Mitchell
FWIW, I have been grabbing the betas and making Docker images from them here: https://hub.docker.com/r/mitct02/weewx Let me know if you have any questions or suggestions on usage. I use this as a base image for several weewx instances. On Thursday, January 9, 2020 at 10:40:13 AM UTC-5, Vince

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-09 Thread Vince Skahan
On Thursday, January 9, 2020 at 5:17:11 AM UTC-8, raenrfm wrote: > > I run my current 3.8.0 in a docker container, any plans on creating a > docker image? That would be way cool! > > > You'd have to ask whoever created the Docker image you are running. There are at least a half-dozen variants

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-09 Thread raenrfm
I run my current 3.8.0 in a docker container, any plans on creating a docker image? That would be way cool! On Monday, 30 December 2019 16:28:50 UTC-5, Tom Keffer wrote: > > ... is up. In the usual spot. > http://weewx.com/downloads/development_versions/ > > -tk > -- You received this

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-04 Thread Praveen Chandrasekaran
Any planned timeline for v4.0 full release? -- 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-development+unsubscr...@googlegroups.com. To view this

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-03 Thread Patrick Tranchant
so ok, I'm going to let it run for a day with the B6 version. tk , good job for version b6 patrick On Monday, December 30, 2019 at 10:28:50 PM UTC+1, Tom Keffer wrote: > > ... is up. In the usual spot. > http://weewx.com/downloads/development_versions/ > > -tk > -- You received this message

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-03 Thread Patrick Tranchant
ok; so Version b6= ok, on my real weather station with skin Season after I go to try skin Belchertown tk patrick On Monday, December 30, 2019 at 10:28:50 PM UTC+1, Tom Keffer wrote: > > ... is up. In the usual spot. > http://weewx.com/downloads/development_versions/ > > -tk > -- You received

Re: [weewx-development] Re: WeeWX Version 4, beta 6

2020-01-03 Thread Cameron D
Patrick, it is the wiki on the weewx github site: https://github.com/weewx/weewx/wiki/Beta-testing-Weewx-version-4 On Friday, 3 January 2020 20:12:49 UTC+10, salinois wrote: > > thanks > > can you give me URL of wiki ? > > patrick > Le 03/01/2020 à 00:52, Cameron D a écrit : > > You should not

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-03 Thread Patrick Tranchant
ok Cameron I follow your procedure, and it is ok for installation I choose "Simulator" in weewx.conf for test; and it is ok but I have this errors message in syslog Jan 3 11:57:15 raspberrypi weewx[2332] INFO weewx.manager: Added record 2020-01-03 11:57:00 CET (1578049020) to database

Re: [weewx-development] Re: WeeWX Version 4, beta 6

2020-01-03 Thread salinois
thanks can you give me URL of wiki ? patrick Le 03/01/2020 à 00:52, Cameron D a écrit : You should not need to uninstall python2. I have a working weewx3 install that requires it and I managed to get weewx4 testing under python3 on the same system. I will put my notes onto the wiki in the

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread 'Johannes Ebner' via weewx-development
I had to use "python3 ./setup.py build" But as this is not that trivial to use python3 on a new raspbian buster and I am not the expert. Is there any advantage to move now to python3 for weewx? The only reason why I was trying to do it that way is because I anyhow have to newly setup weewx so

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Cameron D
You should not need to uninstall python2. I have a working weewx3 install that requires it and I managed to get weewx4 testing under python3 on the same system. I will put my notes onto the wiki in the next hour or so. Cameron. On Friday, 3 January 2020 05:37:29 UTC+10, Patrick Tranchant

Re: [weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Thomas Keffer
Respectively, disagree. At this point, editing the pages on weewx.conf is not only more work, but would add to the confusion. Python 3? Version 3.x supports Python 3? -tk On Thu, Jan 2, 2020 at 12:45 PM Vince Skahan wrote: > On Thursday, January 2, 2020 at 11:32:21 AM UTC-8, Tom Keffer wrote:

Re: [weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Vince Skahan
On Thursday, January 2, 2020 at 11:32:21 AM UTC-8, Tom Keffer wrote: > > The instructions that come with V4 invokes setup.py with an explicit call > to python. > > > Yes, it does indeed. But the legacy v3 web pages that most folks likely read along with (I know that's where I look) have the

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Patrick Tranchant
sorry, i don't understand, what should i do, uninstall python 2.7? On Monday, December 30, 2019 at 10:28:50 PM UTC+1, Tom Keffer wrote: > > ... is up. In the usual spot. > http://weewx.com/downloads/development_versions/ > > -tk > -- You received this message because you are subscribed to

Re: [weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Thomas Keffer
The instructions that come with V4 invokes setup.py with an explicit call to python. -tk On Thu, Jan 2, 2020 at 12:21 PM Vince Skahan wrote: > On Thursday, January 2, 2020 at 10:32:41 AM UTC-8, mwall wrote: >> >> >> >> On Thursday, January 2, 2020 at 1:16:06 PM UTC-5, Johannes Ebner wrote: >>>

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Patrick Tranchant
up ok, we erase everything i said. as in the logs I saw that it was python 2.7 which was used, I changed the python by default with this command, pi@raspberrypi:~ $ update-alternatives --config python Il existe 2 choix pour l'alternative python (qui fournit /usr/bin/python). Sélection Chemin

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Vince Skahan
On Thursday, January 2, 2020 at 10:32:41 AM UTC-8, mwall wrote: > > > > On Thursday, January 2, 2020 at 1:16:06 PM UTC-5, Johannes Ebner wrote: >> >> >> Then I tried to install weewx but getting the following error: >> >> pi@Weewx:~/weewx-4.0.0b6 $ ./setup.py build >> Traceback (most recent call

Re: [weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Thomas Keffer
You're not giving much information, but it looks like you are trying to run weewx as a daemon. Unless you changed the in init.d file you are using (or systemd weewx.service), it is still invoking python 2. If you wish to run as a daemon, you will need to change that file. -tk On Thu, Jan 2, 2020

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Vince Skahan
On Thursday, January 2, 2020 at 11:07:22 AM UTC-8, Patrick Tranchant wrote: > I have python 2.7 and python 3.5 installed on my RPi, I can deactived > python 2.7 for test ? > > > You would have to reinstall weewx: - python3 setup.py build - python3 setup.py install - then restart weewx

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Patrick Tranchant
up installation done with setup.py = OK I try just now with "simulator" in weewx.conf => but I had an error in syslog Jan 2 19:57:02 raspberrypi weewx[5741] INFO weewx.engine: Initializing weewx version 4.0.0b6 Jan 2 19:57:02 raspberrypi weewx[5741] INFO weewx.engine: *Using Python 2.7.13

Re: [weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Thomas Keffer
Teaching users to use virtualenv or pyenv sounds like a nightmare. I wish Python's package management system was up to the task. Things are so much easier in Javascript land. -tk On Thu, Jan 2, 2020 at 11:43 AM mwall wrote: > it has always been best practice to not modify the system's python.

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread mwall
it has always been best practice to not modify the system's python. however, to do that strictly would mean that you must do one of these: * use python's virtualenv * install your own version of python, completely separately from the system python * install extensions to the system python

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread mwall
On Thursday, January 2, 2020 at 1:16:06 PM UTC-5, Johannes Ebner wrote: > > > Then I tried to install weewx but getting the following error: > > pi@Weewx:~/weewx-4.0.0b6 $ ./setup.py build > Traceback (most recent call last): > File "./setup.py", line 21, in > import configobj >

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread 'Johannes Ebner' via weewx-development
Hi, I am trying to install weewx 4 beta with python3 on my RPi with Rasbian Buster Lite. I was doing a basic installation of Raspbian (which includes Python 2.7 per default). Then I followed the docs (from the source) for Raspbian with Python3: sudo apt-get install python3-pil sudo apt-get

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Patrick Tranchant
ok, i will test version 4 using installation with setup.py, when it is available in .deb (final version), i will do the real update. tk patrick On Monday, December 30, 2019 at 10:28:50 PM UTC+1, Tom Keffer wrote: > > ... is up. In the usual spot. >

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Patrick Tranchant
it is better pi@rpi-bureau:~/weewx-4.0.0b6/bin $ ./weewxd --version 4.0.0b6 pi@rpi-bureau:~/weewx-4.0.0b6/bin $ On Monday, December 30, 2019 at 10:28:50 PM UTC+1, Tom Keffer wrote: > > ... is up. In the usual spot. > http://weewx.com/downloads/development_versions/ > > -tk > -- You received

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Vince Skahan
On Thursday, January 2, 2020 at 8:19:18 AM UTC-8, Patrick Tranchant wrote: > > I done this command > > pi@rpi-bureau:~/weewx-4.0.0b6/bin $ weewxd --version > 3.8.2 > it is normal ? > > Patrick - given your recent questions and the fact that you have a previous apt-get installation, you might

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Patrick Tranchant
I done this command pi@rpi-bureau:~/weewx-4.0.0b6/bin $ weewxd --version 3.8.2 it is normal ? patrick On Monday, December 30, 2019 at 10:28:50 PM UTC+1, Tom Keffer wrote: > > ... is up. In the usual spot. > http://weewx.com/downloads/development_versions/ > > -tk > -- You received this

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Patrick Tranchant
ok I go to try it patrick On Monday, December 30, 2019 at 10:28:50 PM UTC+1, Tom Keffer wrote: > > ... is up. In the usual spot. > http://weewx.com/downloads/development_versions/ > > -tk > -- You received this message because you are subscribed to the Google Groups "weewx-development" group.

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Patrick Tranchant
or can I just copy the new directories instead of the others? my previous installation was done by apt-get install. thanks patrick On Monday, December 30, 2019 at 10:28:50 PM UTC+1, Tom Keffer wrote: > > ... is up. In the usual spot. > http://weewx.com/downloads/development_versions/ > > -tk

Re: [weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Thomas Keffer
Unfortunately, no. WeeWX V4 is only available for installation via the setup.py. However, it is easy enough to unpack the tarball someplace, then simply run the unpacked weewxd using your old weewx.conf file. It should work fine. -tk On Thu, Jan 2, 2020 at 8:35 AM Patrick Tranchant wrote: > >

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-02 Thread Patrick Tranchant
hello I can follow this procedure ? On Monday, December 30, 2019 at 10:28:50 PM UTC+1, Tom Keffer wrote: > > ... is up. In the usual spot. > http://weewx.com/downloads/development_versions/ > > -tk > -- You received this message because you are subscribed to the Google Groups

Re: [weewx-development] Re: WeeWX Version 4, beta 6

2020-01-01 Thread Thomas Keffer
The docs are in the "docs" subdirectory. Installation is largely the same for Python 2, quite different for Python 3. Instructions are in the docs. -tk On Wed, Jan 1, 2020 at 12:24 PM Patrick Tranchant wrote: > hello Tom > happy new for all > > I downloaded version B6 to test on my BYOWS,

[weewx-development] Re: WeeWX Version 4, beta 6

2020-01-01 Thread Patrick Tranchant
hello Tom happy new for all I downloaded version B6 to test on my BYOWS, where is the new doc ( if there is); the installation is the same of version 3.9.2 ? I have already python 3.5 thanks patrick On Monday, December 30, 2019 at 10:28:50 PM UTC+1, Tom Keffer wrote: > > ... is up. In the

Re: [weewx-development] Re: WeeWX Version 4, beta 6

2020-01-01 Thread Thomas Keffer
Commit 2943038c . On Wed, Jan 1, 2020 at 8:27 AM Thomas Keffer wrote: > I've noticed that as well. That seems to be the way setup.py works: > however you invoke it, is how it installs the executables. > > I will

Re: [weewx-development] Re: WeeWX Version 4, beta 6

2020-01-01 Thread Thomas Keffer
I've noticed that as well. That seems to be the way setup.py works: however you invoke it, is how it installs the executables. I will make a note in the setup docs. -tk On Wed, Jan 1, 2020 at 8:00 AM Cameron D wrote: > A comment on the documentation. > I'm not sure if I missed it somewhere,

Re: [weewx-development] Re: WeeWX Version 4, beta 6

2020-01-01 Thread Thomas Keffer
Thanks for figuring that one out, Cameron! Nice sleuthing. Fixed in commit 3f0d80a . -tk On Wed, Jan 1, 2020 at 2:33 AM Cameron D wrote: > Hi Tom, > 1. the failure to read history on DB initialisation was a

Re: [weewx-development] Re: WeeWX Version 4, beta 6

2020-01-01 Thread Cameron D
Hi Tom, 1. the failure to read history on DB initialisation was a trivial change, so I will submit that at some stage. 2. KeyError - a bit of background, the WMR300 unit returns date in METRICWX the unit set, which is partly why I chose that for my DB. So wind speed is in m/s and as soon as I

Re: [weewx-development] Re: WeeWX Version 4, beta 6

2019-12-31 Thread Vince Skahan
On Tuesday, December 31, 2019 at 4:43:43 PM UTC-8, Vince Skahan wrote: > > Working on upgrading to python3 but need to rebuild it all after > installing a newer openssl from sources (sigh) because there's no way to > get 'there' either otherwise, so I can eventually 'pip3 install' all the >

Re: [weewx-development] Re: WeeWX Version 4, beta 6

2019-12-31 Thread Vince Skahan
On Tuesday, December 31, 2019 at 3:49:37 PM UTC-8, Tom Keffer wrote: > > Mine's python 2.7.3 and configobj 4.7.2 >> > > Does the problem go away if you upgrade configobj to the current version, > 5.0.6? > > > I can't find a way to get there on this ancient system, unfortunately. Working on

Re: [weewx-development] Re: WeeWX Version 4, beta 6

2019-12-31 Thread Thomas Keffer
> > Mine's python 2.7.3 and configobj 4.7.2 > Does the problem go away if you upgrade configobj to the current version, 5.0.6? -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

Re: [weewx-development] Re: WeeWX Version 4, beta 6

2019-12-31 Thread Thomas Keffer
Ralph, the docs that come with WeeWX v4 should be correct. If you found a mistake, please post it! As for the Wiki, it will take some time for all the extension publishers to switch to Python 3. -tk On Tue, Dec 31, 2019 at 4:27 PM Ralph Underwood wrote: > It was relatively painless to

Re: [weewx-development] Re: WeeWX Version 4, beta 6

2019-12-31 Thread Vince Skahan
On Tuesday, December 31, 2019 at 3:27:40 PM UTC-8, Ralph Underwood wrote: > > It was relatively painless to convert/upgrade my python code to 3.7. A > few stumbles as the great internet has many wrong examples and > "solutions". For instance trying to install pyehem - what worked is *sudo >

Re: [weewx-development] Re: WeeWX Version 4, beta 6

2019-12-31 Thread Vince Skahan
On Tuesday, December 31, 2019 at 3:13:59 PM UTC-8, Tom Keffer wrote: > > Not sure what the problem is. Are you two using an old version of > configobj? That could do it. Try > > *python -c "import configobj; print(configobj.__version__)"* > > >> Mine's python 2.7.3 and configobj 4.7.2 undoubtedly

Re: [weewx-development] Re: WeeWX Version 4, beta 6

2019-12-31 Thread Ralph Underwood
It was relatively painless to convert/upgrade my python code to 3.7. A few stumbles as the great internet has many wrong examples and "solutions". For instance trying to install pyehem - what worked is *sudo pip3 install ephem* Same kind of issues with install the mosquitto and paho client

Re: [weewx-development] Re: WeeWX Version 4, beta 6

2019-12-31 Thread Thomas Keffer
Come on, Python 2.6 is over 11 years old, and hasn't been supported for well over 6 years! Time to upgrade! If you're running Python 3, WeeWX requires Python v3.5 or greater. Versions before that do not support % formatting of bytes and bytearrays. Not sure what the problem is. Are you two using

[weewx-development] Re: WeeWX Version 4, beta 6

2019-12-31 Thread Ralph Underwood
Slam and dunk! One station now on 4.0.0b6. The script I was referring to is the "weewx flexible installer script for Debian(ish) systems". Using the six steps was easy once I remembered to add the -xf to tar. BTW - under the 3.? versions I was having seemingly random crashes (7 to 14 days

[weewx-development] Re: WeeWX Version 4, beta 6

2019-12-31 Thread Vince Skahan
On Tuesday, December 31, 2019 at 12:42:57 PM UTC-8, Ralph Underwood wrote: > > I'm running fine with 4.0.0b5 and the newest version of > the Ultimeter driver on two different RPi4 stations. Knowing just enough > unix & python to be dangerous, I thought maybe I should clarify a few > things

[weewx-development] Re: WeeWX Version 4, beta 6

2019-12-31 Thread Ralph Underwood
I'm running fine with 4.0.0b5 and the newest version of the Ultimeter driver on two different RPi4 stations. Knowing just enough unix & python to be dangerous, I thought maybe I should clarify a few things before using Vince's script to update to beta 6. I have extra sensors that use mqtt. I

[weewx-development] Re: WeeWX Version 4, beta 6

2019-12-31 Thread Vince Skahan
On Tuesday, December 31, 2019 at 10:51:00 AM UTC-8, mwall wrote: > > > i am seeing the same exception, in the same place. but with python 2.6 (i > know, we are only going to support python 2.7, but its an old system and i > cannot update python on it) > > > I'm trying to compile python-3.8.1 on

[weewx-development] Re: WeeWX Version 4, beta 6

2019-12-31 Thread mwall
On Tuesday, December 31, 2019 at 1:42:37 PM UTC-5, Vince Skahan wrote: > > On Monday, December 30, 2019 at 1:28:50 PM UTC-8, Tom Keffer wrote: >> >> ... is up. In the usual spot. >> http://weewx.com/downloads/development_versions/ >> >> > Does b6 have a minimum python version ? > as i

[weewx-development] Re: WeeWX Version 4, beta 6

2019-12-31 Thread Vince Skahan
On Monday, December 30, 2019 at 1:28:50 PM UTC-8, Tom Keffer wrote: > > ... is up. In the usual spot. > http://weewx.com/downloads/development_versions/ > > Does b6 have a minimum python version ? Rolled the dice and tried an upgrade of my ancient Seagate Dockstar 3.9.0 to beta-6. Fail on

Re: [weewx-development] Re: WeeWX Version 4, beta 6

2019-12-31 Thread Thomas Keffer
Thanks, Cameron 1. Can you post the log where this happened? 2. Conversion from meter to km was never possible. Meter is a member of group_altitude, and km is a member of group_distance. Can you give me the context where this happened? -tk On Tue, Dec 31, 2019 at 12:53 AM Cameron D wrote: >

[weewx-development] Re: WeeWX Version 4, beta 6

2019-12-30 Thread Cameron D
I have just started messing around with the beta 4 code. 1. the WMR300 driver seems to be basically working, both standalone under python3 and as part of weewx to a new sqlite db. There is one small problem - it is not reading the history from the console because there is no time to which