[weewx-user] paho-mqtt and weewx-mqtt: paho-mqtt-2.0.0 not compatible!

2024-02-11 Thread 'michael.k...@gmx.at' via weewx-user
WeeWX won't crash, but MQTT won't work: when using weewx-mqtt with paho-mqtt-2.0.0, it fails with: Exception ignored in: Traceback (most recent call last): File "/home/michi/weewx-venv/lib/python3.11/site-packages/paho/mqtt/client.py", line 874, in __del__ self._reset_sockets() File "

[weewx-user] WeeWX updated - Restart of Service failed

2024-02-11 Thread Uwe S.
Morning everyone, i have updated my WeeWX installation (Installed on Debian Bookworm in a Proxmox container) using the apt-update command. But the service can't be started anymore, it throws this error which i am unable so solve with my limited Python skills: Feb 11 09:16:20 WeeWX weewxd[5800]

[weewx-user] Re: WeeWX updated - Restart of Service failed

2024-02-11 Thread Uwe S.
Answering myself, as it was easier than i thought. The instance wasn't able to access the files in /var/tmp which worked before the update. Changed the ownership and the system was running again. Uwe S. schrieb am Sonntag, 11. Februar 2024 um 09:21:48 UTC+1: > Morning everyone, > > i have update

Re: [weewx-user] unable to save to file '/var/www/html/weewx/...

2024-02-11 Thread Uwe S.
I had a very similar issue while updating my weewx instance. Finally it was a permission issue in /var/tmp You can try changing permission or ownership of the files reported. For me it was working afterwards. vince schrieb am Sonntag, 11. Februar 2024 um 05:28:45 UTC+1: > Or if you have it via

Re: [weewx-user] unable to save to file '/var/www/html/weewx/...

2024-02-11 Thread Ton Karsten
Vince, I use a raspberry Pi3 B+ As web server nginx The latest version OS from December 5, 23 Kernel version: 6.1 Debian version: 12 (bookworm) Completely new latest version of Weewx installation on a new SD card Settings for the folders according to schedule For the HTML_ROOT directory: # set the

[weewx-user] purge / clean mysql database?

2024-02-11 Thread Mario Wesolek
hi there, i use weewx 5.0.2 with belchertown skin 1.3.1 with mysql database. over the time there are tousends of entrys in the database. is there a good / easy way to purge them without lost of alltime records statistik? i think the min/max values came from table archives, so i can select them

[weewx-user] Re: purge / clean mysql database?

2024-02-11 Thread 'michael.k...@gmx.at' via weewx-user
What's the problem with even millions of entries in the database? The min/max values are stored in the corresponding archive_day_xxx-tables but derived from archive and (re)built from archive. Mario Wesolek schrieb am Sonntag, 11. Februar 2024 um 12:03:00 UTC+1: > hi there, > > i use weewx 5.0.2

[weewx-user] Re: dpkg: error processing package weewx (--configure):

2024-02-11 Thread 'Cameron D' via weewx-user
The "string to float" exception can happen if you lose the separator character (comma) between station latitude and longitude, or perhaps have some extra spurious character. I don't know what happens for different languages. When dpkg configure fails then it will again attempt to complete the

[weewx-user] Is there any way to tell dpkg/apt that you are running a weewx-multi via systemd?

2024-02-11 Thread 'Cameron D' via weewx-user
The problems I am seeing are: An upgrade does not automatically stop the running services - I try to manually stop them first, but occasionally I do not even notice a new weewx among the other packages. I have standard weewx config as a simulator, so it does not matter if it runs, but I prefer

[weewx-user] Re: purge / clean mysql database?

2024-02-11 Thread geoff...@gmail.com
No need to purge - why throw away the data? My archive table contains 4229492 records, no problem. On Sunday 11 February 2024 at 11:14:45 UTC michael.k...@gmx.at wrote: > What's the problem with even millions of entries in the database? > The min/max values are stored in the corresponding archiv

Re: [weewx-user] Re: SDR no longer supported? :( What's gong on?!

2024-02-11 Thread Tom Keffer
It always pays to read the Upgrade Guide. That's what it's there for. On Sat, Feb 10, 2024 at 11:42 PM Kevin Key wrote: > Well I'll be damned. Removing the references to 'rotate" fixed the > problem. :) > > On Saturday, February 10, 2024 at 11:35:54 PM UTC-8 Kevin Key wrote: > >> Thanks. I'm goi

[weewx-user] Re: Noob Question

2024-02-11 Thread 'Cameron D' via weewx-user
If you are referring to the vector direction, that is the default - note the North pointer at bottom left. If you have a strongly dominant westerly wind then you probably want to leave it like that, otherwise there is a setting in the skin config file to "fix" it. On Sunday 11 February 2024 at

[weewx-user] Re: Noob Question

2024-02-11 Thread 'michael.k...@gmx.at' via weewx-user
Everything looks right to me, although I can't tell, because you didn't past the wind speed plot. Nick Name schrieb am Sonntag, 11. Februar 2024 um 14:00:27 UTC+1: > Following epic session finally have WeeWx up and running. Learned much & > happy with this software. > > Vanilla RaspberryPi -> Va

Re: [weewx-user] Re: WeeWX updated - Restart of Service failed

2024-02-11 Thread Tom Keffer
Glad that worked out, but you've uncovered another problem: the error handler for crt calls a non-existent function. I've created issue #11 to track, but it's likely to be a very long time before anyone gets around to it! On Sun, Feb 11, 2024 a

[weewx-user] Re: Is there any way to tell dpkg/apt that you are running a weewx-multi via systemd?

2024-02-11 Thread matthew wall
hi cameron, i'm working on this, hopefully to appear in the 5.0.3 release (or 5.1 if tom and gary are faster on their work to other parts of weewx). redhat has one convention, debian has a different convention. on top of that, we are trying to (1) migrate any sysv installations on an obviously

[weewx-user] Upgrade to 5.0.x does not start

2024-02-11 Thread geni08...@gmail.com
My input on Raspi4 sudo apt update sudo apt install weewx Paketlisten werden gelesen… Fertig Abhängigkeitsbaum wird aufgebaut… Fertig Statusinformationen werden eingelesen… Fertig weewx ist schon die neueste Version (4.10.2-1). 0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualis

[weewx-user] Re: Upgrade to 5.0.x does not start

2024-02-11 Thread vince
https://www.weewx.com/docs/5.0/quickstarts/debian/ On Sunday, February 11, 2024 at 7:59:41 AM UTC-8 geni08...@gmail.com wrote: > My input on Raspi4 > > sudo apt update > sudo apt install weewx > Paketlisten werden gelesen… Fertig > Abhängigkeitsbaum wird aufgebaut… Fertig > Statusinformationen we

Re: [weewx-user] unable to save to file '/var/www/html/weewx/...

2024-02-11 Thread vince
Debian12 virtual machine for me: - a new installation works - a v4 installation works - a v4 to v5 upgrade works I did 'not' need to do any of the chmod/chown/chgrp commands. The dpkg installation worked just fine here. On Sunday, February 11, 2024 at 2:20:17 AM UTC-8 Ton Karsten wrote

[weewx-user] Re: MQTTSubscribe and paho mqtt heads up

2024-02-11 Thread gary....@gmail.com
pip install paho-mqtt==1.6.1 Downgraded paho-mqtt in my venv, restarted weewx and all is well. On Saturday, February 10, 2024 at 5:44:36 PM UTC-5 bell...@gmail.com wrote: > There is new release of paho mqtt, 2.0.0. This has a breaking change for > all clients using this library. I'll let you kn

[weewx-user] Re: can't seem to find epel-release for fedora fc38

2024-02-11 Thread Joseph Verreau
Matt, I find under fc39 python3-pillow and python3-configobj in @updates repo and python3-cheetah in @fedora repo. These have been on my system since fc34 for the first two and fc39 for python3-cheetah. Curiously, when I ran the update from weewx 4.10 to v5.0.0 it installed. Both m

[weewx-user] Re: can't seem to find epel-release for fedora fc38

2024-02-11 Thread Joseph Verreau
Vince, curiously, I tried following those instructions. they worked for upgrading from 4.10 to 5.0.0 but not for upgrading from 5.0.0 to 5.0.2. the first upgrade ran without installing epel-release but yet not requiring to upgrade weewx; the second upgrade just won't. Go figure. joev.mi

[weewx-user] Re: Upgrade to 5.0.x does not start

2024-02-11 Thread matthew wall
On Sunday, February 11, 2024 at 10:59:41 AM UTC-5 geni08...@gmail.com wrote: weewx ist schon die neueste Version (4.10.2-1). 0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert. which operating system are you using? weewx v5 will install from a debian package only on de

[weewx-user] Re: can't seem to find epel-release for fedora fc38

2024-02-11 Thread matthew wall
joe, the epel-release dependency has been removed for the redhat el8 and el9 packages. this will appear in the next weewx release (probably 5.0.3, but perhaps 5.1). meanwhile, you can tell rpm to ignore that dependency, since you already have installed the prereqs that weewx actually uses. r

[weewx-user] Re: Install error

2024-02-11 Thread 'Werner Krenn' via weewx-user
Had the same problem. The reason for this was: The file weewx in /etc/default was 0 bytes long. After removing this file, the update (from 5.0.0 to 5.0.1) was installed successfully . The update to 5.0.2 then had no problem. Werner matthew wall schrieb am Sonntag, 11. Februar 2024 um 01:31:21 U

Re: [weewx-user] MQTTSubscribe and paho mqtt heads up

2024-02-11 Thread Greg Troxel
"bell...@gmail.com" writes: > There is new release of paho mqtt, 2.0.0. This has a breaking change for > all clients using this library. I'll let you know when MQTTSubscribe > supports it. Do you expect that MQTTSubscribe can work ok if either 1.6.x or 2.0.0 is installed? -- You received th

[weewx-user] Re: Install error

2024-02-11 Thread Dusan Tatomirovic
Matthew Wall, as requested: Mint version 21.3 Cinnamon version 6.0.4 Here is the entire response: sudo apt install weewx Reading package lists... Done Building dependency tree... Done Reading state information... Done weewx is already the newest version (5.0.2-1). 0 upgraded, 0 newly installed,

[weewx-user] Re: Install error

2024-02-11 Thread Dusan Tatomirovic
Werner Krenn - I will look for that, thanks. On Sunday, February 11, 2024 at 10:24:13 AM UTC-8 Werner Krenn wrote: > Had the same problem. > The reason for this was: > The file weewx in /etc/default was 0 bytes long. > After removing this file, the update (from 5.0.0 to 5.0.1) was installed >

Re: [weewx-user] MQTTSubscribe and paho mqtt heads up

2024-02-11 Thread bell...@gmail.com
It currently will not work with paho mqtt 2.0.0 or higher. On Sunday 11 February 2024 at 13:24:17 UTC-5 Greg Troxel wrote: > "bell...@gmail.com" writes: > > > There is new release of paho mqtt, 2.0.0. This has a breaking change for > > all clients using this library. I'll let you know when MQTT

Re: [weewx-user] MQTTSubscribe and paho mqtt heads up

2024-02-11 Thread Greg Troxel
"bell...@gmail.com" writes: > It currently will not work with paho mqtt 2.0.0 or higher. Sorry, I understood that. I have looked briefly at the migration which says "change your code because a function signature changed", and have I have been holding off because I'll need to fully absorb it, an

Re: [weewx-user] MQTTSubscribe and paho mqtt heads up

2024-02-11 Thread vince
Why not stick with 1.6.1 indefinitely and the matching version of the extension and not sweat it ? On Sunday, February 11, 2024 at 11:12:32 AM UTC-8 Greg Troxel wrote: > "bell...@gmail.com" writes: > > > It currently will not work with paho mqtt 2.0.0 or higher. > > Sorry, I understood that. I

Re: [weewx-user] MQTTSubscribe and paho mqtt heads up

2024-02-11 Thread bell...@gmail.com
My plan is to try the 2.0 signature. I think it will throw a TypeError (but what ever it throws) and catch that and use the 1.6 signature. Unless a Python expert has a better idea. The alternative is use an if to check the version and call the appropriate signature. Make sure to a read the upgrad

Re: [weewx-user] MQTTSubscribe and paho mqtt heads up

2024-02-11 Thread Greg Troxel
vince writes: > Why not stick with 1.6.1 indefinitely and the matching version of the > extension and not sweat it ? Because bugs are not going to be fixed, and packaging systems are going to have 2.0.0, and in general trying to stay in the past causes too much trouble eventually. The same rea

Re: [weewx-user] MQTTSubscribe and paho mqtt heads up

2024-02-11 Thread vince
No reason to upgrade if it works for you already and if there are no security risks since then. To list all versions available "pip list paho-mqtt==" To install a specified version "pip install paho-mqtt==1.6.1" Or for apt... List all versions "apt-cache policy python3-paho-mqtt" Install on

Re: [weewx-user] unable to save to file '/var/www/html/weewx/...

2024-02-11 Thread Ton Karsten
Vince, Do you have the files generated by the weewx in the */var/www/html* folder without the many error messages I have? If not, I have no idea what to do next. Op zo 11 feb 2024 om 17:25 schreef vince : > Debian12 virtual machine for me: > >- a new installation works >- a v4 installat

Re: [weewx-user] unable to save to file '/var/www/html/weewx/...

2024-02-11 Thread vince
Everything writes to /var/www/html/weewx here. No errors. On Sunday, February 11, 2024 at 11:44:18 AM UTC-8 Ton Karsten wrote: > Vince, > > Do you have the files generated by the weewx in the */var/www/html* > folder without the many error messages I have? > If not, I have no idea what to do n

[weewx-user] Re: Install error

2024-02-11 Thread matthew wall
On Sunday, February 11, 2024 at 1:32:19 PM UTC-5 dusan.ta...@gmail.com wrote: usage: weectl.py -v|--version weectl.py -h|--help weectl.py database --help weectl.py debug --help weectl.py device --help weectl.py extension --help weectl.py import --help

[weewx-user] Extension for Sylphide

2024-02-11 Thread Ton vanN
VWK (=Vereniging van Weerkundigen) is a Dutch community of 'serious' weather observers ( with own website at vwkweb.nl ) Part of the website is generation of weathermaps, obviously needing upload of data from members' PWSes. That part of the website is a project called Sylphide. No result when s

[weewx-user] Re: Install error

2024-02-11 Thread matthew wall
On Sunday, February 11, 2024 at 1:24:13 PM UTC-5 xzei...@googlemail.com wrote: Had the same problem. The reason for this was: The file weewx in /etc/default was 0 bytes long. After removing this file, the update (from 5.0.0 to 5.0.1) was installed successfully . The update to 5.0.2 then had no

Re: [weewx-user] MQTTSubscribe and paho mqtt heads up

2024-02-11 Thread 'michael.k...@gmx.at' via weewx-user
It did a fresh pip install on bookworm and ran into this for weewx-mqtt. It will be an issue people ask about in the near future, that's for sure. vince schrieb am Sonntag, 11. Februar 2024 um 20:32:48 UTC+1: > No reason to upgrade if it works for you already and if there are no > security risk

Re: [weewx-user] MQTTSubscribe and paho mqtt heads up

2024-02-11 Thread bell...@gmail.com
Because (1) its inevitable and (2) I’ll get tired of typing the wiki url explaining this. I just hope they wait long enough (that 1.x is gone) before removing the other signatures that have changed… On Sunday 11 February 2024 at 14:23:07 UTC-5 vince wrote: > Why not stick with 1.6.1 indefinite

Re: [weewx-user] MQTTSubscribe and paho mqtt heads up

2024-02-11 Thread matthew wall
On Sunday, February 11, 2024 at 1:37:20 PM UTC-5 bell...@gmail.com wrote: It currently will not work with paho mqtt 2.0.0 or higher. rich, i too am interested in what you learn, as i will probably have to update weewx-mqtt as well. m -- You received this message because you are subscribed to

Re: [weewx-user] unable to save to file '/var/www/html/weewx/...

2024-02-11 Thread matthew wall
On Sunday, February 11, 2024 at 2:44:18 PM UTC-5 moth...@gmail.com wrote: Do you have the files generated by the weewx in the */var/www/html* folder without the many error messages I have? If not, I have no idea what to do next. please note that /var/www/html is not the same as /var/www/html/w

Re: [weewx-user] Re: WeeWX updated - Restart of Service failed

2024-02-11 Thread matthew wall
On Sunday, February 11, 2024 at 8:27:23 AM UTC-5 tke...@gmail.com wrote: Glad that worked out, but you've uncovered another problem: the error handler for crt calls a non-existent function. I've created issue #11 to track, but it's likely to

Re: [weewx-user] Re: purge / clean mysql database?

2024-02-11 Thread Nate Bargmann
Be careful throwing away archive_day-* data! On my setup with the Davis driver min and max values often occur in between archive intervals. I found that those are lost if the daily summaries have to be rebuilt from the archive table. My archive interval is 5 minutes. I did some testing a couple

Re: [weewx-user] MQTTSubscribe and paho mqtt heads up

2024-02-11 Thread bell...@gmail.com
I've pretty much settled on this approach. Minimally tested try: callback_api_version = mqtt.CallbackAPIVersion.VERSION1 self.client = mqtt.Client(callback_api_version=callback_api_version, client_id=mqtt_options['clientid'],

[weewx-user] Re: can't seem to find epel-release for fedora fc38

2024-02-11 Thread Joseph Verreau
that works. that is the rpm option. rpm is happy, dnf distro-sync is happy and weewx is reporting to my configured services. I think the yum.dnf --skip-broken will just pass on the install/update. On Sunday, February 11, 2024 at 12:41:35 PM UTC-5 matthew wall wrote: > joe, > > the epel

Re: [weewx-user] MQTTSubscribe and paho mqtt heads up

2024-02-11 Thread bell...@gmail.com
FWIW Successfully ran integration tests on Ubuntu 22, python 3.12 with paho-mqtt v2.0.0 and v1.6.1. On Sunday 11 February 2024 at 16:49:25 UTC-5 bell...@gmail.com wrote: > I've pretty much settled on this approach. Minimally tested > > try: > callback_api_version = mqtt.Call

Re: [weewx-user] updated to 5.0.1 still no joy

2024-02-11 Thread Glen N
I was having a no start problem after upgrading RPi3B running DietPi. I tried Tom's suggestion and it fixed the problem. Prior to the "fix" my log file showed: -- Journal begins at Mon 2024-02-12 11:47:21 AEDT, ends at Mon 2024-02-12 12:40:34 AEDT. -- Feb 12 11:47:23 SystemName systemd[1]: Start

[weewx-user] Trouble with new weewx update

2024-02-11 Thread Harley Welsh
I am using an acurite atlas 7 in 1 weather station and am following the instructions on Matthew walls sdr rpi recipe and similarly ChrisM510 on Acurite Atlas on WeeWX RTL SDR RTL_433 RPi on GitHub. Before the weewx 5.0 update I had everything in these instructions working and was using the wee

[weewx-user] Re: Trouble with new weewx update

2024-02-11 Thread matthew wall
hi! > I blacklisted the kernel module dvb_usb_rtl28xxu in /etc/modprobe.d/blacklist using sudo nano > /etc/modprobe.d/blacklist and adding in blacklist dvb_usb_rtl28xxu but this didn't work. you might have to unplug then replug the device. worst case you can reboot. but be sure there is no

Re: [weewx-user] MQTTSubscribe and paho mqtt heads up

2024-02-11 Thread Graham Knights
I just migrated my install to a new machine and was pulling my hair out trying to figure this out until I saw this today, thanks @gary for figuring this out. I've edited the weewx wiki to direct new setups to install the v1.6.1 paho-mqtt until the original mqtt extension is updated. On Sunda

[weewx-user] Re: Is there any way to tell dpkg/apt that you are running a weewx-multi via systemd?

2024-02-11 Thread 'Cameron D' via weewx-user
Thanks Matthew, I just wasn't sure if I was missing something with my eccentric installation. Cameron. On Monday 12 February 2024 at 12:05:10 am UTC+10 matthew wall wrote: > hi cameron, > > i'm working on this, hopefully to appear in the 5.0.3 release (or 5.1 if > tom and gary are faster on the

Re: [weewx-user] Re: purge / clean mysql database?

2024-02-11 Thread 'michael.k...@gmx.at' via weewx-user
Nate, this is what https://weewx.com/docs/5.0/utilities/weectl-database/#recalculate-daily-summary-weights is for. Imagine you manipulate the database an know, the average of a certain type will change after that, the highs an lows aren't affected, e.g. you backfill a gap in the database for

Re: [weewx-user] Which driver should i target for my custom weather station?

2024-02-11 Thread 'Pavocracy' via weewx-user
So just to clarify, can weewx pull weather data from mqtt? I dont see a driver for that. I can see there is community projects for enable both subscribing to mqtt and also to publish to mqtt for data it already has in its own database, but i cant find any documentation or examples of this kind