Re: [weewx-user] FTP upload error

2022-10-25 Thread Tom Keffer
I am unable to debug your FTP because the connection is consistently
refused. I'm not sure, but with a server in Germany, but a Russian domain,
you may have gotten caught up in the Ukraine conflict.



On Tue, Oct 25, 2022 at 11:49 AM vladimir...@gmail.com <
vladimir.a.mo...@gmail.com> wrote:

> Oct 25 21:42:02 pogoda-ubuntu weewx[1056] ERROR weeutil.ftpupload: Failed
> uploading /var/www/html/weewx/weektempin.png to server web.ru. Reason:
> 'timed out'
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
> ftpgenerator: (2): caught exception '': timed out
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>     Traceback (most recent call last):
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>   File "/usr/share/weewx/weewx/reportengine.py", line 437, in run
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>     n = ftp_data.run()
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>   File "/usr/share/weewx/weeutil/ftpupload.py", line 220, in run
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>     ftp_server.storbinary(stor_cmd, fd)
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>   File "/usr/lib/python2.7/ftplib.py", line 486, in storbinary
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>     conn = self.transfercmd(cmd, rest)
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>   File "/usr/lib/python2.7/ftplib.py", line 385, in transfercmd
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>     return self.ntransfercmd(cmd, rest)[0]
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>   File "/usr/lib/python2.7/ftplib.py", line 348, in ntransfercmd
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>     resp = self.sendcmd(cmd)
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>   File "/usr/lib/python2.7/ftplib.py", line 253, in sendcmd
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>     return self.getresp()
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>   File "/usr/lib/python2.7/ftplib.py", line 219, in getresp
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>     resp = self.getmultiline()
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>   File "/usr/lib/python2.7/ftplib.py", line 205, in getmultiline
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>     line = self.getline()
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>   File "/usr/lib/python2.7/ftplib.py", line 190, in getline
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>     line = self.file.readline(self.maxline + 1)
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>   File "/usr/lib/python2.7/socket.py", line 480, in readline
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>     data = self._sock.recv(self._rbufsize)
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>     timeout: timed out
>
> среда, 5 октября 2022 г. в 06:40:33 UTC+3, tke...@gmail.com:
>
>> 1. How about some more details? In particular, could we see the [[FTP]]
>> section of weewx.conf? Be sure to obfuscate any sensitive materials, such
>> as text.
>> 2. Do you know which FTP server your provider is using?
>>
>> On Tue, Oct 4, 2022 at 11:01 AM vladimir...@gmail.com <
>> vladimir...@gmail.com> wrote:
>>
>>> Hi,
>>> Suddenly and out of the blue my ftp upload stopped working. The html
>>> files are generated as expected in /var/www/html/weewx
>>> Midnight Commander  FTP client - connection successful, creating and
>>> deleting files
>>>
>>> log
>>> Oct  4 20:47:03 pogoda-ubuntu weewx[10451] ERROR weeutil.ftpupload:
>>> Failed uploading /var/www/html/weewx/weekwinddir.png to server
>>> xxx.timeweb.ru. Reason: 'timed out'
>>> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>>> ftpgenerator: (2): caught exception '': timed out
>>> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>>>   Traceback (most recent call last):
>>> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>>> File "/usr/share/weewx/weewx/reportengine.py", line 436, in run
>>> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>>>   n = ftp_data.run()
>>> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>>> File "/usr/share/weewx/weeutil/ftpupload.py", line 210, in run
>>> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>>>   ftp_server.storbinary(stor_cmd, fd)
>>> Oct  4 20:47:23 

Re: [weewx-user] FTP upload error

2022-10-25 Thread vladimir...@gmail.com
Oct 25 21:42:02 pogoda-ubuntu weewx[1056] ERROR weeutil.ftpupload: Failed 
uploading /var/www/html/weewx/weektempin.png to server web.ru. Reason: 
'timed out'
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
ftpgenerator: (2): caught exception '': timed out
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
  Traceback (most recent call last):
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
File "/usr/share/weewx/weewx/reportengine.py", line 437, in run
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
  n = ftp_data.run()
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
File "/usr/share/weewx/weeutil/ftpupload.py", line 220, in run
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
  ftp_server.storbinary(stor_cmd, fd)
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
File "/usr/lib/python2.7/ftplib.py", line 486, in storbinary
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
  conn = self.transfercmd(cmd, rest)
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
File "/usr/lib/python2.7/ftplib.py", line 385, in transfercmd
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
  return self.ntransfercmd(cmd, rest)[0]
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
File "/usr/lib/python2.7/ftplib.py", line 348, in ntransfercmd
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
  resp = self.sendcmd(cmd)
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
File "/usr/lib/python2.7/ftplib.py", line 253, in sendcmd
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
  return self.getresp()
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
File "/usr/lib/python2.7/ftplib.py", line 219, in getresp
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
  resp = self.getmultiline()
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
File "/usr/lib/python2.7/ftplib.py", line 205, in getmultiline
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
  line = self.getline()
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
File "/usr/lib/python2.7/ftplib.py", line 190, in getline
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
  line = self.file.readline(self.maxline + 1)
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
File "/usr/lib/python2.7/socket.py", line 480, in readline
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
  data = self._sock.recv(self._rbufsize)
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
  timeout: timed out

среда, 5 октября 2022 г. в 06:40:33 UTC+3, tke...@gmail.com: 

> 1. How about some more details? In particular, could we see the [[FTP]] 
> section of weewx.conf? Be sure to obfuscate any sensitive materials, such 
> as text.
> 2. Do you know which FTP server your provider is using?
>
> On Tue, Oct 4, 2022 at 11:01 AM vladimir...@gmail.com <
> vladimir...@gmail.com> wrote:
>
>> Hi,
>> Suddenly and out of the blue my ftp upload stopped working. The html 
>> files are generated as expected in /var/www/html/weewx
>> Midnight Commander  FTP client - connection successful, creating and 
>> deleting files
>>
>> log
>> Oct  4 20:47:03 pogoda-ubuntu weewx[10451] ERROR weeutil.ftpupload: 
>> Failed uploading /var/www/html/weewx/weekwinddir.png to server 
>> xxx.timeweb.ru. Reason: 'timed out'
>> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine: 
>> ftpgenerator: (2): caught exception '': timed out
>> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine: 
>>   Traceback (most recent call last):
>> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine: 
>> File "/usr/share/weewx/weewx/reportengine.py", line 436, in run
>> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine: 
>>   n = ftp_data.run()
>> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine: 
>> File "/usr/share/weewx/weeutil/ftpupload.py", line 210, in run
>> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine: 
>>   ftp_server.storbinary(stor_cmd, fd)
>> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine: 
>> File "/usr/lib/python2.7/ftplib.py", line 486, in storbinary
>> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine: 
>>   conn = 

Re: [weewx-user] Re: Wrong rain in daily archive but ok in archive

2022-10-25 Thread Roberto Verrelli
Hi Gary,

sorry for late reply,below the output requested

pi@raspberrypi:~ $ sudo wee_database --drop-daily
Using configuration file /etc/weewx/weewx.conf
Using database binding 'wx_binding', which is bound to database 
'archive_sqlite'
Proceeding will delete all your daily summaries from database 'weewx.sdb'
Are you sure you want to proceed (y/n)? y
Dropping daily summary tables from 'weewx.sdb' ...
Daily summary tables dropped from database 'weewx.sdb' in 3.25 seconds

pi@raspberrypi:~ $ sudo wee_database --rebuild-daily
Using configuration file /etc/weewx/weewx.conf
Using database binding 'wx_binding', which is bound to database 
'archive_sqlite'
All daily summaries will be rebuilt.
Proceed (y/n)? y
Rebuilding daily summaries in database 'weewx.sdb' ...
Records processed: 1000; time: 2020-09-22 14:36:Records processed: 2000; 
time: 2020-09-25 21:03:Records processed: 3000; time: 2020-09-30 
10:42:Records processed: 4000; time: 2020-10-04 21:06:Records processed: 
5000; time: 2020-10-08 21:49:Records processed: 6000; time: 2020-10-13 
10:13:Records processed: 7000; time: 2020-10-17 05:03:Records processed: 
8000; time: 2020-10-21 08:39:Records processed: 9000; time: 2020-10-25 
18:34:Records processed: 1; time: 2020-10-30 14:05Records processed: 
11000; time: 2020-11-03 12:49Records processed: 12000; time: 2020-11-07 
19:50Records processed: 13000; time: 2020-11-12 14:04Records processed: 
14000; time: 2020-11-16 19:42Records processed: 15000; time: 2020-11-21 
08:29Records processed: 16000; time: 2020-11-25 14:01Records processed: 
17000; time: 2020-11-29 08:37Records processed: 18000; time: 2020-12-03 
15:01Records processed: 19000; time: 2020-12-08 03:51Records processed: 
2; time: 2020-12-12 13:44Records processed: 21000; time: 2020-12-16 
22:08Records processed: 22000; time: 2020-12-20 15:07Records processed: 
23000; time: 2020-12-24 12:40Records processed: 24000; time: 2020-12-28 
06:50Records processed: 25000; time: 2021-01-01 02:16Records processed: 
26000; time: 2021-01-05 00:29Records processed: 27000; time: 2021-01-08 
22:31Records processed: 28000; time: 2021-01-12 18:39Records processed: 
29000; time: 2021-01-16 18:37Records processed: 3; time: 2021-01-20 
07:18Records processed: 31000; time: 2021-01-23 13:24Records processed: 
32000; time: 2021-01-26 21:10Records processed: 33000; time: 2021-01-31 
04:52Records processed: 34000; time: 2021-02-04 09:17Records processed: 
35000; time: 2021-02-08 07:48Records processed: 36000; time: 2021-02-12 
14:48Records processed: 37000; time: 2021-02-15 13:49Records processed: 
38000; time: 2021-02-19 03:57Records processed: 39000; time: 2021-02-22 
17:48Records processed: 4; time: 2021-02-26 09:37Records processed: 
41000; time: 2021-03-01 19:11Records processed: 42000; time: 2021-03-05 
13:45Records processed: 43000; time: 2021-03-09 00:23Records processed: 
44000; time: 2021-03-12 07:20Records processed: 45000; time: 2021-03-15 
21:30Records processed: 46000; time: 2021-03-19 06:32Records processed: 
47000; time: 2021-03-22 23:58Records processed: 48000; time: 2021-03-26 
08:19Records processed: 49000; time: 2021-03-29 15:55Records processed: 
5; time: 2021-04-02 00:38Records processed: 51000; time: 2021-04-04 
21:41Records processed: 52000; time: 2021-04-08 09:34Records processed: 
53000; time: 2021-04-11 20:15Records processed: 54000; time: 2021-04-15 
17:33Records processed: 55000; time: 2021-04-19 02:08Records processed: 
56000; time: 2021-04-22 05:25Records processed: 57000; time: 2021-04-26 
01:08Records processed: 58000; time: 2021-04-29 22:01Records processed: 
59000; time: 2021-05-03 11:39Records processed: 6; time: 2021-05-06 
23:48Records processed: 61000; time: 2021-05-10 12:24Records processed: 
62000; time: 2021-05-13 23:24Records processed: 63000; time: 2021-05-17 
19:52Records processed: 64000; time: 2021-05-21 08:22Records processed: 
65000; time: 2021-05-25 10:34Records processed: 66000; time: 2021-05-28 
23:17Records processed: 67000; time: 2021-06-02 08:09Records processed: 
68000; time: 2021-06-06 03:27Records processed: 69000; time: 2021-06-10 
00:53Records processed: 7; time: 2021-06-14 02:34Records processed: 
71000; time: 2021-06-18 07:39Records processed: 72000; time: 2021-06-22 
20:11Records processed: 73000; time: 2021-06-27 12:29Records processed: 
74000; time: 2021-07-02 03:15Records processed: 75000; time: 2021-07-06 
12:26Records processed: 76000; time: 2021-07-11 05:39Records processed: 
77000; time: 2021-07-14 23:37Records processed: 78000; time: 2021-07-19 
02:45Records processed: 79000; time: 2021-07-23 05:42Records processed: 
8; time: 2021-07-27 03:58Records processed: 81000; time: 2021-07-30 
14:07Records processed: 82000; time: 2021-08-03 00:34Records processed: 
83000; time: 2021-08-07 09:55Records processed: 84000; time: 2021-08-11 
12:32Records processed: 85000; time: 2021-08-15 16:04Records processed: 
86000; time: 2021-08-19 09:11Records processed: 87000; time: 2021-08-23 

Re: [weewx-user] Registering my Station & Rain Year

2022-10-25 Thread Bodo
Yeaph !!
Here I am ! I'm Back again.
Thank you all for your support. When we met the next time, I pay the beer.

Regards
Bodo

Bodo schrieb am Dienstag, 25. Oktober 2022 um 16:09:23 UTC+2:

> Hi Tom.
>
> That is what I think also now (see text before). 
> And I try it instantly. !NOW!
>
> Bodo
>
>
> Bodo schrieb am Dienstag, 25. Oktober 2022 um 16:05:17 UTC+2:
>
>> Not shure to understand what you mean, Peter.
>>
>> https://bschnare.de/..  ?!
>> In the moment I have nothing else like http:   or https:
>> In the moment it iswww.bschnare.de/wp-content/Wetter/index.html
>>
>> Perhaps this the right adress ?   --> 
>> https://bschnare.de/wp-content/Wetter/index.html 
>> Is it that what you mean ?
>>
>> Bodo
>>
>> peterq...@gmail.com schrieb am Dienstag, 25. Oktober 2022 um 15:26:19 
>> UTC+2:
>>
>>> Could you have \ when you should have / ?
>>>
>>> On Tue, Oct 25, 2022 at 6:19 AM Bodo  wrote:
>>>
 OK. Here it is. And .. that will be the reason, I think :

 ==>  Oct 25 10:25:18 raspi3 weewx[16267] DEBUG weewx.restx: 
 StationRegistry: Failed upload attempt 1: b'FAIL: bad registration info: 
 station_url is not a proper URL\n'

 If this is the reason - What is a proper station-url ?  Perhaps  
 'https:\\bschnare.de\wp-content\wetter .'  ?


 Only yours few questions help me for the next times (Where to look, and 
 so.) Thank's a lot.
 Regards
 Bodo
 tke...@gmail.com schrieb am Dienstag, 25. Oktober 2022 um 13:58:05 
 UTC+2:

> What we need is the contents of your system log, /var/log/syslog. 
>
> On Tue, Oct 25, 2022 at 2:42 AM Bodo  wrote:
>
>> Hi Tom.
>> Thanks for helping me.
>> How to copy text and lines ? How to open the log-files ? Need some 
>> time to realize this basics. Hope I got the correct lines copied. And I 
>> hope this 'short-lines' will be enough ;-)
>> Send you 'messages' and 'debug'.
>>
>> tke...@gmail.com schrieb am Montag, 24. Oktober 2022 um 12:59:18 
>> UTC+2:
>>
>>> I do not see your station in the registry database.
>>>
>>> Set debug=1, restart weewxd, then post the log through the first 
>>> reporting cycle.
>>>
>>> On Mon, Oct 24, 2022 at 1:16 AM Bodo  wrote:
>>>
 Hi Peter.
 Thanks for coming back.
 Here comes the section:

 [Station]

 # Description of the station location
 location = "D-32676 Lügde, Zum Golfplatz"

 # Latitude in decimal degrees. Negative for southern hemisphere
 latitude = 51.961166
 # Longitude in decimal degrees. Negative for western hemisphere.
 longitude = 9.237595

 # Altitude of the station, with unit it is in. This is 
 downloaded from
 # from the station if the hardware supports it.
 altitude = 138, meter# Choose 'foot' or 'meter' for unit

 # Set to type of station hardware. There must be a 
 corresponding stanza
 # in this file with a 'driver' parameter indicating the driver 
 to be used.
 station_type = FineOffsetUSB

 # If you have a website, you may specify an URL
 station_url = www.bschnare.de/wp-content/Wetter/index.html

 # The start of the rain year (1=January; 10=October, etc.). 
 This is
 # downloaded from the station if the hardware supports it.
 rain_year_start = 1

 # Start of week (0=Monday, 6=Sunday)
 week_start = 6
 peterq...@gmail.com schrieb am Sonntag, 23. Oktober 2022 um 
 18:52:39 UTC+2:

> Can you post the section of the weewx.conf file with the lat/long?
>
> On Sun, Oct 23, 2022 at 9:33 AM Bodo  wrote:
>
>> Need a little help, please.
>> I use weewx for a couple of years and I've learnd a lot in that 
>> time. -->  D-32676 Lügde, Zum Golfplatz (bschnare.de) 
>>  And now I 
>> dont understand why I'm not be able to get my station registered in 
>> the 
>> map. Where is my mistake ?
>> What I have done: in weewx.conf --> register this station = true
>> 
>>  station_url = www.bschnare.de/wp-content/Wetter/index.html
>>   
>> latitude = 51.961166
>>   
>> longitude = 9.237595
>>   
>> location = "D-32676 Lügde, Zum Golfplatz"
>>
>> In the first build - 7 years ago - I also got the registration. 
>> In all 

Re: [weewx-user] Re: Version 4.9.0 available

2022-10-25 Thread David Schulz
Thanks for the fix. And I deleted it because it does not belong directly to 
WeewX. But you fixed it here too.

https://github.com/roe-dl/weewx-wns

tke...@gmail.com schrieb am Dienstag, 25. Oktober 2022 um 15:53:28 UTC+2:

> 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  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 
>> 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
>>
>> tke...@gmail.com schrieb am Dienstag, 25. Oktober 2022 um 13:46:36 UTC+2:
>>
>>> 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.
>>>
>>> On Mon, Oct 24, 2022 at 4:13 PM Tom Keffer  wrote:
>>>
 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



 On Mon, Oct 24, 2022 at 2:57 PM Tom Keffer  wrote:

> 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 

Re: [weewx-user] Registering my Station & Rain Year

2022-10-25 Thread Bodo
Hi Tom.

That is what I think also now (see text before). 
And I try it instantly. !NOW!

Bodo


Bodo schrieb am Dienstag, 25. Oktober 2022 um 16:05:17 UTC+2:

> Not shure to understand what you mean, Peter.
>
> https://bschnare.de/..  ?!
> In the moment I have nothing else like http:   or https:
> In the moment it iswww.bschnare.de/wp-content/Wetter/index.html
>
> Perhaps this the right adress ?   --> 
> https://bschnare.de/wp-content/Wetter/index.html 
> Is it that what you mean ?
>
> Bodo
>
> peterq...@gmail.com schrieb am Dienstag, 25. Oktober 2022 um 15:26:19 
> UTC+2:
>
>> Could you have \ when you should have / ?
>>
>> On Tue, Oct 25, 2022 at 6:19 AM Bodo  wrote:
>>
>>> OK. Here it is. And .. that will be the reason, I think :
>>>
>>> ==>  Oct 25 10:25:18 raspi3 weewx[16267] DEBUG weewx.restx: 
>>> StationRegistry: Failed upload attempt 1: b'FAIL: bad registration info: 
>>> station_url is not a proper URL\n'
>>>
>>> If this is the reason - What is a proper station-url ?  Perhaps  
>>> 'https:\\bschnare.de\wp-content\wetter .'  ?
>>>
>>>
>>> Only yours few questions help me for the next times (Where to look, and 
>>> so.) Thank's a lot.
>>> Regards
>>> Bodo
>>> tke...@gmail.com schrieb am Dienstag, 25. Oktober 2022 um 13:58:05 
>>> UTC+2:
>>>
 What we need is the contents of your system log, /var/log/syslog. 

 On Tue, Oct 25, 2022 at 2:42 AM Bodo  wrote:

> Hi Tom.
> Thanks for helping me.
> How to copy text and lines ? How to open the log-files ? Need some 
> time to realize this basics. Hope I got the correct lines copied. And I 
> hope this 'short-lines' will be enough ;-)
> Send you 'messages' and 'debug'.
>
> tke...@gmail.com schrieb am Montag, 24. Oktober 2022 um 12:59:18 
> UTC+2:
>
>> I do not see your station in the registry database.
>>
>> Set debug=1, restart weewxd, then post the log through the first 
>> reporting cycle.
>>
>> On Mon, Oct 24, 2022 at 1:16 AM Bodo  wrote:
>>
>>> Hi Peter.
>>> Thanks for coming back.
>>> Here comes the section:
>>>
>>> [Station]
>>>
>>> # Description of the station location
>>> location = "D-32676 Lügde, Zum Golfplatz"
>>>
>>> # Latitude in decimal degrees. Negative for southern hemisphere
>>> latitude = 51.961166
>>> # Longitude in decimal degrees. Negative for western hemisphere.
>>> longitude = 9.237595
>>>
>>> # Altitude of the station, with unit it is in. This is 
>>> downloaded from
>>> # from the station if the hardware supports it.
>>> altitude = 138, meter# Choose 'foot' or 'meter' for unit
>>>
>>> # Set to type of station hardware. There must be a corresponding 
>>> stanza
>>> # in this file with a 'driver' parameter indicating the driver 
>>> to be used.
>>> station_type = FineOffsetUSB
>>>
>>> # If you have a website, you may specify an URL
>>> station_url = www.bschnare.de/wp-content/Wetter/index.html
>>>
>>> # The start of the rain year (1=January; 10=October, etc.). This 
>>> is
>>> # downloaded from the station if the hardware supports it.
>>> rain_year_start = 1
>>>
>>> # Start of week (0=Monday, 6=Sunday)
>>> week_start = 6
>>> peterq...@gmail.com schrieb am Sonntag, 23. Oktober 2022 um 
>>> 18:52:39 UTC+2:
>>>
 Can you post the section of the weewx.conf file with the lat/long?

 On Sun, Oct 23, 2022 at 9:33 AM Bodo  wrote:

> Need a little help, please.
> I use weewx for a couple of years and I've learnd a lot in that 
> time. -->  D-32676 Lügde, Zum Golfplatz (bschnare.de) 
>  And now I dont 
> understand why I'm not be able to get my station registered in the 
> map. 
> Where is my mistake ?
> What I have done: in weewx.conf --> register this station = true
> 
>  station_url = www.bschnare.de/wp-content/Wetter/index.html
>   
> latitude = 51.961166
>   
> longitude = 9.237595
>   
> location = "D-32676 Lügde, Zum Golfplatz"
>
> In the first build - 7 years ago - I also got the registration. In 
> all other, later builds I dont got it again.
> Why ? Where is my mistake ? Please give me an idea.
>
> Best regards
> Bodo
> vince schrieb am Montag, 18. April 2022 um 04:51:55 UTC+2:
>
>> What question specifically regarding Rain Year remains ?
>>
>> Check what 

Re: [weewx-user] Registering my Station & Rain Year

2022-10-25 Thread Bodo
Not shure to understand what you mean, Peter.

https://bschnare.de/..  ?!
In the moment I have nothing else like http:   or https:
In the moment it iswww.bschnare.de/wp-content/Wetter/index.html

Perhaps this the right adress ?  
 --> https://bschnare.de/wp-content/Wetter/index.html 
Is it that what you mean ?

Bodo

peterq...@gmail.com schrieb am Dienstag, 25. Oktober 2022 um 15:26:19 UTC+2:

> Could you have \ when you should have / ?
>
> On Tue, Oct 25, 2022 at 6:19 AM Bodo  wrote:
>
>> OK. Here it is. And .. that will be the reason, I think :
>>
>> ==>  Oct 25 10:25:18 raspi3 weewx[16267] DEBUG weewx.restx: 
>> StationRegistry: Failed upload attempt 1: b'FAIL: bad registration info: 
>> station_url is not a proper URL\n'
>>
>> If this is the reason - What is a proper station-url ?  Perhaps  'https:\\
>> bschnare.de\wp-content\wetter .'  ?
>>
>>
>> Only yours few questions help me for the next times (Where to look, and 
>> so.) Thank's a lot.
>> Regards
>> Bodo
>> tke...@gmail.com schrieb am Dienstag, 25. Oktober 2022 um 13:58:05 UTC+2:
>>
>>> What we need is the contents of your system log, /var/log/syslog. 
>>>
>>> On Tue, Oct 25, 2022 at 2:42 AM Bodo  wrote:
>>>
 Hi Tom.
 Thanks for helping me.
 How to copy text and lines ? How to open the log-files ? Need some time 
 to realize this basics. Hope I got the correct lines copied. And I hope 
 this 'short-lines' will be enough ;-)
 Send you 'messages' and 'debug'.

 tke...@gmail.com schrieb am Montag, 24. Oktober 2022 um 12:59:18 UTC+2:

> I do not see your station in the registry database.
>
> Set debug=1, restart weewxd, then post the log through the first 
> reporting cycle.
>
> On Mon, Oct 24, 2022 at 1:16 AM Bodo  wrote:
>
>> Hi Peter.
>> Thanks for coming back.
>> Here comes the section:
>>
>> [Station]
>>
>> # Description of the station location
>> location = "D-32676 Lügde, Zum Golfplatz"
>>
>> # Latitude in decimal degrees. Negative for southern hemisphere
>> latitude = 51.961166
>> # Longitude in decimal degrees. Negative for western hemisphere.
>> longitude = 9.237595
>>
>> # Altitude of the station, with unit it is in. This is downloaded 
>> from
>> # from the station if the hardware supports it.
>> altitude = 138, meter# Choose 'foot' or 'meter' for unit
>>
>> # Set to type of station hardware. There must be a corresponding 
>> stanza
>> # in this file with a 'driver' parameter indicating the driver to 
>> be used.
>> station_type = FineOffsetUSB
>>
>> # If you have a website, you may specify an URL
>> station_url = www.bschnare.de/wp-content/Wetter/index.html
>>
>> # The start of the rain year (1=January; 10=October, etc.). This 
>> is
>> # downloaded from the station if the hardware supports it.
>> rain_year_start = 1
>>
>> # Start of week (0=Monday, 6=Sunday)
>> week_start = 6
>> peterq...@gmail.com schrieb am Sonntag, 23. Oktober 2022 um 18:52:39 
>> UTC+2:
>>
>>> Can you post the section of the weewx.conf file with the lat/long?
>>>
>>> On Sun, Oct 23, 2022 at 9:33 AM Bodo  wrote:
>>>
 Need a little help, please.
 I use weewx for a couple of years and I've learnd a lot in that 
 time. -->  D-32676 Lügde, Zum Golfplatz (bschnare.de) 
  And now I dont 
 understand why I'm not be able to get my station registered in the 
 map. 
 Where is my mistake ?
 What I have done: in weewx.conf --> register this station = true
 
  station_url = www.bschnare.de/wp-content/Wetter/index.html
   
 latitude = 51.961166
   
 longitude = 9.237595
   
 location = "D-32676 Lügde, Zum Golfplatz"

 In the first build - 7 years ago - I also got the registration. In 
 all other, later builds I dont got it again.
 Why ? Where is my mistake ? Please give me an idea.

 Best regards
 Bodo
 vince schrieb am Montag, 18. April 2022 um 04:51:55 UTC+2:

> What question specifically regarding Rain Year remains ?
>
> Check what weewx thinks it is with "wee_device --info" and give 
> us the output please.
>
> On Sunday, April 17, 2022 at 7:24:21 PM UTC-7 jonatha...@gmail.com 
> wrote:
>
>> My station now appears on the map, so *Registering* is settled. 
>> Which leaves open the 

Re: [weewx-user] Registering my Station & Rain Year

2022-10-25 Thread Tom Keffer
I think the problem is that you forgot the http://. So, you want

station_url = https://www.bschnare.de/wp-content/Wetter/index.html



On Tue, Oct 25, 2022 at 6:19 AM Bodo  wrote:

> OK. Here it is. And .. that will be the reason, I think :
>
> ==>  Oct 25 10:25:18 raspi3 weewx[16267] DEBUG weewx.restx:
> StationRegistry: Failed upload attempt 1: b'FAIL: bad registration info:
> station_url is not a proper URL\n'
>
> If this is the reason - What is a proper station-url ?  Perhaps  'https:\\
> bschnare.de\wp-content\wetter .'  ?
>
>
> Only yours few questions help me for the next times (Where to look, and
> so.) Thank's a lot.
> Regards
> Bodo
> tke...@gmail.com schrieb am Dienstag, 25. Oktober 2022 um 13:58:05 UTC+2:
>
>> What we need is the contents of your system log, /var/log/syslog.
>>
>> On Tue, Oct 25, 2022 at 2:42 AM Bodo  wrote:
>>
>>> Hi Tom.
>>> Thanks for helping me.
>>> How to copy text and lines ? How to open the log-files ? Need some time
>>> to realize this basics. Hope I got the correct lines copied. And I hope
>>> this 'short-lines' will be enough ;-)
>>> Send you 'messages' and 'debug'.
>>>
>>> tke...@gmail.com schrieb am Montag, 24. Oktober 2022 um 12:59:18 UTC+2:
>>>
 I do not see your station in the registry database.

 Set debug=1, restart weewxd, then post the log through the first
 reporting cycle.

 On Mon, Oct 24, 2022 at 1:16 AM Bodo  wrote:

> Hi Peter.
> Thanks for coming back.
> Here comes the section:
>
> [Station]
>
> # Description of the station location
> location = "D-32676 Lügde, Zum Golfplatz"
>
> # Latitude in decimal degrees. Negative for southern hemisphere
> latitude = 51.961166
> # Longitude in decimal degrees. Negative for western hemisphere.
> longitude = 9.237595
>
> # Altitude of the station, with unit it is in. This is downloaded
> from
> # from the station if the hardware supports it.
> altitude = 138, meter# Choose 'foot' or 'meter' for unit
>
> # Set to type of station hardware. There must be a corresponding
> stanza
> # in this file with a 'driver' parameter indicating the driver to
> be used.
> station_type = FineOffsetUSB
>
> # If you have a website, you may specify an URL
> station_url = www.bschnare.de/wp-content/Wetter/index.html
>
> # The start of the rain year (1=January; 10=October, etc.). This is
> # downloaded from the station if the hardware supports it.
> rain_year_start = 1
>
> # Start of week (0=Monday, 6=Sunday)
> week_start = 6
> peterq...@gmail.com schrieb am Sonntag, 23. Oktober 2022 um 18:52:39
> UTC+2:
>
>> Can you post the section of the weewx.conf file with the lat/long?
>>
>> On Sun, Oct 23, 2022 at 9:33 AM Bodo  wrote:
>>
>>> Need a little help, please.
>>> I use weewx for a couple of years and I've learnd a lot in that
>>> time. -->  D-32676 Lügde, Zum Golfplatz (bschnare.de)
>>>  And now I dont
>>> understand why I'm not be able to get my station registered in the map.
>>> Where is my mistake ?
>>> What I have done: in weewx.conf --> register this station = true
>>>
>>>  station_url = www.bschnare.de/wp-content/Wetter/index.html
>>>
>>> latitude = 51.961166
>>>
>>> longitude = 9.237595
>>>
>>> location = "D-32676 Lügde, Zum Golfplatz"
>>>
>>> In the first build - 7 years ago - I also got the registration. In
>>> all other, later builds I dont got it again.
>>> Why ? Where is my mistake ? Please give me an idea.
>>>
>>> Best regards
>>> Bodo
>>> vince schrieb am Montag, 18. April 2022 um 04:51:55 UTC+2:
>>>
 What question specifically regarding Rain Year remains ?

 Check what weewx thinks it is with "wee_device --info" and give us
 the output please.

 On Sunday, April 17, 2022 at 7:24:21 PM UTC-7 jonatha...@gmail.com
 wrote:

> My station now appears on the map, so *Registering* is settled.
> Which leaves open the question of the *Rain Year*.
>
> --
>>> 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/8d4984fb-8a0e-4f04-9a28-3b1f239b59een%40googlegroups.com
>>> 
>>> .
>>>
>>
>>
>> --
>> Peter Quinn
>> (415)794-2264 <(415)%20794-2264>
>>
> --
> You 

Re: [weewx-user] Re: Version 4.9.0 available

2022-10-25 Thread Tom Keffer
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 
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 
> 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
>
> tke...@gmail.com schrieb am Dienstag, 25. Oktober 2022 um 13:46:36 UTC+2:
>
>> 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.
>>
>> On Mon, Oct 24, 2022 at 4:13 PM Tom Keffer  wrote:
>>
>>> 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
>>>
>>>
>>>
>>> On Mon, Oct 24, 2022 at 2:57 PM Tom Keffer  wrote:
>>>
 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 

Re: [weewx-user] Calculating average wind direction when aggregate is higher than your archive period.

2022-10-25 Thread James Taylor
Given the update, I have just backed out to sqlite3 (3.34.1) and upgraded 
to weewx 4.9.1 and I can see I'm getting the same result with the 
changes.   Excellent coding Tom.

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

obs_lookup is wind
Start time is 1665440100 and end time is 1665442800
x_domain entries are 1665440100 and 1665442800
archive is 
aggregate_type is vecdir
aggregate_interval is 900
([1665440100, 1665441000, 1665441900], 'unix_epoch', 'group_time')
([355.0, 357.7404188153435, 2.124825517227194], 'degree_compass', 
'group_direction')

On Monday, October 24, 2022 at 10:34:49 PM UTC+1 James Taylor wrote:

> No problems
>
> I wish!  My day job is mainly working with Red Hat and its derivatives 
> (Rocky / CentOS)
>
> James
>
> On Monday, October 24, 2022 at 10:08:48 PM UTC+1 tke...@gmail.com wrote:
>
>> Thanks for checking this, James!
>>
>> Nice to have a Debian whiz on board!
>>
>> On Mon, Oct 24, 2022 at 1:52 PM James Taylor <
>> ja...@blisteringbarnacles.co.uk> wrote:
>>
>>> Yes, I was surprised.  Hopefully Debian 12 ( Bookworm) when it comes 
>>> along in 2023 has a newer version as standard
>>>
>>> I just upgraded to the latest version, which I would only recommend for 
>>> those that are comfortable with this sort of thing.   It didn't actually 
>>> take that long to compile on my Pi4
>>>
>>> mkdir sqlite && cd sqlite
>>> wget https://www.sqlite.org/2022/sqlite-autoconf-3390400.tar.gz
>>> tar xvfz sqlite-autoconf-3390400.tar.gz
>>> cd sqlite-autoconf-3390400
>>> ./configure
>>> make
>>> sudo make install
>>> /usr/local/bin/sqlite3 --version # returns 3.39.4 2022-09-29 
>>>
>>> You also need to replace 
>>> /usr/lib/arm-linux-gnueabihf/libsqlite3.so.0.8.6 with the version compiled 
>>> under sqlite-autoconf-3390400/.libs/, so python3 will start using the newer 
>>> instance (Note if somebody is reading this, it is at their risk and 
>>> understand the consequencies
>>>
>>> # python3 -c "import sqlite3; print(sqlite3.sqlite_version)"
>>> 3.39.4
>>>
>>> However it is now working using the example from my original email
>>>
>>> obs_lookup is wind
>>> Start time is 1665440100 and end time is 1665442800
>>> x_domain entries are 1665440100 and 1665442800
>>> archive is 
>>> aggregate_type is vecdir
>>> aggregate_interval is 900
>>> ([1665440100, 1665441000, 1665441900], 'unix_epoch', 'group_time')
>>> ([355.0, 357.7404188153435, 2.124825517227194], 'degree_compass', 
>>> 'group_direction')
>>>
>>> James
>>> On Monday, October 24, 2022 at 8:39:19 PM UTC+1 tke...@gmail.com wrote:
>>>
 That's unfortunate. Bullseye has been out for a while, so I had just 
 assumed that it had 3.35.

 I think sqlite maintains their own repository. You could try upgrading 
 from that.

 On Mon, Oct 24, 2022 at 11:54 AM James Taylor <
 ja...@blisteringbarnacles.co.uk> wrote:

> Cool.
>
> Just need to find a way to upgrade sqlite3 on Raspberry PI.The 
> packaged version is 3.34.1 on is Raspbian 11 (Bullseye) and this is 
> wanting 
> at least 3.35.
>
> James
>
> On Saturday, October 22, 2022 at 10:26:27 PM UTC+1 tke...@gmail.com 
> wrote:
>
>> Fixed with commit 407602c 
>> ,
>>  
>> to appear in V4.9.
>>
>> On Tue, Oct 18, 2022 at 4:53 PM Tom Keffer  wrote:
>>
>>> You're right that the wind direction plots that come with the 
>>> Seasons skin are not very useful. They might make sense for short time 
>>> periods that do not use aggregation, but not for longer periods. 
>>> Unfortunately, the way vecdir is set up now, aggregation intervals have 
>>> to 
>>> be multiples of a day. Hence, your example works, but it won't for 
>>> plots 
>>> with shorter aggregation intervals.
>>>
>>> I've created Issue #800  
>>> to track.
>>>
>>> On Mon, Oct 17, 2022 at 1:52 PM bell...@gmail.com  
>>> wrote:
>>>
 I'm still trying to wrap my head around wind data in WeeWX... Does 
 that mean that in the Seasons skin, the weekwinddir, monthwindir, and 
 yearwinddir plots are not a vector average? If yearwinddir plot was 
 something like below, would it generate a vector average?
 [[[yearwinddir]]]
 yscale = 0.0, 360.0, 45.0
 line_type = None
 marker_type = box
 marker_size = 2
 #windDir
 wind
 aggregate_type = vecdir
 When I changed the yearwinddir plot to the above, it ran and I got 
 what looked like a different plot.
 Thanks. rich

 On Monday, 17 October 2022 at 09:05:37 UTC-4 tke...@gmail.com 
 wrote:

> Calculating the vector averaged direction 

Re: [weewx-user] Registering my Station & Rain Year

2022-10-25 Thread p q
Could you have \ when you should have / ?

On Tue, Oct 25, 2022 at 6:19 AM Bodo  wrote:

> OK. Here it is. And .. that will be the reason, I think :
>
> ==>  Oct 25 10:25:18 raspi3 weewx[16267] DEBUG weewx.restx:
> StationRegistry: Failed upload attempt 1: b'FAIL: bad registration info:
> station_url is not a proper URL\n'
>
> If this is the reason - What is a proper station-url ?  Perhaps  'https:\\
> bschnare.de\wp-content\wetter .'  ?
>
>
> Only yours few questions help me for the next times (Where to look, and
> so.) Thank's a lot.
> Regards
> Bodo
> tke...@gmail.com schrieb am Dienstag, 25. Oktober 2022 um 13:58:05 UTC+2:
>
>> What we need is the contents of your system log, /var/log/syslog.
>>
>> On Tue, Oct 25, 2022 at 2:42 AM Bodo  wrote:
>>
>>> Hi Tom.
>>> Thanks for helping me.
>>> How to copy text and lines ? How to open the log-files ? Need some time
>>> to realize this basics. Hope I got the correct lines copied. And I hope
>>> this 'short-lines' will be enough ;-)
>>> Send you 'messages' and 'debug'.
>>>
>>> tke...@gmail.com schrieb am Montag, 24. Oktober 2022 um 12:59:18 UTC+2:
>>>
 I do not see your station in the registry database.

 Set debug=1, restart weewxd, then post the log through the first
 reporting cycle.

 On Mon, Oct 24, 2022 at 1:16 AM Bodo  wrote:

> Hi Peter.
> Thanks for coming back.
> Here comes the section:
>
> [Station]
>
> # Description of the station location
> location = "D-32676 Lügde, Zum Golfplatz"
>
> # Latitude in decimal degrees. Negative for southern hemisphere
> latitude = 51.961166
> # Longitude in decimal degrees. Negative for western hemisphere.
> longitude = 9.237595
>
> # Altitude of the station, with unit it is in. This is downloaded
> from
> # from the station if the hardware supports it.
> altitude = 138, meter# Choose 'foot' or 'meter' for unit
>
> # Set to type of station hardware. There must be a corresponding
> stanza
> # in this file with a 'driver' parameter indicating the driver to
> be used.
> station_type = FineOffsetUSB
>
> # If you have a website, you may specify an URL
> station_url = www.bschnare.de/wp-content/Wetter/index.html
>
> # The start of the rain year (1=January; 10=October, etc.). This is
> # downloaded from the station if the hardware supports it.
> rain_year_start = 1
>
> # Start of week (0=Monday, 6=Sunday)
> week_start = 6
> peterq...@gmail.com schrieb am Sonntag, 23. Oktober 2022 um 18:52:39
> UTC+2:
>
>> Can you post the section of the weewx.conf file with the lat/long?
>>
>> On Sun, Oct 23, 2022 at 9:33 AM Bodo  wrote:
>>
>>> Need a little help, please.
>>> I use weewx for a couple of years and I've learnd a lot in that
>>> time. -->  D-32676 Lügde, Zum Golfplatz (bschnare.de)
>>>  And now I dont
>>> understand why I'm not be able to get my station registered in the map.
>>> Where is my mistake ?
>>> What I have done: in weewx.conf --> register this station = true
>>>
>>>  station_url = www.bschnare.de/wp-content/Wetter/index.html
>>>
>>> latitude = 51.961166
>>>
>>> longitude = 9.237595
>>>
>>> location = "D-32676 Lügde, Zum Golfplatz"
>>>
>>> In the first build - 7 years ago - I also got the registration. In
>>> all other, later builds I dont got it again.
>>> Why ? Where is my mistake ? Please give me an idea.
>>>
>>> Best regards
>>> Bodo
>>> vince schrieb am Montag, 18. April 2022 um 04:51:55 UTC+2:
>>>
 What question specifically regarding Rain Year remains ?

 Check what weewx thinks it is with "wee_device --info" and give us
 the output please.

 On Sunday, April 17, 2022 at 7:24:21 PM UTC-7 jonatha...@gmail.com
 wrote:

> My station now appears on the map, so *Registering* is settled.
> Which leaves open the question of the *Rain Year*.
>
> --
>>> 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/8d4984fb-8a0e-4f04-9a28-3b1f239b59een%40googlegroups.com
>>> 
>>> .
>>>
>>
>>
>> --
>> Peter Quinn
>> (415)794-2264 <(415)%20794-2264>
>>
> --
> You received this message because you are subscribed to the Google
> Groups "weewx-user" 

Re: [weewx-user] Registering my Station & Rain Year

2022-10-25 Thread Bodo
OK. Here it is. And .. that will be the reason, I think :

==>  Oct 25 10:25:18 raspi3 weewx[16267] DEBUG weewx.restx: 
StationRegistry: Failed upload attempt 1: b'FAIL: bad registration info: 
station_url is not a proper URL\n'

If this is the reason - What is a proper station-url ?  Perhaps  
'https:\\bschnare.de\wp-content\wetter .'  ?


Only yours few questions help me for the next times (Where to look, and 
so.) Thank's a lot.
Regards
Bodo
tke...@gmail.com schrieb am Dienstag, 25. Oktober 2022 um 13:58:05 UTC+2:

> What we need is the contents of your system log, /var/log/syslog. 
>
> On Tue, Oct 25, 2022 at 2:42 AM Bodo  wrote:
>
>> Hi Tom.
>> Thanks for helping me.
>> How to copy text and lines ? How to open the log-files ? Need some time 
>> to realize this basics. Hope I got the correct lines copied. And I hope 
>> this 'short-lines' will be enough ;-)
>> Send you 'messages' and 'debug'.
>>
>> tke...@gmail.com schrieb am Montag, 24. Oktober 2022 um 12:59:18 UTC+2:
>>
>>> I do not see your station in the registry database.
>>>
>>> Set debug=1, restart weewxd, then post the log through the first 
>>> reporting cycle.
>>>
>>> On Mon, Oct 24, 2022 at 1:16 AM Bodo  wrote:
>>>
 Hi Peter.
 Thanks for coming back.
 Here comes the section:

 [Station]

 # Description of the station location
 location = "D-32676 Lügde, Zum Golfplatz"

 # Latitude in decimal degrees. Negative for southern hemisphere
 latitude = 51.961166
 # Longitude in decimal degrees. Negative for western hemisphere.
 longitude = 9.237595

 # Altitude of the station, with unit it is in. This is downloaded 
 from
 # from the station if the hardware supports it.
 altitude = 138, meter# Choose 'foot' or 'meter' for unit

 # Set to type of station hardware. There must be a corresponding 
 stanza
 # in this file with a 'driver' parameter indicating the driver to 
 be used.
 station_type = FineOffsetUSB

 # If you have a website, you may specify an URL
 station_url = www.bschnare.de/wp-content/Wetter/index.html

 # The start of the rain year (1=January; 10=October, etc.). This is
 # downloaded from the station if the hardware supports it.
 rain_year_start = 1

 # Start of week (0=Monday, 6=Sunday)
 week_start = 6
 peterq...@gmail.com schrieb am Sonntag, 23. Oktober 2022 um 18:52:39 
 UTC+2:

> Can you post the section of the weewx.conf file with the lat/long?
>
> On Sun, Oct 23, 2022 at 9:33 AM Bodo  wrote:
>
>> Need a little help, please.
>> I use weewx for a couple of years and I've learnd a lot in that time. 
>> -->  D-32676 Lügde, Zum Golfplatz (bschnare.de) 
>>  And now I dont 
>> understand why I'm not be able to get my station registered in the map. 
>> Where is my mistake ?
>> What I have done: in weewx.conf --> register this station = true
>> 
>>  station_url = www.bschnare.de/wp-content/Wetter/index.html
>>   
>> latitude = 51.961166
>>   
>> longitude = 9.237595
>>   
>> location = "D-32676 Lügde, Zum Golfplatz"
>>
>> In the first build - 7 years ago - I also got the registration. In 
>> all other, later builds I dont got it again.
>> Why ? Where is my mistake ? Please give me an idea.
>>
>> Best regards
>> Bodo
>> vince schrieb am Montag, 18. April 2022 um 04:51:55 UTC+2:
>>
>>> What question specifically regarding Rain Year remains ?
>>>
>>> Check what weewx thinks it is with "wee_device --info" and give us 
>>> the output please.
>>>
>>> On Sunday, April 17, 2022 at 7:24:21 PM UTC-7 jonatha...@gmail.com 
>>> wrote:
>>>
 My station now appears on the map, so *Registering* is settled. 
 Which leaves open the question of the *Rain Year*.

 -- 
>> 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/8d4984fb-8a0e-4f04-9a28-3b1f239b59een%40googlegroups.com
>>  
>> 
>> .
>>
>
>
> -- 
> Peter Quinn
> (415)794-2264 <(415)%20794-2264>
>
 -- 
 You received this message 

[weewx-user] Re: Version 4.9.0 available

2022-10-25 Thread David Schulz
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 
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

tke...@gmail.com schrieb am Dienstag, 25. Oktober 2022 um 13:46:36 UTC+2:

> 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.
>
> On Mon, Oct 24, 2022 at 4:13 PM Tom Keffer  wrote:
>
>> 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
>>
>>
>>
>> On Mon, Oct 24, 2022 at 2:57 PM Tom Keffer  wrote:
>>
>>> 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 

Re: [weewx-user] Registering my Station & Rain Year

2022-10-25 Thread Tom Keffer
What we need is the contents of your system log, /var/log/syslog.

On Tue, Oct 25, 2022 at 2:42 AM Bodo  wrote:

> Hi Tom.
> Thanks for helping me.
> How to copy text and lines ? How to open the log-files ? Need some time to
> realize this basics. Hope I got the correct lines copied. And I hope this
> 'short-lines' will be enough ;-)
> Send you 'messages' and 'debug'.
>
> tke...@gmail.com schrieb am Montag, 24. Oktober 2022 um 12:59:18 UTC+2:
>
>> I do not see your station in the registry database.
>>
>> Set debug=1, restart weewxd, then post the log through the first
>> reporting cycle.
>>
>> On Mon, Oct 24, 2022 at 1:16 AM Bodo  wrote:
>>
>>> Hi Peter.
>>> Thanks for coming back.
>>> Here comes the section:
>>>
>>> [Station]
>>>
>>> # Description of the station location
>>> location = "D-32676 Lügde, Zum Golfplatz"
>>>
>>> # Latitude in decimal degrees. Negative for southern hemisphere
>>> latitude = 51.961166
>>> # Longitude in decimal degrees. Negative for western hemisphere.
>>> longitude = 9.237595
>>>
>>> # Altitude of the station, with unit it is in. This is downloaded
>>> from
>>> # from the station if the hardware supports it.
>>> altitude = 138, meter# Choose 'foot' or 'meter' for unit
>>>
>>> # Set to type of station hardware. There must be a corresponding
>>> stanza
>>> # in this file with a 'driver' parameter indicating the driver to be
>>> used.
>>> station_type = FineOffsetUSB
>>>
>>> # If you have a website, you may specify an URL
>>> station_url = www.bschnare.de/wp-content/Wetter/index.html
>>>
>>> # The start of the rain year (1=January; 10=October, etc.). This is
>>> # downloaded from the station if the hardware supports it.
>>> rain_year_start = 1
>>>
>>> # Start of week (0=Monday, 6=Sunday)
>>> week_start = 6
>>> peterq...@gmail.com schrieb am Sonntag, 23. Oktober 2022 um 18:52:39
>>> UTC+2:
>>>
 Can you post the section of the weewx.conf file with the lat/long?

 On Sun, Oct 23, 2022 at 9:33 AM Bodo  wrote:

> Need a little help, please.
> I use weewx for a couple of years and I've learnd a lot in that time.
> -->  D-32676 Lügde, Zum Golfplatz (bschnare.de)
>  And now I dont
> understand why I'm not be able to get my station registered in the map.
> Where is my mistake ?
> What I have done: in weewx.conf --> register this station = true
>
>  station_url = www.bschnare.de/wp-content/Wetter/index.html
>
> latitude = 51.961166
>
> longitude = 9.237595
>
> location = "D-32676 Lügde, Zum Golfplatz"
>
> In the first build - 7 years ago - I also got the registration. In all
> other, later builds I dont got it again.
> Why ? Where is my mistake ? Please give me an idea.
>
> Best regards
> Bodo
> vince schrieb am Montag, 18. April 2022 um 04:51:55 UTC+2:
>
>> What question specifically regarding Rain Year remains ?
>>
>> Check what weewx thinks it is with "wee_device --info" and give us
>> the output please.
>>
>> On Sunday, April 17, 2022 at 7:24:21 PM UTC-7 jonatha...@gmail.com
>> wrote:
>>
>>> My station now appears on the map, so *Registering* is settled.
>>> Which leaves open the question of the *Rain Year*.
>>>
>>> --
> 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/8d4984fb-8a0e-4f04-9a28-3b1f239b59een%40googlegroups.com
> 
> .
>


 --
 Peter Quinn
 (415)794-2264 <(415)%20794-2264>

>>> --
>>> 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/5e88ffdc-4356-4950-be8c-cc5906ee8db2n%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/9e1abd6a-41b8-4955-9abe-8489dd006feen%40googlegroups.com
> 

[weewx-user] Re: Version 4.9.0 available

2022-10-25 Thread Tom Keffer
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.

On Mon, Oct 24, 2022 at 4:13 PM Tom Keffer  wrote:

> 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
>
>
>
> On Mon, Oct 24, 2022 at 2:57 PM Tom Keffer  wrote:
>
>> 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.
>>
>>

-- 
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/CAPq0zEDO6U3C-Zo%2BwqmoNMu0EqRPHv9Sx_DzhgtttFrSWJZQvA%40mail.gmail.com.


Re: [weewx-user] Registering my Station & Rain Year

2022-10-25 Thread Bodo
Hi Tom.
Thanks for helping me.
How to copy text and lines ? How to open the log-files ? Need some time to 
realize this basics. Hope I got the correct lines copied. And I hope this 
'short-lines' will be enough ;-)
Send you 'messages' and 'debug'.

tke...@gmail.com schrieb am Montag, 24. Oktober 2022 um 12:59:18 UTC+2:

> I do not see your station in the registry database.
>
> Set debug=1, restart weewxd, then post the log through the first reporting 
> cycle.
>
> On Mon, Oct 24, 2022 at 1:16 AM Bodo  wrote:
>
>> Hi Peter.
>> Thanks for coming back.
>> Here comes the section:
>>
>> [Station]
>>
>> # Description of the station location
>> location = "D-32676 Lügde, Zum Golfplatz"
>>
>> # Latitude in decimal degrees. Negative for southern hemisphere
>> latitude = 51.961166
>> # Longitude in decimal degrees. Negative for western hemisphere.
>> longitude = 9.237595
>>
>> # Altitude of the station, with unit it is in. This is downloaded from
>> # from the station if the hardware supports it.
>> altitude = 138, meter# Choose 'foot' or 'meter' for unit
>>
>> # Set to type of station hardware. There must be a corresponding 
>> stanza
>> # in this file with a 'driver' parameter indicating the driver to be 
>> used.
>> station_type = FineOffsetUSB
>>
>> # If you have a website, you may specify an URL
>> station_url = www.bschnare.de/wp-content/Wetter/index.html
>>
>> # The start of the rain year (1=January; 10=October, etc.). This is
>> # downloaded from the station if the hardware supports it.
>> rain_year_start = 1
>>
>> # Start of week (0=Monday, 6=Sunday)
>> week_start = 6
>> peterq...@gmail.com schrieb am Sonntag, 23. Oktober 2022 um 18:52:39 
>> UTC+2:
>>
>>> Can you post the section of the weewx.conf file with the lat/long?
>>>
>>> On Sun, Oct 23, 2022 at 9:33 AM Bodo  wrote:
>>>
 Need a little help, please.
 I use weewx for a couple of years and I've learnd a lot in that time. 
 -->  D-32676 Lügde, Zum Golfplatz (bschnare.de) 
  And now I dont 
 understand why I'm not be able to get my station registered in the map. 
 Where is my mistake ?
 What I have done: in weewx.conf --> register this station = true
 
  station_url = www.bschnare.de/wp-content/Wetter/index.html
   
 latitude = 51.961166
   
 longitude = 9.237595
   
 location = "D-32676 Lügde, Zum Golfplatz"

 In the first build - 7 years ago - I also got the registration. In all 
 other, later builds I dont got it again.
 Why ? Where is my mistake ? Please give me an idea.

 Best regards
 Bodo
 vince schrieb am Montag, 18. April 2022 um 04:51:55 UTC+2:

> What question specifically regarding Rain Year remains ?
>
> Check what weewx thinks it is with "wee_device --info" and give us 
> the output please.
>
> On Sunday, April 17, 2022 at 7:24:21 PM UTC-7 jonatha...@gmail.com 
> wrote:
>
>> My station now appears on the map, so *Registering* is settled. 
>> Which leaves open the question of the *Rain Year*.
>>
>> -- 
 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/8d4984fb-8a0e-4f04-9a28-3b1f239b59een%40googlegroups.com
  
 
 .

>>>
>>>
>>> -- 
>>> Peter Quinn
>>> (415)794-2264 <(415)%20794-2264>
>>>
>> -- 
>> 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/5e88ffdc-4356-4950-be8c-cc5906ee8db2n%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/9e1abd6a-41b8-4955-9abe-8489dd006feen%40googlegroups.com.

Oct 25 10:20:52 

Re: [weewx-user] Re: Version 4.9.0 available

2022-10-25 Thread Nate Bargmann
* 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

-- 
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/20221025092735.vbt34zkm4xuqtpsd%40n0nb.us.


signature.asc
Description: PGP signature


Re: [weewx-user] Re: Version 4.9.0 available

2022-10-25 Thread Raffaello Galli
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  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:
>
>> 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
>>
>>
>>
>> On Mon, Oct 24, 2022 at 2:57 PM Tom Keffer  wrote:
>>
>>> 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.
>>>
>>> --
> 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.
>