Re: [weewx-development] Format of weewx-variables/datafields for arithmetic (service development)?

2024-05-04 Thread Joel Bion
I guess this is as good a time as any to ask if None is the way Weewx represents a nonexistent element of data for the result of a query to any of its API functions. For example, if I want the barometric pressure at 9am, and no pressure was recorded around that time, is it None that would be

[weewx-development] DST start/stop in WeeWX

2024-03-11 Thread Joel Bion
In my country, we changed to DST at 2AM this past Sunday early morning. I’m assuming that in the database, the timestamps are all UTC. It’s the display of the information that I am wondering about, because the graphs show local times. I live in the Pacific Time Zone in North America. Right

Re: [weewx-development] V5.0.0 available

2024-01-14 Thread Joel Bion
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!JoelSent from my iPhoneOn Jan 14, 2024, at 2:25 PM, Tom Keffer wrote:A year in the making, V5 is

Re: [weewx-development] Re: WU Updates and DNS

2024-01-09 Thread Joel Bion
the WeeWX lookups.On Thursday, January 4, 2024 at 2:49:52 PM UTC-5 Joel Bion wrote:Further thoughts:When I think of even the more complexly configured servers, they may support email, web services, things like that. This means they are, for network use purposes, frequently responsive to a remote

Re: [weewx-development] Re: WU Updates and DNS

2024-01-04 Thread Joel Bion
Further thoughts:When I think of even the more complexly configured servers, they may support email, web services, things like that. This means they are, for network use purposes, frequently responsive to a remote request vs. primarily generative of traffic for their own reasons.Many data

Re: [weewx-development] WU Updates and DNS

2024-01-04 Thread Joel Bion
using tools like “dig”?Sent from my iPhoneOn Jan 4, 2024, at 8:06 AM, Joel Bion wrote:Should WeeWX, or any application, be aware of how DNS gets the address, including the use of a cache? I tend to think “no” as that breaks “layering” (leaving the network details out of the application

Re: [weewx-development] WU Updates and DNS

2024-01-04 Thread Joel Bion
Should WeeWX, or any application, be aware of how DNS gets the address, including the use of a cache? I tend to think “no” as that breaks “layering” (leaving the network details out of the application, in this case)Usually you get the operating system’s networking stack, or DNS supporting

Re: [weewx-development] Use tags in Python extension code?

2023-12-25 Thread Joel Bion
Indeed! I share your appreciation for Weewx as a Python example. I’m retired, so didn’t have a “need” to learn Python, but did object oriented programming in Smalltalk and then C++ a long while ago, but ended up entering the management track, for good or ill. Nearing retirement, I set up WeeWX on

Re: [weewx-development] Re: V5.0.0b17 available

2023-12-15 Thread Joel Bion
I sympathize 100% with this. I’ll drop my point then :) > Joel - print to 'where' ? They how do you tell them which tool to use and > how to use it ? There is a limit to how much hand-holding makes sense. > > The top paragraphs in https://www.weewx.com/docs/5.0/usersguide/installing/ >

Re: [weewx-development] Re: V5.0.0b17 available

2023-12-15 Thread Joel Bion
install something. It’s annoying. Sent from my iPhoneOn Dec 15, 2023, at 11:59 AM, Joel Bion wrote:That’s why one option I was suggesting was to just print out the location of the log vs its contents. The idea is to avoid requiring the user to figure out where their log is located, and just either

Re: [weewx-development] Re: V5.0.0b17 available

2023-12-15 Thread Joel Bion
That’s why one option I was suggesting was to just print out the location of the log vs its contents. The idea is to avoid requiring the user to figure out where their log is located, and just either have a tool tell them, or just grab the current log from wherever it was stored and dump it out.

Re: [weewx-development] Re: V5.0.0b17 available

2023-12-15 Thread Joel Bion
Here’s a thought:Why not write a short bash or Python script that looks to see where weewx is logging and when finding it either:1) prints out help text telling the user where to find itOr2) starts dumping the log to stdout. And on error, reports “can’t find it”Is this reasonable? Or are the

Re: [weewx-development] Re: V5.0.0b17 available

2023-12-14 Thread Joel Bion
Good point re: checking package list. I locally need requests and cryptography. Sent from my iPhone > On Dec 14, 2023, at 4:23 PM, Vince Skahan wrote: > > Also - reminder to others - if you're had an old weewx-venv remember to also > install your added python modules. For me here, I add

Re: [weewx-development] WeeWX 5.0.0b17 removes existing ~/weewx-data/scripts directory

2023-12-13 Thread Joel Bion
Is it possible to have a formally defined place where users can put in their local customizations? Advantages:1) location is standardized for both users and developers. 2) because of (1), it is a directory that will be known to be preserved across upgrades.3) because of (1), an upgrade could look

Re: [weewx-development] Re: PostgreSQL support, which branch to target?

2023-12-03 Thread Joel Bion
Sent from my iPhoneOn Dec 3, 2023, at 7:32 AM, Tom Keffer wrote:I'll be merging the V5 branch into the development branch in the next few days, but target the V5 branch for now.As I recall, the "case sensitivity" problem with Postgres is that in order to achieve case-insensitivity, it converts

Re: [weewx-development] Re: Driver Installation in Version 5

2023-11-26 Thread Joel Bion
Typo in my note… /home/python —> /home/weewx Sent from my iPhoneOn Nov 26, 2023, at 2:48 PM, Joel Bion wrote:Hi -I upgraded my setup from 4 to 5 around the time beta 15 came out. The work doing that wasn’t hard at all.The case study I am referring to is _not_ a case study for telling how us

Re: [weewx-development] Re: Driver Installation in Version 5

2023-11-26 Thread Joel Bion
into the v5 data treethis time you can enable your uploaders go for smoke and run v5 nowtweak your webserver setup to point to the v5 public_html directoryverify you can surf to your v5 webCheck your logs.  If good, go for the victory pizza.On Sunday, November 26, 2023 at 11:41:11 AM UTC-8 Joel Bi

Re: [weewx-development] Re: Driver Installation in Version 5

2023-11-26 Thread Joel Bion
I seriously think there is a formal case study that needs to be written about the challenges of moving WeeWX to the current Python installation model. There’s a lesson here for not just the Python developers but others about the difficulty of this transition, because the way WeeWX did things (all

Re: [weewx-development] MySQL 8.1 starts giving a deprecation warning for mysql_native_password authentication mechanism

2023-07-22 Thread Joel Bion
from my iPhoneOn Jul 22, 2023, at 2:30 PM, Vince Skahan wrote:It would be nice if you'd post a followup here so the next person knows your solutionsOn Saturday, July 22, 2023 at 7:07:18 AM UTC-7 Joel Bion wrote:Well, after all that it took 5 minutes to add the correct Python modules, 5 minutes

Re: [weewx-development] MySQL 8.1 starts giving a deprecation warning for mysql_native_password authentication mechanism

2023-07-22 Thread Joel Bion
Well, after all that it took 5 minutes to add the correct Python modules, 5 minutes to learn the right SQL commands to change the password authentication mechanism and about 15 minutes to reboot and test. Easier than I thought!Sent from my iPhoneOn Jul 21, 2023, at 4:02 PM, Tom Keffer wrote:On

Re: [weewx-development] Re: MySQL 8.1 starts giving a deprecation warning for mysql_native_password authentication mechanism

2023-07-21 Thread Joel Bion
MariaDB is a great overall alternative, but on reading the MySQL 8.1 compatibility document, I decided rather than shifting database providers to let me keep using a weaker authentication scheme, it is probably a good time to leave behind the weaknesses of the native MySQL authentication plug-in

Re: [weewx-development] Pillow 10.0.0 Released (2023-07-01) BREAKS WeeWX V5.0.0b5

2023-07-01 Thread Joel Bion
Is it “PIL.ImageFont.Layout.BASIC” now?On Jul 1, 2023, at 3:11 PM, pa...@pauland.net wrote:New test install using pip on Debian 12.python3 -m pip install weewxThis installed Pillow 10.0.0 which was just released (2023-07-01)WeeWX dies with  unrecoverable exception in

Re: [weewx-development] error: can't find Rust compiler

2023-05-29 Thread Joel Bion
Should a 64 bit O/S be a WeeWX prerequisite?Sent from my iPhoneOn May 29, 2023, at 10:34 AM, Lucas Heijst wrote:I started all over, with the 64-bit version of Raspberri PI OS Light (64-bit)  and this time all went OK1. Fresh install of Raspberri PI OS Light (64-bit)2. Fresh install of weewx:sudo

[weewx-development] Real-time readings

2023-03-29 Thread Joel Bion
Is it possible, using Python in Weewx, to obtain the real-time reading from the weather station? What I want to do is, for someone pulling up my station’s page, show the wind speed, rain rate, temp etc, AT THAT MOMENT - vs. from a snapshot taken at the last every-five-minute report generation

Re: [weewx-development] Re: Can Weewx '5' install on top of itself? (Explained below)

2023-02-18 Thread Joel Bion
I’d like to apologize for the somewhat scattered earlier email. Sent in a hurry, and not cleaned up.My question is based on my particular situation: I have a custom build of Linux, based on (but diverging from) a build-it-yourself model called Linux From Scratch. I’ve also built a series of

Re: [weewx-development] v5.0.0a13 Observations

2023-01-29 Thread Joel Bion
> > The only possibility is to come up with a shell script that invokes pip, then > follows up with "weectl station upgrade". Let me think about that. > -- Exactly. IMO, trying to shoehorn everything into the capabilities of “pip/wheel” with its model of virtual environments leads to

Re: [weewx-development] Re: Some wee_ctl thoughts from the draft wiki page

2022-11-08 Thread Joel Bion
Greg’s note conveys what I was trying to say about system applications better than I could. The truth is, if Weewx decides to go the “stuff in installing user’s home directory” route - I’ll just make it installed by the Weewx user, which gets much (not all) of what I want. I do believe that the

Re: [weewx-development] Re: Some wee_ctl thoughts from the draft wiki page

2022-11-08 Thread Joel Bion
On Nov 8, 2022, at 5:48 AM, Doug Jenkins wrote: > >  I do think it should be considered to install the configuration files in > the user's home directory as that would be a secure way to manage the tool > and would be a lot easier for new users to perform backups (eg backup > weewx-data/

Re: [weewx-development] config file quoting and whitespace changes during upgrade

2022-11-07 Thread Joel Bion
One other question: is it possible to ask the user, instead of running setup.py, to run a script located in the weewx 'top level directory' that does the following: (a) uses the new form Python install/upgrade (b) then runs separate code (even if it's in python) to upgrade the .ini file, put

Re: [weewx-development] config file quoting and whitespace changes during upgrade

2022-11-06 Thread Joel Bion
Everything I’ve wanted to do in weeex.conf and skin.conf could only be done via a text editor. The current ini format (or toml format) is much easier to edit than json or yaml.For example: I’ve been writing an Alexa skill to use data that Weewx writes out - among other things - to announce weather

Re: [weewx-development] config file quoting and whitespace changes during upgrade

2022-11-06 Thread Joel Bion
..there's also this interesting page: https://whynothugo.nl/journal/2022/07/26/meson-for-python-applications/ On Sun, Nov 6, 2022 at 2:57 PM Joel Bion wrote: > I've been wondering about the big changeover that will occur with Python > 3.12 (the removal of distutils). I use three pa

Re: [weewx-development] config file quoting and whitespace changes during upgrade

2022-11-06 Thread Joel Bion
I've been wondering about the big changeover that will occur with Python 3.12 (the removal of distutils). I use three packages that are Python applications that need to configure things at a system level: fail2ban, ufw, weewx. On the ufw git site, this page has a rather interesting conversation

Re: [weewx-development] config file quoting and whitespace changes during upgrade

2022-11-06 Thread Joel Bion
If there’s a new format, I’d much prefer TOML vs. JSON/YAML. TOML makes some improvements over ini files, without being an easy-for-humans-to-make-mistakes format like JSON.But it sounds like the issue is more fundamental- that the issue has something to do with the new Python package installer

Re: [weewx-development] config file quoting and whitespace changes during upgrade

2022-11-06 Thread Joel Bion
I’ve also noticed this. Sent from my iPhone > On Nov 6, 2022, at 4:55 AM, Greg Troxel wrote: > >  > (I have been running WeeWX since the very end of 2017, and updated a few > times. I'm building with setup.py on NetBSD, but I'm quite used to python.) > > There is some config file auto

Re: [weewx-development] How about a length property in TimespanBinder?

2022-11-05 Thread Joel Bion
I love the idea but can it be called something more specific to time? (Such as “duration”?)JoelSent from my iPhoneOn Nov 5, 2022, at 5:12 AM, Tom Keffer wrote:Good idea. Wouid you like to submit a PR?On Sat, Nov 5, 2022 at 12:35 AM Karen K wrote:Months are not always of the

Re: [weewx-development] WeeWX V4.8.0 available

2022-04-22 Thread Joel Bion
Is 4.8.0 considered fully released? I see the note below, but when examining weewx.com/downloads, it still shows 4.7.0 and 4.8.0 isn’t in the released_versions directory, but is instead in the development_versions directory. Thanks, Joel Sent from my iPhone > On Apr 21, 2022, at 5:56 PM,

Re: [weewx-development] Re: V4.6.0 beta 3

2021-10-16 Thread Joel Bion
Here's the output from my system (VP2) using a script similar in spirit to that provided by Vince. It's odd that some field's i'd expect, like wind direction, appear to not show up about half the time, but that is probably on my end. But it doesn't appear I am getting any spurious leaf or such

Re: [weewx-development] Alpha version of 4.6.0 available

2021-05-24 Thread Joel Bion
Wow - I love the two almanac additions! Thanks! Sent from my iPhone > On May 24, 2021, at 10:10 AM, Tom Keffer wrote: > >  > The key new feature is improved internationalization. The Seasons skin is > available in English, German, French, Greek, and Thai right out of the box. > I'd like to

Re: [weewx-development] FTP Upload

2021-03-09 Thread Joel Bion
FTP is full of problems as far as security goes, not the least of which is passwords get sent as cleartext across the internet. This is one of many reasons why ftp/telnet are often disabled, and instead sftp and ssh are used instead. I am hoping Weewx offers SFTP uploads, but I never have

Re: [weewx-development] Licensing question

2021-03-05 Thread Joel Bion
Yup. Further, the goal of the MIT and GPL licenses are very different, as far as I understand it (and I am not an expert here, so could be totally wrong!) but from my limited understanding, the MIT license is good for people who want their code to be used by as many as possible. The GPL license

Re: [weewx-development] Opinions solicited on best way to add this particular new functionality

2021-01-01 Thread Joel Bion
Wow - this fits perfectly. Xtypes extension it is then! -Joel > On Jan 1, 2021, at 2:15 PM, Tom Keffer wrote: > >  > Perfect application for an xtypes extension. > >> On Fri, Jan 1, 2021 at 7:58 AM jpb...@gmail.com wrote: >> I wish to add the Chandler Burning Index (CBI) to WeeWX. >> >>

Re: [weewx-development] Re: Beta of V4.3.0 available

2020-12-31 Thread Joel Bion
Is there a way to keep to the 5 months, but detect and recover from any archive records being missed? -Joel > On Dec 31, 2020, at 3:25 AM, gjr80 wrote: > > I guess your Fit-PC has a bit more oomph than my Rpi3B. You probably could > drop the five months to something smaller, but you know as

Re: [weewx-development] My experience upgrading from Weewx 3.92 to Weewx 4.0.0b12 on a system with both Python-2.7.17 and Python-3.8.1

2020-02-17 Thread Joel Bion
just haven't had the uninterrupted time to think about it in these 2 cases. -Joel On Monday, February 17, 2020 at 8:18:36 AM UTC-8, Vince Skahan wrote: > > On Monday, February 17, 2020 at 7:23:26 AM UTC-8, Joel Bion wrote: > >> Most of my time was spent scanning through the

Re: [weewx-development] My experience upgrading from Weewx 3.92 to Weewx 4.0.0b12 on a system with both Python-2.7.17 and Python-3.8.1

2020-02-17 Thread Joel Bion
ith the above steps, you won’t need to hand edit the scripts to use > python3. > > To view the WeeWX 4 setup guide in HTML, click the link below: > > > https://htmlpreview.github.io/?https://raw.githubusercontent.com/weewx/weewx/master/docs/setup.htm > > > On Feb 17, 2020

[weewx-development] My experience upgrading from Weewx 3.92 to Weewx 4.0.0b12 on a system with both Python-2.7.17 and Python-3.8.1

2020-02-17 Thread Joel Bion
My system still has Python2 installed. I also have Python-3.8.1. Here's what I had to do to get weewx 4.0.0b12 working on my system, which supports both python2 and python3 simultaneously: 1. Since "python" on my system resolves to Python2 - I had to change the executable scripts in