[weewx-user] Re: READ THIS!

2024-01-26 Thread gjr80
The problem is encountered when using the extension installer/uninstaller 
weectl 
extension. If you install WeeWX v5 via a package install and then use weectl 
extension install to install an extension, some or all of the extension 
files may be installed in an incorrect location. At this stage nothing 
destructive has occurred to your system other than the extension files 
perhaps being in the wrong location (and almost certainly the extension 
itself will not work with WeeWX - though WeeWX functions normally). If you 
then happen to uninstall the extension (perhaps because it seemingly does 
not work) with weectl extension uninstall that is when the uninstaller 
might delete system files.

So in these circumstances we recommend against installing or uninstalling 
extensions with weectl extension. Manual installs/uninstalls of extensions 
will be fine, it is just weectl extension that experiences problems. Also, 
if you have upgraded from an earlier WeeWX package install and the 
extension concerned was already installed (ie it was not installed using weectl 
extension) then you will be fine.

This issue will be fixed in v5.0.1 which should be released real soon.

Gary 

On Saturday 27 January 2024 at 16:09:06 UTC+10 abcor...@gmail.com wrote:

> I'm using weewx 5.0.0-1 (which I upgraded through Debian apt) and the 
> GW1000 driver. Does that mean I should not install the driver via 
> wee_extension until a new version comes out?
>
> Thanks...
>
> Andrew 
> On Wednesday, January 17, 2024 at 11:30:24 AM UTC-7 Tom Keffer wrote:
>
>> We have discovered a potentially serious bug. The specific situation is 
>> as follows:
>>
>>- A V4.x configuration file;
>>- Package installer;
>>- Install an extension;
>>- Uninstall the extension.
>>
>> Under these circumstances, the extension uninstaller could remove system 
>> files!
>>
>> If you are using a V4.x configuration file, please do not install any 
>> extensions until we get a fix out.
>>
>> Apologies.
>>
>> -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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/9c161ed3-7b0c-4495-9e67-cfe4b673ab1en%40googlegroups.com.


[weewx-user] Re: READ THIS!

2024-01-26 Thread Andrew Cornwall
I'm using weewx 5.0.0-1 (which I upgraded through Debian apt) and the 
GW1000 driver. Does that mean I should not install the driver via 
wee_extension until a new version comes out?

Thanks...

Andrew 
On Wednesday, January 17, 2024 at 11:30:24 AM UTC-7 Tom Keffer wrote:

> We have discovered a potentially serious bug. The specific situation is as 
> follows:
>
>- A V4.x configuration file;
>- Package installer;
>- Install an extension;
>- Uninstall the extension.
>
> Under these circumstances, the extension uninstaller could remove system 
> files!
>
> If you are using a V4.x configuration file, please do not install any 
> extensions until we get a fix out.
>
> Apologies.
>
> -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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/d9a231c5-e194-4c78-a451-606b2cc222ebn%40googlegroups.com.


Re: [weewx-user] Integrate rain24 with Packetsloop

2024-01-26 Thread Tom Keffer
If an observation type never gets reset to zero, you have two choices.
1. Save the value. If you want to know daily use, take the difference of
the value.
2. Save the difference. That is, the change in the value over an archive
period. If you want to know daily use, you would sum all the small deltas.
This is like rain

See the discussion *Accumulated vs delta energy
*
in
the README of the Brultech driver for the pros and cons of the two
approaches.

It is not necessary to save "dayRain". WeeWX mostly uses "rain". Besides,
as you note, it can always be calculated.



On Fri, Jan 26, 2024 at 7:06 AM Remy Lavabre  wrote:

> And one more question
> Is it absolutely necessary to create a "dayRain" field in addition to the
> "rain" field in the weewx.sdb database?
> If the database only contains the [rain] field but the Weewx driver
> returns a "dayRain" field (cumulative rain over 24 hours since midnight)
> with a real value in each packetloop, the class [[Delta]] [[ [rain]]] input
> = dayRain will it work??
> (the accumulation of rain since midnight is useless to me in a database
> field since it is easily calculated)
> Sorry for all the questions...and thanks again! ;-)
>
> Le vendredi 26 janvier 2024 à 15:46:04 UTC+1, Remy Lavabre a écrit :
>
>> Hello Tom and thank you for your response.
>>
>>  [StdWXCalculate]
>>  [[Calculations]]
>>  ...
>>  [[Delta]]
>>  [[[rain]]]
>>  input = dayRain
>>
>> This will calculate the rain difference between two records in weewx sql
>> based on the principle that the counter is reset to zero at midnight ->
>> PERFECT FOR THE RAIN 24H !
>>
>> Small additional question: if we wish to constantly calculate the
>> difference between two records values of a meter which *never* resets to
>> zero (such as an electricity or water meter), how should we proceed?
>>
>> THANKS
>>
>> Le jeudi 18 janvier 2024 à 14:05:10 UTC+1, Tom Keffer a écrit :
>>
>>> Unfortunately (for you), WeeWX mostly uses observation type "rain", the
>>> amount of rain that fell since the last loop packet (what you are calling
>>> "instantaneous rain").
>>>
>>> You should assign the rain since midnight to type "dayRain".
>>>
>>> Then calculate "rain" as the difference between successive
>>> "dayRain" values. While this is a pretty simple calculation, there is an
>>> xtype that can do it for you.  See class Delta in weewx.wxxtypes
>>> .
>>> To use it, add this to weewx.conf:
>>>
>>> [StdWXCalculate]
>>> [[Calculations]]
>>> ...
>>> [[Delta]]
>>> [[[rain]]]
>>> input = dayRain
>>>
>>>
>>>
>>>
>>> On Wed, Jan 17, 2024 at 11:47 PM Remy Lavabre 
>>> wrote:
>>>
 Good morning,

 I created a [driver] for weewx to retrieve data from the Awekas API (my
 Bresser weather station does not have a USB port).

 This works but regarding the rain, it is not the instantaneous rain
 (from a packetloop) that we recover but the rain over 24 hours since
 midnight.
 Is there a "simple" way to tell WeeWX that the packetsloop rain data
 corresponds to the cumulative rain since midnight and not the rain that
 fell during the data retrieval interval (the time gap between two
 packetsloops) ?

 Thank you so much...

 --
 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/9887101f-fcc1-45ce-948e-e03429bf7baan%40googlegroups.com
 
 .

>>> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/796eb84f-ad09-41bf-ad90-202ad6f05773n%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEAvE4%2BRLHNki2nnzUMMFd%2Bh8uOoiB4HygnR%2BmVB6eJt8Q%40mail.gmail.com.


Re: [weewx-user] weewx.drivers.vantage: Socket error while opening port 22222

2024-01-26 Thread vince
On Friday, January 26, 2024 at 9:33:35 AM UTC-8 Bill Hattel wrote:

I'm having the same issue after an upgrade to 5.0.0-1. I inspected the 
configuration file even though I selected no changes and found everything 
was correct. I also completely removed weewx and reinstalled it with a new 
configuration file. I can communicate with the Davis console through 
WeatherLink with the same settings and interface with no issue. The port is 
closed when WeatherLink exits.

Davis Vantage Vue
Raspberry PI
NetBurner SBL2E Dual Serial to Ethernet converter
Homemade RS-232 level shifter.


Hmmmthat's pretty unusual/exotic hardware connecting the Vue to the 
pi
 

Jan 25 19:44:10 raspberrypi weewxd[298]: ERROR weewx.drivers.vantage: 
Socket error while opening port 23 to ethernet host 192.168.50.39.
    this line 
Jan 25 19:44:10 raspberrypi weewxd[298]: ERROR weewx.engine: Import of 
driver failed: [Errno 101] Network is unreachable ()
]
Jan 25 19:44:10 raspberrypi weewxd[298]: CRITICAL __main__: Unable to load 
driver: [Errno 101] Network is unreachable
Jan 25 19:44:10 raspberrypi weewxd[298]: CRITICAL __main__:  
 Exiting...
Jan 25 19:44:10 raspberrypi systemd[1]: weewx.service: Main process exited, 
code=exited, status=4/NOPERMISSION


Network unreachable is a different issue than others are having. 

What's your weewx system ip ?  What is the ip you are trying to talk to ?   
If they're on different networks you are possibly missing a route on your 
weewx system.   From the weewx system you might try "traceroute -n 
192.168.50.39" if the destination address in your logs is correct.

This one looks like a routing or packet filter issue on a router in between 
the weewx box and the serial-to-ethernet converter 'if' they are on 
different subnets

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/4bf4a13c-3899-4f36-8b8e-9e2783efd726n%40googlegroups.com.


Re: [weewx-user] weewx.drivers.vantage: Socket error while opening port 22222

2024-01-26 Thread Bill Hattel
I'm having the same issue after an upgrade to 5.0.0-1. I inspected the 
configuration file even though I selected no changes and found everything 
was correct. I also completely removed weewx and reinstalled it with a new 
configuration file. I can communicate with the Davis console through 
WeatherLink with the same settings and interface with no issue. The port is 
closed when WeatherLink exits.

Davis Vantage Vue
Raspberry PI
NetBurner SBL2E Dual Serial to Ethernet converter
Homemade RS-232 level shifter.

-- Logs begin at Thu 2024-01-25 19:43:48 MST, end at Fri 2024-01-26 
09:03:07 MST. --
Jan 25 19:44:05 raspberrypi systemd[1]: Started WeeWX.
Jan 25 19:44:10 raspberrypi weewxd[298]: INFO __main__: Initializing weewxd 
version 5.0.0
Jan 25 19:44:10 raspberrypi weewxd[298]: INFO __main__: Command line: 
/usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
Jan 25 19:44:10 raspberrypi weewxd[298]: INFO __main__: Using Python 3.7.3 
(default, Oct 11 2023, 09:51:27)
 [GCC 8.3.0]
Jan 25 19:44:10 raspberrypi weewxd[298]: INFO __main__: Located at 
/usr/bin/python3
Jan 25 19:44:10 raspberrypi weewxd[298]: INFO __main__: Platform 
Linux-5.10.103+-armv6l-with-debian-10.13
Jan 25 19:44:10 raspberrypi weewxd[298]: INFO __main__: Locale: 
'en_GB.UTF-8'
Jan 25 19:44:10 raspberrypi weewxd[298]: INFO __main__: Entry path: 
/usr/share/weewx/weewxd.py
Jan 25 19:44:10 raspberrypi weewxd[298]: INFO __main__: WEEWX_ROOT: 
/etc/weewx
Jan 25 19:44:10 raspberrypi weewxd[298]: INFO __main__: Configuration file: 
/etc/weewx/weewx.conf
Jan 25 19:44:10 raspberrypi weewxd[298]: INFO __main__: User module: 
/etc/weewx/bin/user
Jan 25 19:44:10 raspberrypi weewxd[298]: INFO __main__: Debug: 0
Jan 25 19:44:10 raspberrypi weewxd[298]: INFO weewx.engine: Loading station 
type Vantage (weewx.drivers.vantage)
Jan 25 19:44:10 raspberrypi weewxd[298]: ERROR weewx.drivers.vantage: 
Socket error while opening port 23 to ethernet host 192.168.50.39.
    this line 
Jan 25 19:44:10 raspberrypi weewxd[298]: ERROR weewx.engine: Import of 
driver failed: [Errno 101] Network is unreachable ()
Jan 25 19:44:10 raspberrypi weewxd[298]: CRITICAL weewx.engine:  
 Traceback (most recent call last):
Jan 25 19:44:10 raspberrypi weewxd[298]: CRITICAL weewx.engine:    
 File "/usr/share/weewx/weewx/drivers/vantage.py", line 354, in openPort
Jan 25 19:44:10 raspberrypi weewxd[298]: CRITICAL weewx.engine:    
   self.socket.connect((self.host, self.port))
Jan 25 19:44:10 raspberrypi weewxd[298]: CRITICAL weewx.engine:  
 OSError: [Errno 101] Network is unreachable
Jan 25 19:44:10 raspberrypi weewxd[298]: CRITICAL weewx.engine: 
Jan 25 19:44:10 raspberrypi weewxd[298]: CRITICAL weewx.engine:  
 During handling of the above exception, another exception occurred:
Jan 25 19:44:10 raspberrypi weewxd[298]: CRITICAL weewx.engine: 
Jan 25 19:44:10 raspberrypi weewxd[298]: CRITICAL weewx.engine:  
 Traceback (most recent call last):
Jan 25 19:44:10 raspberrypi weewxd[298]: CRITICAL weewx.engine:    
 File "/usr/share/weewx/weewx/engine.py", line 115, in setupStation
Jan 25 19:44:10 raspberrypi weewxd[298]: CRITICAL weewx.engine:    
   self.console = loader_function(config_dict, self)
Jan 25 19:44:10 raspberrypi weewxd[298]: CRITICAL weewx.engine:    
 File "/usr/share/weewx/weewx/drivers/vantage.py", line 32, in loader
Jan 25 19:44:10 raspberrypi weewxd[298]: CRITICAL weewx.engine:    
   return VantageService(engine, config_dict)
Jan 25 19:44:10 raspberrypi weewxd[298]: CRITICAL weewx.engine:    
 File "/usr/share/weewx/weewx/drivers/vantage.py", line 2046, in __init__
Jan 25 19:44:10 raspberrypi weewxd[298]: CRITICAL weewx.engine:    
   Vantage.__init__(self, **config_dict[DRIVER_NAME])
Jan 25 19:44:10 raspberrypi weewxd[298]: CRITICAL weewx.engine:    
 File "/usr/share/weewx/weewx/drivers/vantage.py", line 536, in __init__
Jan 25 19:44:10 raspberrypi weewxd[298]: CRITICAL weewx.engine:    
   self.port.openPort()
Jan 25 19:44:10 raspberrypi weewxd[298]: CRITICAL weewx.engine:    
 File "/usr/share/weewx/weewx/drivers/vantage.py", line 359, in openPort
Jan 25 19:44:10 raspberrypi weewxd[298]: CRITICAL weewx.engine:    
   raise weewx.WeeWxIOError(ex)
Jan 25 19:44:10 raspberrypi weewxd[298]: CRITICAL weewx.engine:  
 weewx.WeeWxIOError: [Errno 101] Network is unreachable
Jan 25 19:44:10 raspberrypi weewxd[298]: CRITICAL __main__: Unable to load 
driver: [Errno 101] Network is unreachable
Jan 25 19:44:10 raspberrypi weewxd[298]: CRITICAL __main__:  
 Exiting...
Jan 25 19:44:10 raspberrypi systemd[1]: weewx.service: Main process exited, 
code=exited, status=4/NOPERMISSION
Jan 25 19:44:10 raspberrypi systemd[1]: weewx.service: Failed with result 
'exit-code'.

Is it possible to roll back a version?

Thanks,
Bill
On Sunday, 

[weewx-user] Re: Aeris forcast with belchertown

2024-01-26 Thread bchap...@gmail.com
So, I've solved my problem.  If you're using the aeris free account on 
their contributor plan, do not turn on aeris maps in the belchertown 
settings.  I don't know what has changed on their end because I have had 
the same configuration for many years, but now the map will make thousands 
of hits per hour and they will shut you down when you exceed your allowed 
5,000 hits.  I turned off the aeris maps and all looks well so far.

On Wednesday, January 24, 2024 at 11:08:16 PM UTC-5 bchap...@gmail.com 
wrote:

> I've done that.  Should have mentioned in original post.  I've changed my 
> password, deleted and created a new app.  My hit count reset at 1900EST and 
> within an hour I was at ~600 hits, and that's with forcasting turned off in 
> the conf file.  Aeris tech support has not been able to solve this.  I'm 
> thinking I may need to delete my account with them and re-create a new 
> one.  
>
> On Wednesday, January 24, 2024 at 7:38:45 PM UTC-5 bchap...@gmail.com 
> wrote:
>
>> Is anyone else having problems with aeris forcasting?  For the past few 
>> weeks my access credits have been running out resulting in my webpage not 
>> being updated.  I've turned off forcasting in weewx.conf and when I watch 
>> my activity on aeris the hits keep coming.  I don't know who is making 
>> these requests.  My aeris credits are racking up at an average of a few 
>> hundred an hour, even with forcasting turned off.  I've contacted aeris 
>> tech support which has not been helpful.
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/1bf1bb9e-8774-4b4f-a9c5-1fb3eaab4be0n%40googlegroups.com.


Re: [weewx-user] Integrate rain24 with Packetsloop

2024-01-26 Thread Remy Lavabre
And one more question
Is it absolutely necessary to create a "dayRain" field in addition to the 
"rain" field in the weewx.sdb database?
If the database only contains the [rain] field but the Weewx driver returns 
a "dayRain" field (cumulative rain over 24 hours since midnight) with a 
real value in each packetloop, the class [[Delta]] [[ [rain]]] input = 
dayRain will it work??
(the accumulation of rain since midnight is useless to me in a database 
field since it is easily calculated)
Sorry for all the questions...and thanks again! ;-)

Le vendredi 26 janvier 2024 à 15:46:04 UTC+1, Remy Lavabre a écrit :

> Hello Tom and thank you for your response.
>
>  [StdWXCalculate]
>  [[Calculations]]
>  ...
>  [[Delta]]
>  [[[rain]]]
>  input = dayRain
>
> This will calculate the rain difference between two records in weewx sql 
> based on the principle that the counter is reset to zero at midnight -> 
> PERFECT FOR THE RAIN 24H !
>
> Small additional question: if we wish to constantly calculate the 
> difference between two records values of a meter which *never* resets to 
> zero (such as an electricity or water meter), how should we proceed?
>
> THANKS
>
> Le jeudi 18 janvier 2024 à 14:05:10 UTC+1, Tom Keffer a écrit :
>
>> Unfortunately (for you), WeeWX mostly uses observation type "rain", the 
>> amount of rain that fell since the last loop packet (what you are calling 
>> "instantaneous rain").
>>
>> You should assign the rain since midnight to type "dayRain".
>>
>> Then calculate "rain" as the difference between successive 
>> "dayRain" values. While this is a pretty simple calculation, there is an 
>> xtype that can do it for you.  See class Delta in weewx.wxxtypes 
>> . 
>> To use it, add this to weewx.conf:
>>
>> [StdWXCalculate]
>> [[Calculations]]
>> ...
>> [[Delta]]
>> [[[rain]]]
>> input = dayRain
>>
>>
>>
>>
>> On Wed, Jan 17, 2024 at 11:47 PM Remy Lavabre  
>> wrote:
>>
>>> Good morning,
>>>
>>> I created a [driver] for weewx to retrieve data from the Awekas API (my 
>>> Bresser weather station does not have a USB port).
>>>
>>> This works but regarding the rain, it is not the instantaneous rain 
>>> (from a packetloop) that we recover but the rain over 24 hours since 
>>> midnight.
>>> Is there a "simple" way to tell WeeWX that the packetsloop rain data 
>>> corresponds to the cumulative rain since midnight and not the rain that 
>>> fell during the data retrieval interval (the time gap between two 
>>> packetsloops) ?
>>>
>>> Thank you so much...
>>>
>>> -- 
>>> 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/9887101f-fcc1-45ce-948e-e03429bf7baan%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/796eb84f-ad09-41bf-ad90-202ad6f05773n%40googlegroups.com.


Re: [weewx-user] Integrate rain24 with Packetsloop

2024-01-26 Thread Remy Lavabre
Hello Tom and thank you for your response.

 [StdWXCalculate]
 [[Calculations]]
 ...
 [[Delta]]
 [[[rain]]]
 input = dayRain

This will calculate the rain difference between two records in weewx sql 
based on the principle that the counter is reset to zero at midnight -> 
PERFECT FOR THE RAIN 24H !

Small additional question: if we wish to constantly calculate the 
difference between two records values of a meter which *never* resets to 
zero (such as an electricity or water meter), how should we proceed?

THANKS

Le jeudi 18 janvier 2024 à 14:05:10 UTC+1, Tom Keffer a écrit :

> Unfortunately (for you), WeeWX mostly uses observation type "rain", the 
> amount of rain that fell since the last loop packet (what you are calling 
> "instantaneous rain").
>
> You should assign the rain since midnight to type "dayRain".
>
> Then calculate "rain" as the difference between successive 
> "dayRain" values. While this is a pretty simple calculation, there is an 
> xtype that can do it for you.  See class Delta in weewx.wxxtypes 
> . 
> To use it, add this to weewx.conf:
>
> [StdWXCalculate]
> [[Calculations]]
> ...
> [[Delta]]
> [[[rain]]]
> input = dayRain
>
>
>
>
> On Wed, Jan 17, 2024 at 11:47 PM Remy Lavabre  wrote:
>
>> Good morning,
>>
>> I created a [driver] for weewx to retrieve data from the Awekas API (my 
>> Bresser weather station does not have a USB port).
>>
>> This works but regarding the rain, it is not the instantaneous rain (from 
>> a packetloop) that we recover but the rain over 24 hours since midnight.
>> Is there a "simple" way to tell WeeWX that the packetsloop rain data 
>> corresponds to the cumulative rain since midnight and not the rain that 
>> fell during the data retrieval interval (the time gap between two 
>> packetsloops) ?
>>
>> Thank you so much...
>>
>> -- 
>> 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/9887101f-fcc1-45ce-948e-e03429bf7baan%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/502b5332-d7a0-4585-ad1a-98bc8167ab7cn%40googlegroups.com.