Version 4.9.0 available

308 views
Skip to first unread message

Tom Keffer

unread,
Oct 24, 2022, 5:58:16 PM10/24/22
to weewx-user, weewx-development
Some new features, some bug fixes. For the most part, upwardly compatible with earlier releases. See the upgrade guide for the two obscure exceptions.
Available in the usual places.

4.9.0 10/24/2022
Fix problem that create 'ghost' values for VantageVue stations.
Fix problem that causes `leafWet3` and `leafWet4` to be emitted in VP2
stations that do not have the necessary sensors.
Fixes issue #771.

Try waking the Vantage console before giving up on LOOP errors.
Better Vantage diagnostics.
Fixes issue #772.

Add missing 30-day barometer graph to Smartphone skin.
Fixes issue #774.

Fix check for reuse_ssl for Python versions greater than 3.10.
Fixes issue #775.

The utility wee_reports can now be invoked by specifying a --date and --time.
Fixes issue #776.

Allow timestamps that are not integers.
Fixes issue #779.

Add localization file for Traditional Chinese. Thanks to user lyuxingliu!
PR #777.

Don't swallow syntax errors when wee_config is looking for drivers.

Include 'wind' in daily summary if 'windSpeed' is present.

Refine translations for French skin. Thanks to user Pascal!

Allow a custom cipher to be specified for FTP uploads. See option 'cipher'
under [[FTP]].

Ensure that rundir exists and has correct permissions in weewx-multi

Allow auto-provisioning feature of Seasons to work when using a SQL expression
for option data_type in the ImageGenerator. Fixes issue #782.

Allow constants albedo, cn, and cd to be specified when calculating ET.
See the User's Guide. Resolves issue #730.

Fix problem that prevented wee_reports from using a default location
for weewx.conf.

Post location of the configuration file and the top-level module to the station
registry. Thanks to Vince! PR #705.

Fix minor install warning under Python 3.10. Fixes issue #799.

Fix problem where xtypes.ArchiveTable.get_series() does not pass option_dict
on to get_aggregate(). Fixes issue #797

Added copytruncate option to default log rotation configuration. Thanks to
user sastorsl. Addresses PR #791.

Update the default and example rules in rsyslog configuration. The output
from the weewx daemon goes to weewxd.log whereas the output from wee_xxx
utilities goes to weewx.log. Also added examples of how to deal with
systemd/journald messing with log output. Addresses PR#788 and PR#790.
Thanks to user sastorsl.

Allow additional aggregation intervals for observation type $wind. In
particular, 'vecdir' and 'vecavg' can be done for aggregation intervals other
than multiples of a day.
Fixes issue #800.

Tom Keffer

unread,
Oct 24, 2022, 7:14:00 PM10/24/22
to weewx-user, weewx-development
One glitch that could affect new users running older operating systems. 

Older versions of the Seasons skin plot wind direction over time. Unfortunately, they do this by taking the scalar average of the wind directions, instead of the vector average. For example, directions 350°, 0°, and 10° would average out to 120°, not the 0° you would expect. 

The version of Seasons in V4.9 fixes this problem, but it uses SQL queries that use mathematical functions that were introduced in sqlite in v3.35, which came out about a year and a half ago. Not all versions of sqlite have caught up.

Bottom line: if you're installing a new version of the Seasons skin you could encounter this problem. There are several easy workarounds. Let me know if you have the problem.

MySQL users are not affected.

Cheers,

-tk


Message has been deleted

vince

unread,
Oct 24, 2022, 8:32:51 PM10/24/22
to weewx-user
Looks like a lot of os are not up to v3.35 or later according to the command in the other thread...

python3 -c "import sqlite3; print(sqlite3.sqlite_version)"

  • Debian 10 - nope
  • Debian 11 - nope
  • Almalinux 9 - nope
  • Ubuntu 2204.1 LTS - ok
  • Ubuntu 1804.1 LTS - nope
  • RaspiOS - nope

Tom Keffer

unread,
Oct 24, 2022, 9:08:44 PM10/24/22
to weewx...@googlegroups.com
I'm working on a dot-dot release that will do the calculations "the hard way", that is, in Python, for older versions of sqlite. I should have it ready some time in the next couple of days.

-tk

--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/6825f2bc-3ff5-474a-a79a-b6772f24d059n%40googlegroups.com.

Clifford Snow

unread,
Oct 24, 2022, 9:49:02 PM10/24/22
to weewx...@googlegroups.com
I'm running Fedora 36. sqlite3 is at version 3.36


On Mon, Oct 24, 2022 at 5:32 PM vince <vince...@gmail.com> wrote:
--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/6825f2bc-3ff5-474a-a79a-b6772f24d059n%40googlegroups.com.


--
@osm_washington
OpenStreetMap: Maps with a human touch

Raffaello Galli

unread,
Oct 25, 2022, 4:46:39 AM10/25/22
to weewx...@googlegroups.com
I had weewx 4,8 installed on a raspberry pi 4 mod B 8GB ram
Everything was running smoothly and was working fine, archiving and retrieving correctly from sqlite database
After the installation of weewx 4.9 the function wee_reports was not working correctly due to an exception.

I have an exception on RADIANT function when running wee_reports.
The function looks like missing  

return sqlite3.Cursor.execute(self, *args, **kwargs)  sqlite3.OperationalError: no such function: RADIANS
During handling of the above exception, another exception occurred:
File "/usr/share/weewx/weedb/sqlite.py", line 44, in guarded_fn raise weedb.OperationalError(e)
weedb.OperationalError: no such function: RADIANS

Can you give me a hint?

Thanks,
Raffaello




On Tue, Oct 25, 2022 at 2:26 AM vince <vince...@gmail.com> wrote:
Quick check using python3 -c "import sqlite3; print(sqlite3.sqlite_version)"

On Monday, October 24, 2022 at 4:14:00 PM UTC-7 Tom Keffer wrote:

--
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 weewx-user+...@googlegroups.com.

Nate Bargmann

unread,
Oct 25, 2022, 5:27:42 AM10/25/22
to weewx...@googlegroups.com
* On 2022 24 Oct 19:33 -0500, vince wrote:
> Looks like a lot of os are not up to v3.35 or later according to the
> command in the other thread...
>
> *python3 -c "import sqlite3; print(sqlite3.sqlite_version)"*
>
>
> - Debian 10 - nope
> - Debian 11 - nope
> - Almalinux 9 - nope
> - Ubuntu 2204.1 LTS - ok
> - Ubuntu 1804.1 LTS - nope
> - RaspiOS - nope

I just checked on "Armbian 21.08.1 Bullseye with Linux 5.15.72-sunxi":

$ python3 -c "import sqlite3; print(sqlite3.sqlite_version)"
3.34.1

- Nate

--
"The optimist proclaims that we live in the best of all
possible worlds. The pessimist fears this is true."
Web: https://www.n0nb.us
Projects: https://github.com/N0NB
GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819

signature.asc

Tom Keffer

unread,
Oct 25, 2022, 7:46:36 AM10/25/22
to weewx-user, weewx-development
I have just uploaded v4.9.1. For older versions of sqlite, it does the math calculations in Python, instead of SQL.  

Please give it a try.
Message has been deleted

Tom Keffer

unread,
Oct 25, 2022, 9:53:28 AM10/25/22
to weewx...@googlegroups.com
The calling signature of archiveDaySpan() has changed. I didn't think anyone would be affected by this, but I was obviously wrong.

Go into file /usr/share/weewx/user/wns.cpy and change this

yesterdaytimespan = weeutil.weeutil.archiveDaySpan(_time_ts,1,1)

to this

yesterdaytimespan = weeutil.weeutil.archiveDaySpan(_time_ts,1)

I'll let the author know.

-tk


On Tue, Oct 25, 2022 at 6:06 AM David Schulz <schulz....@gmail.com> wrote:
Hi, I have the following message in syslog after updating to 4.9.0 / 4.9.1. Is it relevant or not?

python3 -c "import sqlite3; print(sqlite3.sqlite_version)"
3.37.2

Oct 25 14:58:17 weather weewx[15683] ERROR weewx.restx: Wns: Unexpected exception of type <class 'TypeError'>
Oct 25 14:58:17 weather weewx[15683] ERROR weewx.restx: *** Traceback (most recent call last):
Oct 25 14:58:17 weather weewx[15683] ERROR weewx.restx: ***   File "/usr/share/weewx/weewx/restx.py", line 379, in run_loop
Oct 25 14:58:17 weather weewx[15683] ERROR weewx.restx: ***     self.process_record(_record, dbmanager)
Oct 25 14:58:17 weather weewx[15683] ERROR weewx.restx: ***   File "/usr/share/weewx/weewx/restx.py", line 425, in process_record
Oct 25 14:58:17 weather weewx[15683] ERROR weewx.restx: ***     _full_record = self.get_record(record, dbmanager)
Oct 25 14:58:17 weather weewx[15683] ERROR weewx.restx: ***   File "/usr/share/weewx/user/wns.py", line 540, in get_record
Oct 25 14:58:17 weather weewx[15683] ERROR weewx.restx: ***     yesterdaytimespan = weeutil.weeutil.archiveDaySpan(_time_ts,1,1)
Oct 25 14:58:17 weather weewx[15683] ERROR weewx.restx: *** TypeError: archiveDaySpan() takes from 1 to 2 positional arguments but 3 were given

--
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 weewx-user+...@googlegroups.com.

David Schulz

unread,
Oct 25, 2022, 12:03:42 PM10/25/22
to weewx-user
Thanks for the fix. And I deleted it because it does not belong directly to WeewX. But you fixed it here too.

Reply all
Reply to author
Forward
Message has been deleted
0 new messages