New alpha version

446 views
Skip to first unread message

Thomas Keffer

unread,
Aug 24, 2019, 8:53:39 AM8/24/19
to weewx-development
I've posted a new alpha version of WeeWX V4. Find it at http://weewx.com/downloads/development_versions/

This version uses a new logging package, supports LOOP2 packets for Vantage stations, wunderfixer works with the new WU download API, and, of course, supports Python 3.

This version is almost feature complete. Remaining on my list is better support of new types.

Test, test, test! Especially on devices other than Vantage.

-tk

Greg Troxel

unread,
Aug 24, 2019, 8:57:25 AM8/24/19
to Thomas Keffer, weewx-development
As running this on one's main station seems ill advised at this point,
it would be interesting to have a recipe for posting MQTT from a
production system and ingesting MQTT on a dev system. That doesn't test
the drivers, but it does exercise a lot (including implicitly OS
issues).

I realize I can figure the above out, but if there's a published recipe
more people would probably do it.

Vince Skahan

unread,
Aug 24, 2019, 8:15:19 PM8/24/19
to weewx-development
On Saturday, August 24, 2019 at 5:53:39 AM UTC-7, Tom Keffer wrote:
I've posted a new alpha version of WeeWX V4. Find it at http://weewx.com/downloads/development_versions/



Installs and runs fine in Simulator on Raspbian current (debian 10.0) using both python2 and python3....
 

The log format surprised me a bit:

Aug 24 16:00:18 pi4 weewx[17512]/INFO weewx.imagegenerator: Generated 28 images for SeasonsReport in 1.46 seconds
Aug 24 16:00:18 pi4 weewx[17512]/INFO weewx.reportengine: copygenerator: Copied 0 files to /home/weewx/public_html

Is that something we can think about tweaking a little to be more mainstream looking ?

Maybe something more like:

Aug 24 16:00:18 pi4 weewx[17512]: [WEEWX.INFO] weewx.imagegenerator: Generated 28 images for SeasonsReport in 1.46 seconds

Typically you'd have the service[pid]: followed by the message....

Basically I'm concerned about parsing the logs easily and/or splitting weewx logs into different logfiles etc. as lots of folks tend to do.



Thomas Keffer

unread,
Aug 24, 2019, 8:25:08 PM8/24/19
to Vince Skahan, weewx-development
You can change the log format to anything you want with a [Logging] section in weewx.conf, but I'm open to getting the default right.

What is the significance of [WEEWX.INFO]? That INFO is part of some sort of WEEWX domain? 

-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 from it, send an email to weewx-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/d60000f3-ef1c-4d38-917e-ff2753abf39b%40googlegroups.com.

Vince Skahan

unread,
Aug 24, 2019, 8:31:23 PM8/24/19
to Thomas Keffer, weewx-development
Yes I saw the nice commentary in logger.py about customization which is great.

WEEWX-INFO is just an example trying to show that it came from weewx and it's info severity. I used to do things like that with 'logger -t' from bash so I could later poster the logs readily. Makes it easy to grep or regexp.

The default now looks kinda hard to filter based on, but maybe folks who do a lot more of that with their weeex logs should chime in with their thoughts.


Thomas Keffer

unread,
Aug 24, 2019, 8:42:50 PM8/24/19
to weewx-development
Why not just filter on the process name?


mwall

unread,
Aug 24, 2019, 9:21:13 PM8/24/19
to weewx-development


On Saturday, August 24, 2019 at 8:15:19 PM UTC-4, Vince Skahan wrote:

The log format surprised me a bit:

Aug 24 16:00:18 pi4 weewx[17512]/INFO weewx.imagegenerator: Generated 28 images for SeasonsReport in 1.46 seconds
Aug 24 16:00:18 pi4 weewx[17512]/INFO weewx.reportengine: copygenerator: Copied 0 files to /home/weewx/public_html


how about this:

Aug 24 16:00:18 pi4 weewx[17512] INFO weewx.imagegenerator: Generated 28 images for SeasonsReport in 1.46 seconds
Aug 24 16:00:18 pi4 weewx[17512] INFO weewx.reportengine: copygenerator: Copied 0 files to /home/weewx/public_html

for any parsers that would be space-delimited lines that look like this:

{datetime} {host} {process_name[process_id]} {log_level} {module: message}

we might consider adding a thread field:

{datetime} {host} {process_name[process_id]} {thread_name} {log_level} {module: message}

there are posix standards for this, and there are some standard patterns for easy consumption in elasticsearch and splunk.  maybe we should look at those for guidance?

m

Thomas Keffer

unread,
Aug 24, 2019, 9:58:46 PM8/24/19
to weewx-development
Well... *somebody* can research it, but it won't be me. :-)

I'll just go with space delimiters. No slashes.

--
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-developm...@googlegroups.com.

Vince Skahan

unread,
Aug 25, 2019, 12:50:21 PM8/25/19
to weewx-development
On Saturday, August 24, 2019 at 6:58:46 PM UTC-7, Tom Keffer wrote:
Well... *somebody* can research it, but it won't be me. :-)

I'll just go with space delimiters. No slashes.


Sounds good.

Whoever is the logwatch guru probably needs to check that stuff in utils versus the new logging format to quiet down the noise logwatch generates now.  Basically all the lines are now reporting as unmatched lines, but I don't know how clean its report was vs. vanilla 3.9.2

I'm uncertain whether adding in the INFO or DEBUG (etc) adds any value or not but it can't hurt.

Vince Skahan

unread,
Aug 25, 2019, 3:08:16 PM8/25/19
to weewx-development
On Saturday, August 24, 2019 at 5:53:39 AM UTC-7, Tom Keffer wrote:
Test, test, test! Especially on devices other than Vantage.



I got the WeatherFlowUDP driver to work using python3 and have sent the tiny patches required to its author.

Andy

unread,
Aug 26, 2019, 8:13:26 PM8/26/19
to weewx-development


On Saturday, August 24, 2019 at 5:53:39 AM UTC-7, Tom Keffer wrote:
Test, test, test! Especially on devices other than Vantage.

-tk

OK this is running with the sdr driver, vmware esxi 6.7

 root@weewx-01:/home/weewx# uname -a && cat /etc/debian_version 
Linux weewx-01 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5+deb10u2 (2019-08-08) x86_64 GNU/Linux
10.0

Aug 26 17:09:00 weewx-01 weewx[15780]/INFO weewx.engine: Initializing weewx version 4.0.0a7
Aug 26 17:09:00 weewx-01 weewx[15780]/INFO weewx.engine: Using Python 2.7.16 (default, Apr  6 2019, 01:42:57) #012[GCC 8.3.0]
Aug 26 17:09:00 weewx-01 weewx[15780]/INFO weewx.engine: Platform Linux-4.19.0-5-amd64-x86_64-with-debian-10.0
Aug 26 17:09:00 weewx-01 weewx[15780]/INFO weewx.engine: Locale is 'en_US.UTF-8'
Aug 26 17:09:00 weewx-01 weewx[15780]/INFO weewx.engine: Using configuration file /home/weewx/weewx.conf
Aug 26 17:09:00 weewx-01 weewx[15780]/INFO weewx.engine: Loading station type SDR (user.sdr)
Aug 26 17:09:00 weewx-01 weewxd: sdr: MainThread: driver version is 0.64





Thomas Keffer

unread,
Aug 26, 2019, 8:39:56 PM8/26/19
to Andy, weewx-development
Thanks, Andy. Did you try it under python3?

--
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-developm...@googlegroups.com.

Andy

unread,
Aug 26, 2019, 9:07:40 PM8/26/19
to weewx-development

Andy

unread,
Aug 26, 2019, 9:09:08 PM8/26/19
to weewx-development
I will but have to figure out how, virt env?


On Monday, August 26, 2019 at 5:39:56 PM UTC-7, Tom Keffer wrote:
Thanks, Andy. Did you try it under python3?

On Mon, Aug 26, 2019 at 5:13 PM Andy <rockl...@gmail.com> wrote:


On Saturday, August 24, 2019 at 5:53:39 AM UTC-7, Tom Keffer wrote:
Test, test, test! Especially on devices other than Vantage.

-tk

OK this is running with the sdr driver, vmware esxi 6.7

 root@weewx-01:/home/weewx# uname -a && cat /etc/debian_version 
Linux weewx-01 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5+deb10u2 (2019-08-08) x86_64 GNU/Linux
10.0

Aug 26 17:09:00 weewx-01 weewx[15780]/INFO weewx.engine: Initializing weewx version 4.0.0a7
Aug 26 17:09:00 weewx-01 weewx[15780]/INFO weewx.engine: Using Python 2.7.16 (default, Apr  6 2019, 01:42:57) #012[GCC 8.3.0]
Aug 26 17:09:00 weewx-01 weewx[15780]/INFO weewx.engine: Platform Linux-4.19.0-5-amd64-x86_64-with-debian-10.0
Aug 26 17:09:00 weewx-01 weewx[15780]/INFO weewx.engine: Locale is 'en_US.UTF-8'
Aug 26 17:09:00 weewx-01 weewx[15780]/INFO weewx.engine: Using configuration file /home/weewx/weewx.conf
Aug 26 17:09:00 weewx-01 weewx[15780]/INFO weewx.engine: Loading station type SDR (user.sdr)
Aug 26 17:09:00 weewx-01 weewxd: sdr: MainThread: driver version is 0.64





--
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-de...@googlegroups.com.

Thomas Keffer

unread,
Aug 26, 2019, 9:11:12 PM8/26/19
to Andy, weewx-development
Stop your weewx daemon, then just run it right out of the directory. 

cd /home/weewx
python3 ./bin/weewxd weewx.conf

-tk



To unsubscribe from this group and stop receiving emails from it, send an email to weewx-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/6d1c0865-304a-41dc-9a2c-8f3e8eda6e78%40googlegroups.com.

Andy

unread,
Aug 26, 2019, 9:15:30 PM8/26/19
to weewx-development
root@weewx-01:/home/weewx# python3 ./bin/weewxd /home/weewx/weewx.conf
Traceback (most recent call last):
  File "./bin/weewxd", line 64, in <module>
    weewx.engine.main(options, args)
  File "/home/weewx/bin/weewx/engine.py", line 884, in main
    engine = engine_class(config_dict)
  File "/home/weewx/bin/weewx/engine.py", line 77, in __init__
    self.setupStation(config_dict)
  File "/home/weewx/bin/weewx/engine.py", line 100, in setupStation
    __import__(driver)
  File "/home/weewx/bin/user/sdr.py", line 179
    except (OSError, ValueError), e:
                                ^



Thomas Keffer

unread,
Aug 26, 2019, 9:59:15 PM8/26/19
to weewx-development
Thanks, Andy. Looks like Matthew has not done the Python 3 port. I'll submit a PR to him.

-tk

To unsubscribe from this group and stop receiving emails from it, send an email to weewx-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/25b78cba-42b2-48cb-8c08-9d4b78a640a5%40googlegroups.com.

Andy

unread,
Aug 26, 2019, 10:40:43 PM8/26/19
to weewx-development
Aug 26 19:37:18 weewx-01 weewx[17727]/INFO weewx.engine: Initializing weewx version 4.0.0a7
Aug 26 19:37:18 weewx-01 weewx[17727]/INFO weewx.engine: Using Python 3.7.3 (default, Apr  3 2019, 05:39:12) #012[GCC 8.3.0]
Aug 26 19:37:18 weewx-01 weewx[17727]/INFO weewx.engine: Platform Linux-4.19.0-5-amd64-x86_64-with-debian-10.0
Aug 26 19:37:18 weewx-01 weewx[17727]/INFO weewx.engine: Locale is 'en_US.UTF-8'
Aug 26 19:37:18 weewx-01 weewx[17727]/INFO weewx.engine: Using configuration file /home/weewx/weewx.conf.20190826170115
Aug 26 19:37:18 weewx-01 weewx[17727]/INFO weewx.engine: Loading station type Simulator (weewx.drivers.simulator)

Simulator works,

I did have to add this when first trying the SDR station, but did not fix the error

  apt install python3-configobj

Andy

Thomas Keffer

unread,
Aug 27, 2019, 12:52:08 PM8/27/19
to Andy, weewx-development
Andy,

Can you give this version of sdr.py a try under Python 3? It's been ported.

-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 from it, send an email to weewx-developm...@googlegroups.com.

Andy

unread,
Aug 27, 2019, 1:21:06 PM8/27/19
to weewx-development
That seems better on the sdr side.

seem to be missing some modules, would prefer to use apt over pip to get these.

Aug 27 10:15:26 weewx-01 weewx[4188]/INFO weewx.manager: Added record 2019-08-27 10:15:00 PDT (1566926100) to database 'weewx.sdb'
Aug 27 10:15:26 weewx-01 weewx[4188]/INFO weewx.manager: Added record 2019-08-27 10:15:00 PDT (1566926100) to daily summary in 'weewx.sdb'
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine: reportengine: Unable to instantiate generator 'weewx.cheetahgenerator.CheetahGenerator'
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine:         ****  No module named 'Cheetah'
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/reportengine.py", line 185, in run
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine:         ****      obj = weeutil.weeutil._get_object(generator)(
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weeutil/weeutil.py", line 1103, in _get_object
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine:         ****      mod = __import__(module)
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/cheetahgenerator.py", line 66, in <module>
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine:         ****      import Cheetah.Filters
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine:         ****  ModuleNotFoundError: No module named 'Cheetah'
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine:         ****  Generator ignored
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine: reportengine: Unable to instantiate generator 'weewx.imagegenerator.ImageGenerator'
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine:         ****  No module named 'Image'
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weeplot/genplot.py", line 18, in <module>
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine:         ****      from PIL import Image, ImageDraw
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine:         ****  ModuleNotFoundError: No module named 'PIL'
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine:         ****  
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine:         ****  During handling of the above exception, another exception occurred:
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine:         ****  
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/reportengine.py", line 185, in run
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine:         ****      obj = weeutil.weeutil._get_object(generator)(
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weeutil/weeutil.py", line 1103, in _get_object
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine:         ****      mod = __import__(module)
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/imagegenerator.py", line 19, in <module>
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine:         ****      import weeplot.genplot
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weeplot/genplot.py", line 20, in <module>
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine:         ****      import Image, ImageDraw
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine:         ****  ModuleNotFoundError: No module named 'Image'
Aug 27 10:15:26 weewx-01 weewx[4188]/ERROR weewx.reportengine:         ****  Generator ignored
Aug 27 10:15:26 weewx-01 weewx[4188]/INFO weewx.reportengine: copygenerator: Copied 5 files to /home/weewx/public_html


 

Andy

unread,
Aug 27, 2019, 1:27:06 PM8/27/19
to weewx-development
seems error free at this point after:

apt install python3-configobj python3-pil python3-cheetah

Andy

unread,
Aug 27, 2019, 1:35:38 PM8/27/19
to weewx-development
and this is needed:
apt install python3-ephem

Thomas Keffer

unread,
Aug 27, 2019, 3:37:46 PM8/27/19
to weewx-development
Thanks, again. I had no idea that Cheetah and ephem had been ported to Python 3, although it seems only this summer in the very recent Debian 10 release. 

Updated the setup.py install instructions to reflect. Commit aa43108

-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 from it, send an email to weewx-developm...@googlegroups.com.

Andy

unread,
Aug 27, 2019, 5:15:43 PM8/27/19
to weewx-development
My attempts to use this with python2 and python3 have resulted in:
Aug 27 06:47:14 weewx-01 weewx[1243]/INFO weewx.engine: Starting up weewx version 4.0.0a7
Aug 27 06:47:14 weewx-01 weewx[1243]/INFO weewx.engine: Starting main packet loop.
Aug 27 06:48:44 weewx-01 systemd[1]: weewx.service: State 'stop-sigterm' timed out. Killing.
Aug 27 06:48:44 weewx-01 systemd[1]: weewx.service: Killing process 1243 (weewxd) with signal SIGKILL.
Aug 27 06:48:44 weewx-01 systemd[1]: weewx.service: Killing process 1244 (rtl_433) with signal SIGKILL.
Aug 27 06:48:44 weewx-01 systemd[1]: weewx.service: Failed with result 'timeout'.

My consultation with the oracle has it working with this, but more research is needed before the wiki is updated:
[Service]
ExecStart=/usr/bin/python3 /home/weewx/bin/weewxd   /home/weewx/weewx.conf
WorkingDirectory=/home/weewx
#ExecReload=/bin/kill -HUP $MAINPID
Type=simple
#PIDFile=/var/run/weewx.pid

 Andy

Andy

unread,
Aug 27, 2019, 5:26:03 PM8/27/19
to weewx-development


Un-commenting this line got the reload working with an ERROR
ExecReload=/bin/kill -HUP $MAINPID

Aug 27 14:21:00 weewx-01 systemd[1]: Reloading weewx weather system.
Aug 27 14:21:00 weewx-01 weewx[7063]/INFO weewx.engine: Received signal HUP. Initiating restart.
Aug 27 14:21:00 weewx-01 weewx[7063]/INFO weewx.engine: Main loop exiting. Shutting engine down.
Aug 27 14:21:00 weewx-01 weewx[7063]/INFO weewx.engine: Shutting down StdReport thread
Aug 27 14:21:00 weewx-01 weewx[7063]/INFO user.sdr: shutdown process rtl_433 -M utc -F json -G
Aug 27 14:21:00 weewx-01 systemd[1]: Reloaded weewx weather system.
Aug 27 14:21:01 weewx-01 CRON[7142]: (root) CMD (/home/camera/update-image >/dev/null 2>&1)
Aug 27 14:21:10 weewx-01 weewx[7063]/INFO user.sdr: timed out waiting for stderr-thread
Aug 27 14:21:15 weewx-01 weewx[7063]/ERROR user.sdr: process did not respond to kill, shutting down anyway
Aug 27 14:21:15 weewx-01 weewx[7063]/INFO weewx.engine: Received signal HUP. Restarting.
Aug 27 14:21:15 weewx-01 weewx[7063]/INFO weewx.engine: Using configuration file /home/weewx/weewx.conf
Aug 27 14:21:15 weewx-01 weewx[7063]/INFO weewx.engine: Loading station type SDR (user.sdr)
Aug 27 14:21:15 weewx-01 weewx[7063]/INFO user.sdr: driver version is 0.70


Thomas Keffer

unread,
Aug 27, 2019, 7:33:16 PM8/27/19
to Andy, weewx-development
I assume you were trying a systemctl "reload"?

If so, I'm not surprised that it wouldn't work with a live thread. I never use it, preferring to kill, then restart.
If not, perhaps you could describe what you were doing? systemctl works perfectly on my system.



--
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-developm...@googlegroups.com.

Pat

unread,
Aug 30, 2019, 2:06:48 PM8/30/19
to weewx-development
I think I'm having a bit of a "newbie" moment. I created a new Ubuntu 18.04.3 virtual machine. Ran apt-get update; apt-get upgrade -y; reboot. 

Upon reboot I tried to run the setup.py from the alpha package and I get this error. 

/usr/bin/env: python’: No such file or directory

I know it's because I don't have Python 2 installed. It seems I may need Python 2 installed to run the setup.py? Or am I missing a symbolic link? I guess I was expecting it to work out-of-the-box with Python 3. 

Thanks

Pat

unread,
Aug 30, 2019, 2:17:33 PM8/30/19
to weewx-development
I was right, it was a newbie moment. I tried ./setup build, but running python3 setup.py build worked. Perhaps something to keep in mind for future end user documentation?

Mind you, I'm used to an apt package being available. I've only installed from setup.py a few times, which is why I tried the ./ method. 

Pat

unread,
Aug 30, 2019, 4:37:38 PM8/30/19
to weewx-development
I notice weewxd has a shebang for python3 and runs without an issue when using ./ ... Does setup.py need to be updated?

From /home/weewx/bin/weewxd

#!/usr/bin/python3

Vince Skahan

unread,
Aug 30, 2019, 5:51:55 PM8/30/19
to weewx-development
On Friday, August 30, 2019 at 1:37:38 PM UTC-7, Pat wrote:
I notice weewxd has a shebang for python3 and runs without an issue when using ./ ... Does setup.py need to be updated?

From /home/weewx/bin/weewxd

#!/usr/bin/python3



Pat, I think things get altered based on which version of python you ran setup.py against, if memory serves.

I have a bash script that I was going to clean up and post a link to this weekend which can install weewx on Debian(ish) systems in a variety of ways:
  • latest dpkg
  • latest tgz released
  • latest tgz development version
  • latest git 'master' branch
  • hypothetically any other git branch in there too
  • with the tgz letting you pick either python2 or python3 
All hands-off from clean to a full-up Simulator in one step - just uncomment a line or three at the top and run the script.  Let me know if you want a copy (email me).

Andy

unread,
Oct 10, 2019, 9:17:07 AM10/10/19
to weewx-development
root@weewx-01:~# uptime
 05:58:56 up 43 days, 23:57,  1 user,  load average: 0.02, 0.01, 0.00
root@weewx-01:~# uname -a
Linux weewx-01 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5+deb10u2 (2019-08-08) x86_64 GNU/Linux
root@weewx-01:~# cat /etc/debian_version 
10.0

got this error today:

Oct 10 02:24:30 weewx-01 weewx[1808]/INFO weewx.engine: Main loop exiting. Shutting engine down.
Oct 10 02:24:30 weewx-01 weewx[1808]/INFO weewx.engine: Shutting down StdReport thread
Oct 10 02:24:30 weewx-01 weewx[1808]/INFO user.sdr: shutdown process rtl_433 -M utc -F json -G
Oct 10 02:24:45 weewx-01 weewx[1808]/INFO user.sdr: timed out waiting for stderr-thread
Oct 10 02:24:53 weewx-01 weewx[1808]/ERROR user.sdr: process did not respond to kill, shutting down anyway
Oct 10 02:24:53 weewx-01 weewx[1808]/CRITICAL weewx.engine: Caught unrecoverable exception:
Oct 10 02:24:53 weewx-01 weewx[1808]/CRITICAL weewx.engine:     ****  'Logger' object has no attribute 'notice'
Oct 10 02:24:53 weewx-01 weewx[1808]/CRITICAL weewx.engine:     ****  Traceback (most recent call last):
Oct 10 02:24:53 weewx-01 weewx[1808]/CRITICAL weewx.engine:     ****    File "/home/weewx/bin/weewx/engine.py", line 890,
 in main
Oct 10 02:24:53 weewx-01 weewx[1808]/CRITICAL weewx.engine:     ****      engine.run()
Oct 10 02:24:53 weewx-01 weewx[1808]/CRITICAL weewx.engine:     ****    File "/home/weewx/bin/weewx/engine.py", line 196,
 in run
Oct 10 02:24:53 weewx-01 weewx[1808]/CRITICAL weewx.engine:     ****      self.dispatchEvent(weewx.Event(weewx.NEW_LOOP_PACKET, packet=packet))
Oct 10 02:24:53 weewx-01 weewx[1808]/CRITICAL weewx.engine:     ****    File "/home/weewx/bin/weewx/engine.py", line 229, in dispatchEvent
Oct 10 02:24:53 weewx-01 weewx[1808]/CRITICAL weewx.engine:     ****      callback(event)
Oct 10 02:24:53 weewx-01 weewx[1808]/CRITICAL weewx.engine:     ****    File "/home/weewx/bin/weewx/engine.py", line 426, in new_loop_packet
Oct 10 02:24:53 weewx-01 weewx[1808]/CRITICAL weewx.engine:     ****      self.qc.apply_qc(event.packet, 'LOOP')
Oct 10 02:24:53 weewx-01 weewx[1808]/CRITICAL weewx.engine:     ****    File "/home/weewx/bin/weewx/qc.py", line 61, in apply_qc
Oct 10 02:24:53 weewx-01 weewx[1808]/CRITICAL weewx.engine:     ****      log.notice("%s: %s %s value '%s' %s outside limits (%s, %s)",
Oct 10 02:24:53 weewx-01 weewx[1808]/CRITICAL weewx.engine:     ****  AttributeError: 'Logger' object has no attribute 'notice'
Oct 10 02:24:53 weewx-01 weewx[1808]/CRITICAL weewx.engine:     ****  Exiting.



weewx-01-syslog.txt

Thomas Keffer

unread,
Oct 10, 2019, 9:23:55 AM10/10/19
to weewx-development
Thanks for your report. That bug was fixed 25 August in commit bfa3b5d. Try the newer alpha version 4.0.0a9.

-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 from it, send an email to weewx-developm...@googlegroups.com.

Andy Little

unread,
Oct 10, 2019, 9:41:38 AM10/10/19
to Thomas Keffer, weewx-development
guess I got behind on versions. 

Oct 10 06:29:27 weewx-01 weewx[21763] INFO weewx.engine: Initializing weewx version 4.0.0a9
Oct 10 06:29:27 weewx-01 weewx[21763] INFO weewx.engine: Using Python 3.7.3 (default, Apr  3 2019, 05:39:12) #012[GCC 8.3.0]
Oct 10 06:29:27 weewx-01 weewx[21763] INFO weewx.engine: Platform Linux-4.19.0-5-amd64-x86_64-with-debian-10.0
Oct 10 06:29:27 weewx-01 weewx[21763] INFO weewx.engine: Locale is 'en_US.UTF-8'
Oct 10 06:29:27 weewx-01 weewx[21763] INFO weewx.engine: Using configuration file /home/weewx/weewx.conf
Oct 10 06:29:27 weewx-01 weewx[21763] INFO weewx.engine: Loading station type SDR (user.sdr)
Oct 10 06:29:27 weewx-01 weewx[21763] INFO user.sdr: driver version is 0.70

Andy

You received this message because you are subscribed to a topic in the Google Groups "weewx-development" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-development/4q8S6Tje_VI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/CAPq0zEC6Zn6Zs9%3DEOvDf%2BZKvhpuBYkPK2zwD_UcOL98botfLsA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages