V5.0.0 available

169 views
Skip to first unread message

Tom Keffer

unread,
Jan 14, 2024, 5:25:08 PMJan 14
to weewx-user, weewx-development
A year in the making, V5 is finally available! Some minor new features, but most of the work has been to keep up with the changing world of Python --- lots of things have become obsolete (distutils), while others have just changed. 

A few changes to highlight:
  • WeeWX can now be installed using pip. The old setup.py method is gone.
  • Support for the latest versions of Python.
  • Improved documentation.
  • The utilities have been pulled together under one master utility, weectl, making it easier to find the functionality you need.
  • Management of multiple stations is easier and more modular.


Be sure to read the Upgrade Guide.

- Tom, Matt, and Gary.

Joel Bion

unread,
Jan 14, 2024, 7:55:33 PMJan 14
to Tom Keffer, weewx-development
Tom -

I want to take a moment and write a quick note to congratulate you and everyone on the weewx team in reaching this milestone. Weewx is a great package and thank you for all you and the others do!

Joel

Sent from my iPhone

On Jan 14, 2024, at 2:25 PM, Tom Keffer <tke...@gmail.com> wrote:


--
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/CAPq0zEDyOXhODJ_XaCw%3Dcxm9L3B2t3k70Y3L2fkZQwYSyb71Og%40mail.gmail.com.

Graham Eddy

unread,
Jan 15, 2024, 4:40:27 AMJan 15
to weewx-development
upgrade from b16 very smooth, took seconds. i have one venv shared by two stations

(venv) graham@wx:~$ sudo systemctl stop weewx@vantage weewx@ecowitt

——

(venv) weewx@wx:~$ python3 -m pip install weewx --upgrade

Requirement already satisfied: weewx in ./venv/lib/python3.11/site-packages (5.0.0b16)

Collecting weewx

  Downloading weewx-5.0.0-py3-none-any.whl (1.4 MB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.4/1.4 MB 1.8 MB/s eta 0:00:00

Requirement already satisfied: CT3<4.0,>=3.1 in ./venv/lib/python3.11/site-packages (from weewx) (3.3.2)

Requirement already satisfied: Pillow>=5.2 in ./venv/lib/python3.11/site-packages (from weewx) (10.0.0)

Requirement already satisfied: PyMySQL<2.0,>=1.0 in ./venv/lib/python3.11/site-packages (from weewx) (1.1.0)

Requirement already satisfied: configobj<6.0,>=5.0 in ./venv/lib/python3.11/site-packages (from weewx) (5.0.8)

Requirement already satisfied: ephem<5.0,>=4.1 in ./venv/lib/python3.11/site-packages (from weewx) (4.1.4)

Requirement already satisfied: pyserial<4.0,>=3.4 in ./venv/lib/python3.11/site-packages (from weewx) (3.5)

Requirement already satisfied: pyusb<2.0.0,>=1.0.2 in ./venv/lib/python3.11/site-packages (from weewx) (1.2.1)

Requirement already satisfied: six in ./venv/lib/python3.11/site-packages (from configobj<6.0,>=5.0->weewx) (1.16.0)

Installing collected packages: weewx

  Attempting uninstall: weewx

    Found existing installation: weewx 5.0.0b16

    Uninstalling weewx-5.0.0b16:

      Successfully uninstalled weewx-5.0.0b16

Successfully installed weewx-5.0.0

----


(venv) graham@wx:~$ sudo systemctl start weewx@vantage weewx@ecowitt

(venv) graham@wx:~$ sudo journalctl -u weewx@vantage -n 30 -f

Jan 15 19:59:42 wx weewx-vantage[12162]: INFO user.mqtt: <MQTTInward> started

Jan 15 19:59:43 wx weewx-vantage[12162]: DEBUG user.vitalstats: <VitalStats> starting v2.0.3

Jan 15 19:59:43 wx weewx-vantage[12162]: DEBUG user.vitalstats: <VitalStats> stats={'archive': ['cpu_load', 'cpu_idle', 'cpu_temp', 'mem_avail', 'disk_avail'], 'loop': []} therm_name='coretemp'

Jan 15 19:59:43 wx weewx-vantage[12162]: INFO user.vitalstats: <VitalStats> started

Jan 15 19:59:43 wx weewx-vantage[12162]: INFO weewx.engine: StdConvert target unit is 0x1

Jan 15 19:59:43 wx weewx-vantage[12162]: INFO weewx.wxservices: StdWXCalculate will use data binding wx_binding

Jan 15 19:59:43 wx weewx-vantage[12162]: INFO weewx.engine: Archive will use data binding wx_binding

Jan 15 19:59:43 wx weewx-vantage[12162]: INFO weewx.engine: Record generation will be attempted in 'hardware'

Jan 15 19:59:43 wx weewx-vantage[12162]: INFO weewx.engine: Using archive interval of 300 seconds (specified by hardware)

Jan 15 19:59:43 wx weewx-vantage[12162]: INFO user.forecast: MainThread: OWM: forecast version 3.4.0b11

Jan 15 19:59:43 wx weewx-vantage[12162]: INFO user.forecast: MainThread: OWM: interval=10800 max_age=604800 api_key=XXXXXXXXXXXXXXXXXXXXXXXXXXXX238e location=2172929 fc=5day3hour

Jan 15 19:59:43 wx weewx-vantage[12162]: INFO weewx.restx: StationRegistry: Station will be registered.

Jan 15 19:59:43 wx weewx-vantage[12162]: INFO weewx.restx: Wunderground-PWS: Data for station IBUXTO23 will be posted

Jan 15 19:59:43 wx weewx-vantage[12162]: INFO weewx.restx: WOW: Data for station 586966064 will be posted

Jan 15 19:59:43 wx weewx-vantage[12162]: INFO weewx.engine: 'pyephem' detected, extended almanac data is available

Jan 15 19:59:43 wx weewx-vantage[12162]: DEBUG user.mqtt: <MQTTOutward> starting v0.1.3

Jan 15 19:59:43 wx weewx-vantage[12162]: INFO user.mqtt: <MQTTOutward> started

Jan 15 19:59:43 wx weewx-vantage[12162]: INFO __main__: Starting up weewx version 5.0.0

...

(venv) graham@wx:~$ sudo journalctl -u weewx@ecowitt -n 30 -f

Jan 15 19:59:42 wx weewx-ecowitt[12163]: INFO weewx.engine: 'pyephem' detected, extended almanac data is available

Jan 15 19:59:43 wx weewx-ecowitt[12163]: DEBUG user.mqtt: <MQTTOutward> starting v0.1.3

Jan 15 19:59:43 wx weewx-ecowitt[12163]: DEBUG mqttif: <Gateway broker.home.arpa:1883 True> request connect

Jan 15 19:59:43 wx weewx-ecowitt[12163]: INFO user.mqtt: <MQTTOutward> started

Jan 15 19:59:43 wx weewx-ecowitt[12163]: INFO __main__: Starting up weewx version 5.0.0

...


⊣GE⊢

František Slimařík

unread,
Jan 28, 2024, 1:37:02 PMJan 28
to weewx-development
Hello,

small discovery from my side using Rocky Linux 8, RPM installation and selinux policy. Upgrade itself was smooth but I realized then I cannot see status of service or stop/start it.

[root@rocky-weather-machine system]# systemctl status weewx
Failed to get properties: Access denied


[root@rocky-weather-machine procedures]# getenforce
Enforcing


I applied following to give it more proper context and all is OK now.

cd /usr/lib/systemd/system/
ls -al weewx*
-rw-r--r--.  1 root root unconfined_u:object_r:systemd_unit_file_t:s0            366 28. led 13.22 weewx.service
-rw-r--r--.  1 root root unconfined_u:object_r:systemd_unit_file_t:s0            874 28. led 13.22 weewx@.service

chcon --reference timedatex.service weewx*
systemctl daemon-reexec

ls -al weewx*
-rw-r--r--.  1 root root system_u:object_r:systemd_unit_file_t:s0                366 28. led 13.22 weewx.service
-rw-r--r--.  1 root root system_u:object_r:systemd_unit_file_t:s0                874 28. led 13.22 weewx@.service

Dne pondělí 15. ledna 2024 v 10:40:27 UTC+1 uživatel Graham Eddy napsal:

Vince Skahan

unread,
Jan 28, 2024, 5:35:20 PMJan 28
to weewx-development
On vagrant rocky9 with Enforcing enabled 5.0.0-1.el9 has no problems on a clean installation of os and weewx, so my 'guess' is the selinux policies might be a little different in the later os.

[vagrant@localhost system]$ ls -Zl systemd-timedated.service wee*.service
-rw-r--r--. 1 root root system_u:object_r:systemd_timedated_unit_file_t:s0 1162 Oct 26 01:38 systemd-timedated.service
-rw-r--r--. 1 root root unconfined_u:object_r:systemd_unit_file_t:s0        368 Jan 28 22:26 weewx.service
-rw-r--r--. 1 root root unconfined_u:object_r:systemd_unit_file_t:s0        876 Jan 28 22:26 weewx@.service


[vagrant@localhost system]$ sudo systemctl status weewx
● weewx.service - WeeWX
     Loaded: loaded (/usr/lib/systemd/system/weewx.service; enabled; preset: disabled)
     Active: active (running) since Sun 2024-01-28 22:26:55 UTC; 7min ago
       Docs: https://weewx.com/docs
   Main PID: 2488 (python3)
      Tasks: 1 (limit: 5824)
     Memory: 29.7M
        CPU: 2.689s
     CGroup: /system.slice/weewx.service
             └─2488 python3 /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf

Jan 28 22:26:55 localhost.localdomain weewxd[2488]: INFO weewx.engine: Clock error is -0.11 seconds (positive is fast)
Jan 28 22:26:55 localhost.localdomain weewxd[2488]: INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
Jan 28 22:26:55 localhost.localdomain weewxd[2488]: INFO weewx.manager: Starting backfill of daily summaries
Jan 28 22:26:55 localhost.localdomain weewxd[2488]: INFO weewx.manager: Empty database
Jan 28 22:26:55 localhost.localdomain weewxd[2488]: INFO weewx.engine: Starting main packet loop.
Jan 28 22:30:15 localhost.localdomain weewxd[2488]: INFO weewx.manager: Added record 2024-01-28 22:30:00 UTC (1706481000) to database 'weewx.sdb'
Jan 28 22:30:15 localhost.localdomain weewxd[2488]: INFO weewx.manager: Added record 2024-01-28 22:30:00 UTC (1706481000) to daily summary in 'weewx.sdb'
Jan 28 22:30:16 localhost.localdomain weewxd[2488]: INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 0.82 seconds
Jan 28 22:30:17 localhost.localdomain weewxd[2488]: INFO weewx.imagegenerator: Generated 56 images for report SeasonsReport in 0.96 seconds
Jan 28 22:30:17 localhost.localdomain weewxd[2488]: INFO weewx.reportengine: Copied 5 files to /var/www/html/weewx

I 'did' need to install epel-release on rocky9 so the python prerequisites were installed.
Reply all
Reply to author
Forward
0 new messages