Re: [weewx-user] Re: Version 4.5.0 released

2021-04-03 Thread Neville Davis
I will also add my weewx.conf shows 4.5.1
Neville

On Sunday, April 4, 2021 at 1:44:31 PM UTC+10 Neville Davis wrote:

> Hi
> Just updated my system to 4.5.1 without problems.
> For information also running Belchertown skin v 1.2 python 3 with OWFS 
> rain bucket.. all good
>
> Neville
>
> On Sunday, April 4, 2021 at 12:19:58 PM UTC+10 mksm...@gmail.com wrote:
>
>> I am sure about this finding 
>> when using "sudo nano /etc/weewx/weewx.conf" the file shows 4.4.0
>> syslog shows "INFO __main__: Starting up weewx version 4.5.1"
>> web page also shows 4.5.1
>>
>> On Sunday, April 4, 2021 at 4:53:54 AM UTC+3 tke...@gmail.com wrote:
>>
>>> Hmmm, the upgrade process should have upgraded the version number in 
>>> weewx.conf. Are you sure you're looking at the right one? If you did a 
>>> Debian install it should be at /etc/weewx/weewx.conf.
>>>
>>> There were no changes to weewx.conf, so, if it comes to it, you can just 
>>> change the version number. But, it would be useful to know what happened.
>>>
>>> On Sat, Apr 3, 2021 at 6:44 PM Mks Mk  wrote:
>>>
 the update to 4.5.1 worked for me this time but have one issue that 
 weewx.conf shows  version  4.4.0 but the generated web page shows WeeWX 
 version 4.5.1
 can I change weewx.conf line to 4.5.1 or keep it as is?

 On Friday, April 2, 2021 at 11:32:40 PM UTC+3 tke...@gmail.com wrote:

> Version 4.5.1 out.
>
> My apologies.
>
> On Fri, Apr 2, 2021 at 1:12 PM Tom Keffer  wrote:
>
>> My mistake. I knew there was a reason why we didn't transition the 
>> old wview schema to the new V4 style!
>>
>> I should have a dot-dot release out later today. 
>>
>> -tk
>>
>> On Fri, Apr 2, 2021 at 12:14 PM Mks Mk  wrote:
>>
>>> the upgrade to 4.5 from 4.4 failed and weewx is broken please advice
>>> used these commands for upgrade
>>> sudo apt update
>>> apt list --upgradable  (4.5 was showing)
>>> sudo apt full-upgrade
>>> then I answered "N" to the upgrade select to keep my old files
>>>
>>> Apr  2 21:31:49 raspberrypi systemd[1]: Starting LSB: weewx weather 
>>> system...
>>> Apr  2 21:31:49 raspberrypi weewx[1049]: Starting weewx weather 
>>> system: weewxTraceback (most recent call last):
>>> Apr  2 21:31:49 raspberrypi weewx[1049]:   File 
>>> "/usr/share/weewx/weewxd", line 29, in 
>>> Apr  2 21:31:49 raspberrypi weewx[1049]: import user.extensions
>>> Apr  2 21:31:49 raspberrypi weewx[1049]:   File 
>>> "/usr/share/weewx/user/extensions.py", line 20, in 
>>> Apr  2 21:31:49 raspberrypi weewx[1049]: schema_extended = 
>>> schemas.wview.schema + [('lightning_strikes', 'REAL'), ('avg_distance', 
>>> 'REAL')]
>>> Apr  2 21:31:49 raspberrypi weewx[1049]: TypeError: unsupported 
>>> operand type(s) for +: 'dict' and 'list'
>>> Apr  2 21:31:49 raspberrypi weewx[1049]:  failed!
>>> Apr  2 21:31:49 raspberrypi systemd[1]: weewx.service: Control 
>>> process exited, code=exited, status=1/FAILURE
>>> Apr  2 21:31:49 raspberrypi systemd[1]: weewx.service: Failed with 
>>> result 'exit-code'.
>>> Apr  2 21:31:49 raspberrypi systemd[1]: Failed to start LSB: weewx 
>>> weather system.
>>> On Friday, April 2, 2021 at 6:11:42 PM UTC+3 tke...@gmail.com wrote:
>>>
 *Change log*

 The utility wee_database has new options --add-column, 
 --rename-column, and
 --drop-columns for adding, renaming, and deleting columns in the 
 database.

 New optional tag ".series()", for creating and formatting series in 
 templates.
 See the document series_tags.md in the docs subdirectory. This is still
 experimental and subject to change! Addresses issue #341.

 New optional tag ".json()" for formatting results as JSON.

 New optional tag ".round()". Useful for rounding results of .raw and 
 .json tags.

 Improved performance when calculating series using aggregation periods 
 that are
 multiples of a day.

 Changed NOAA reports to use the 'normalized_ascii' encoding instead of 
 'utf8'
 (which did not display correctly for most browsers). Fixes issue #646.

 Plots longer than 2 years use a 6 month time increment.

 Uploads to PWSWeather and WOW now use HTTPS. Fixes issue #650.

 Fixed bug that prevented the Vantage driver from waiting before a 
 wakeup retry.
 Thanks to user Les Niles!

 Changed the way of expressing the old "wview" schema to the new V4 way.
 Hopefully, this will lead to fewer support issues. Fixes issue #651.

 Fixed problem where iterating over a time period without an 
 aggregation would
 wrongly include the record on the left.

 Fixed bug that 

Re: [weewx-user] Re: Version 4.5.0 released

2021-04-03 Thread Neville Davis
Hi
Just updated my system to 4.5.1 without problems.
For information also running Belchertown skin v 1.2 python 3 with OWFS rain 
bucket.. all good

Neville

On Sunday, April 4, 2021 at 12:19:58 PM UTC+10 mksm...@gmail.com wrote:

> I am sure about this finding 
> when using "sudo nano /etc/weewx/weewx.conf" the file shows 4.4.0
> syslog shows "INFO __main__: Starting up weewx version 4.5.1"
> web page also shows 4.5.1
>
> On Sunday, April 4, 2021 at 4:53:54 AM UTC+3 tke...@gmail.com wrote:
>
>> Hmmm, the upgrade process should have upgraded the version number in 
>> weewx.conf. Are you sure you're looking at the right one? If you did a 
>> Debian install it should be at /etc/weewx/weewx.conf.
>>
>> There were no changes to weewx.conf, so, if it comes to it, you can just 
>> change the version number. But, it would be useful to know what happened.
>>
>> On Sat, Apr 3, 2021 at 6:44 PM Mks Mk  wrote:
>>
>>> the update to 4.5.1 worked for me this time but have one issue that 
>>> weewx.conf shows  version  4.4.0 but the generated web page shows WeeWX 
>>> version 4.5.1
>>> can I change weewx.conf line to 4.5.1 or keep it as is?
>>>
>>> On Friday, April 2, 2021 at 11:32:40 PM UTC+3 tke...@gmail.com wrote:
>>>
 Version 4.5.1 out.

 My apologies.

 On Fri, Apr 2, 2021 at 1:12 PM Tom Keffer  wrote:

> My mistake. I knew there was a reason why we didn't transition the old 
> wview schema to the new V4 style!
>
> I should have a dot-dot release out later today. 
>
> -tk
>
> On Fri, Apr 2, 2021 at 12:14 PM Mks Mk  wrote:
>
>> the upgrade to 4.5 from 4.4 failed and weewx is broken please advice
>> used these commands for upgrade
>> sudo apt update
>> apt list --upgradable  (4.5 was showing)
>> sudo apt full-upgrade
>> then I answered "N" to the upgrade select to keep my old files
>>
>> Apr  2 21:31:49 raspberrypi systemd[1]: Starting LSB: weewx weather 
>> system...
>> Apr  2 21:31:49 raspberrypi weewx[1049]: Starting weewx weather 
>> system: weewxTraceback (most recent call last):
>> Apr  2 21:31:49 raspberrypi weewx[1049]:   File 
>> "/usr/share/weewx/weewxd", line 29, in 
>> Apr  2 21:31:49 raspberrypi weewx[1049]: import user.extensions
>> Apr  2 21:31:49 raspberrypi weewx[1049]:   File 
>> "/usr/share/weewx/user/extensions.py", line 20, in 
>> Apr  2 21:31:49 raspberrypi weewx[1049]: schema_extended = 
>> schemas.wview.schema + [('lightning_strikes', 'REAL'), ('avg_distance', 
>> 'REAL')]
>> Apr  2 21:31:49 raspberrypi weewx[1049]: TypeError: unsupported 
>> operand type(s) for +: 'dict' and 'list'
>> Apr  2 21:31:49 raspberrypi weewx[1049]:  failed!
>> Apr  2 21:31:49 raspberrypi systemd[1]: weewx.service: Control 
>> process exited, code=exited, status=1/FAILURE
>> Apr  2 21:31:49 raspberrypi systemd[1]: weewx.service: Failed with 
>> result 'exit-code'.
>> Apr  2 21:31:49 raspberrypi systemd[1]: Failed to start LSB: weewx 
>> weather system.
>> On Friday, April 2, 2021 at 6:11:42 PM UTC+3 tke...@gmail.com wrote:
>>
>>> *Change log*
>>>
>>> The utility wee_database has new options --add-column, --rename-column, 
>>> and
>>> --drop-columns for adding, renaming, and deleting columns in the 
>>> database.
>>>
>>> New optional tag ".series()", for creating and formatting series in 
>>> templates.
>>> See the document series_tags.md in the docs subdirectory. This is still
>>> experimental and subject to change! Addresses issue #341.
>>>
>>> New optional tag ".json()" for formatting results as JSON.
>>>
>>> New optional tag ".round()". Useful for rounding results of .raw and 
>>> .json tags.
>>>
>>> Improved performance when calculating series using aggregation periods 
>>> that are
>>> multiples of a day.
>>>
>>> Changed NOAA reports to use the 'normalized_ascii' encoding instead of 
>>> 'utf8'
>>> (which did not display correctly for most browsers). Fixes issue #646.
>>>
>>> Plots longer than 2 years use a 6 month time increment.
>>>
>>> Uploads to PWSWeather and WOW now use HTTPS. Fixes issue #650.
>>>
>>> Fixed bug that prevented the Vantage driver from waiting before a 
>>> wakeup retry.
>>> Thanks to user Les Niles!
>>>
>>> Changed the way of expressing the old "wview" schema to the new V4 way.
>>> Hopefully, this will lead to fewer support issues. Fixes issue #651.
>>>
>>> Fixed problem where iterating over a time period without an aggregation 
>>> would
>>> wrongly include the record on the left.
>>>
>>> Fixed bug that caused the incorrect label to be applied to plots where 
>>> the
>>> aggregation type changes the unit. Fixes issue #654.
>>>
>>> Plots now locate the x-coordinate in the middle of the aggregation 
>>> interval for
>>> 

Re: [weewx-user] Re: Version 4.5.0 released

2021-04-03 Thread Mks Mk
I am sure about this finding 
when using "sudo nano /etc/weewx/weewx.conf" the file shows 4.4.0
syslog shows "INFO __main__: Starting up weewx version 4.5.1"
web page also shows 4.5.1

On Sunday, April 4, 2021 at 4:53:54 AM UTC+3 tke...@gmail.com wrote:

> Hmmm, the upgrade process should have upgraded the version number in 
> weewx.conf. Are you sure you're looking at the right one? If you did a 
> Debian install it should be at /etc/weewx/weewx.conf.
>
> There were no changes to weewx.conf, so, if it comes to it, you can just 
> change the version number. But, it would be useful to know what happened.
>
> On Sat, Apr 3, 2021 at 6:44 PM Mks Mk  wrote:
>
>> the update to 4.5.1 worked for me this time but have one issue that 
>> weewx.conf shows  version  4.4.0 but the generated web page shows WeeWX 
>> version 4.5.1
>> can I change weewx.conf line to 4.5.1 or keep it as is?
>>
>> On Friday, April 2, 2021 at 11:32:40 PM UTC+3 tke...@gmail.com wrote:
>>
>>> Version 4.5.1 out.
>>>
>>> My apologies.
>>>
>>> On Fri, Apr 2, 2021 at 1:12 PM Tom Keffer  wrote:
>>>
 My mistake. I knew there was a reason why we didn't transition the old 
 wview schema to the new V4 style!

 I should have a dot-dot release out later today. 

 -tk

 On Fri, Apr 2, 2021 at 12:14 PM Mks Mk  wrote:

> the upgrade to 4.5 from 4.4 failed and weewx is broken please advice
> used these commands for upgrade
> sudo apt update
> apt list --upgradable  (4.5 was showing)
> sudo apt full-upgrade
> then I answered "N" to the upgrade select to keep my old files
>
> Apr  2 21:31:49 raspberrypi systemd[1]: Starting LSB: weewx weather 
> system...
> Apr  2 21:31:49 raspberrypi weewx[1049]: Starting weewx weather 
> system: weewxTraceback (most recent call last):
> Apr  2 21:31:49 raspberrypi weewx[1049]:   File 
> "/usr/share/weewx/weewxd", line 29, in 
> Apr  2 21:31:49 raspberrypi weewx[1049]: import user.extensions
> Apr  2 21:31:49 raspberrypi weewx[1049]:   File 
> "/usr/share/weewx/user/extensions.py", line 20, in 
> Apr  2 21:31:49 raspberrypi weewx[1049]: schema_extended = 
> schemas.wview.schema + [('lightning_strikes', 'REAL'), ('avg_distance', 
> 'REAL')]
> Apr  2 21:31:49 raspberrypi weewx[1049]: TypeError: unsupported 
> operand type(s) for +: 'dict' and 'list'
> Apr  2 21:31:49 raspberrypi weewx[1049]:  failed!
> Apr  2 21:31:49 raspberrypi systemd[1]: weewx.service: Control process 
> exited, code=exited, status=1/FAILURE
> Apr  2 21:31:49 raspberrypi systemd[1]: weewx.service: Failed with 
> result 'exit-code'.
> Apr  2 21:31:49 raspberrypi systemd[1]: Failed to start LSB: weewx 
> weather system.
> On Friday, April 2, 2021 at 6:11:42 PM UTC+3 tke...@gmail.com wrote:
>
>> *Change log*
>>
>> The utility wee_database has new options --add-column, --rename-column, 
>> and
>> --drop-columns for adding, renaming, and deleting columns in the 
>> database.
>>
>> New optional tag ".series()", for creating and formatting series in 
>> templates.
>> See the document series_tags.md in the docs subdirectory. This is still
>> experimental and subject to change! Addresses issue #341.
>>
>> New optional tag ".json()" for formatting results as JSON.
>>
>> New optional tag ".round()". Useful for rounding results of .raw and 
>> .json tags.
>>
>> Improved performance when calculating series using aggregation periods 
>> that are
>> multiples of a day.
>>
>> Changed NOAA reports to use the 'normalized_ascii' encoding instead of 
>> 'utf8'
>> (which did not display correctly for most browsers). Fixes issue #646.
>>
>> Plots longer than 2 years use a 6 month time increment.
>>
>> Uploads to PWSWeather and WOW now use HTTPS. Fixes issue #650.
>>
>> Fixed bug that prevented the Vantage driver from waiting before a wakeup 
>> retry.
>> Thanks to user Les Niles!
>>
>> Changed the way of expressing the old "wview" schema to the new V4 way.
>> Hopefully, this will lead to fewer support issues. Fixes issue #651.
>>
>> Fixed problem where iterating over a time period without an aggregation 
>> would
>> wrongly include the record on the left.
>>
>> Fixed bug that caused the incorrect label to be applied to plots where 
>> the
>> aggregation type changes the unit. Fixes issue #654.
>>
>> Plots now locate the x-coordinate in the middle of the aggregation 
>> interval for
>> all aggregation types (not just min, max, avg). Revisits PR #232.
>>
>> Added new time units 'unix_epoch_ms' and 'unix_epoch_ns', which are unix 
>> epoch
>> time in milliseconds and nanoseconds, respectively.
>>
>> The FTP uploader now calculates and saves a hash value for each uploaded 
>> file.
>> If it does not 

Re: [weewx-user] Re: Version 4.5.0 released

2021-04-03 Thread Tom Keffer
Hmmm, the upgrade process should have upgraded the version number in
weewx.conf. Are you sure you're looking at the right one? If you did a
Debian install it should be at /etc/weewx/weewx.conf.

There were no changes to weewx.conf, so, if it comes to it, you can just
change the version number. But, it would be useful to know what happened.

On Sat, Apr 3, 2021 at 6:44 PM Mks Mk  wrote:

> the update to 4.5.1 worked for me this time but have one issue that
> weewx.conf shows  version  4.4.0 but the generated web page shows WeeWX
> version 4.5.1
> can I change weewx.conf line to 4.5.1 or keep it as is?
>
> On Friday, April 2, 2021 at 11:32:40 PM UTC+3 tke...@gmail.com wrote:
>
>> Version 4.5.1 out.
>>
>> My apologies.
>>
>> On Fri, Apr 2, 2021 at 1:12 PM Tom Keffer  wrote:
>>
>>> My mistake. I knew there was a reason why we didn't transition the old
>>> wview schema to the new V4 style!
>>>
>>> I should have a dot-dot release out later today.
>>>
>>> -tk
>>>
>>> On Fri, Apr 2, 2021 at 12:14 PM Mks Mk  wrote:
>>>
 the upgrade to 4.5 from 4.4 failed and weewx is broken please advice
 used these commands for upgrade
 sudo apt update
 apt list --upgradable  (4.5 was showing)
 sudo apt full-upgrade
 then I answered "N" to the upgrade select to keep my old files

 Apr  2 21:31:49 raspberrypi systemd[1]: Starting LSB: weewx weather
 system...
 Apr  2 21:31:49 raspberrypi weewx[1049]: Starting weewx weather system:
 weewxTraceback (most recent call last):
 Apr  2 21:31:49 raspberrypi weewx[1049]:   File
 "/usr/share/weewx/weewxd", line 29, in 
 Apr  2 21:31:49 raspberrypi weewx[1049]: import user.extensions
 Apr  2 21:31:49 raspberrypi weewx[1049]:   File
 "/usr/share/weewx/user/extensions.py", line 20, in 
 Apr  2 21:31:49 raspberrypi weewx[1049]: schema_extended =
 schemas.wview.schema + [('lightning_strikes', 'REAL'), ('avg_distance',
 'REAL')]
 Apr  2 21:31:49 raspberrypi weewx[1049]: TypeError: unsupported operand
 type(s) for +: 'dict' and 'list'
 Apr  2 21:31:49 raspberrypi weewx[1049]:  failed!
 Apr  2 21:31:49 raspberrypi systemd[1]: weewx.service: Control process
 exited, code=exited, status=1/FAILURE
 Apr  2 21:31:49 raspberrypi systemd[1]: weewx.service: Failed with
 result 'exit-code'.
 Apr  2 21:31:49 raspberrypi systemd[1]: Failed to start LSB: weewx
 weather system.
 On Friday, April 2, 2021 at 6:11:42 PM UTC+3 tke...@gmail.com wrote:

> *Change log*
>
> The utility wee_database has new options --add-column, --rename-column, 
> and
> --drop-columns for adding, renaming, and deleting columns in the database.
>
> New optional tag ".series()", for creating and formatting series in 
> templates.
> See the document series_tags.md in the docs subdirectory. This is still
> experimental and subject to change! Addresses issue #341.
>
> New optional tag ".json()" for formatting results as JSON.
>
> New optional tag ".round()". Useful for rounding results of .raw and 
> .json tags.
>
> Improved performance when calculating series using aggregation periods 
> that are
> multiples of a day.
>
> Changed NOAA reports to use the 'normalized_ascii' encoding instead of 
> 'utf8'
> (which did not display correctly for most browsers). Fixes issue #646.
>
> Plots longer than 2 years use a 6 month time increment.
>
> Uploads to PWSWeather and WOW now use HTTPS. Fixes issue #650.
>
> Fixed bug that prevented the Vantage driver from waiting before a wakeup 
> retry.
> Thanks to user Les Niles!
>
> Changed the way of expressing the old "wview" schema to the new V4 way.
> Hopefully, this will lead to fewer support issues. Fixes issue #651.
>
> Fixed problem where iterating over a time period without an aggregation 
> would
> wrongly include the record on the left.
>
> Fixed bug that caused the incorrect label to be applied to plots where the
> aggregation type changes the unit. Fixes issue #654.
>
> Plots now locate the x-coordinate in the middle of the aggregation 
> interval for
> all aggregation types (not just min, max, avg). Revisits PR #232.
>
> Added new time units 'unix_epoch_ms' and 'unix_epoch_ns', which are unix 
> epoch
> time in milliseconds and nanoseconds, respectively.
>
> The FTP uploader now calculates and saves a hash value for each uploaded 
> file.
> If it does not change, the file is not uploaded, resulting in significant
> time savings. PR #655. Thanks to user Karen!
>
> Updated the version of six.py included with WeeWX to 1.15.0. Fixes issue 
> #657.
>
> Option aggregate_interval can now be specified by using one of the 
> "shortcuts",
> that is, 'hour', 'day', 'week', 'month', or 'year'.
>
> Options "log_success" and 

Re: [weewx-user] Re: Version 4.5.0 released

2021-04-03 Thread Mks Mk
the update to 4.5.1 worked for me this time but have one issue that 
weewx.conf shows  version  4.4.0 but the generated web page shows WeeWX 
version 4.5.1
can I change weewx.conf line to 4.5.1 or keep it as is?

On Friday, April 2, 2021 at 11:32:40 PM UTC+3 tke...@gmail.com wrote:

> Version 4.5.1 out.
>
> My apologies.
>
> On Fri, Apr 2, 2021 at 1:12 PM Tom Keffer  wrote:
>
>> My mistake. I knew there was a reason why we didn't transition the old 
>> wview schema to the new V4 style!
>>
>> I should have a dot-dot release out later today. 
>>
>> -tk
>>
>> On Fri, Apr 2, 2021 at 12:14 PM Mks Mk  wrote:
>>
>>> the upgrade to 4.5 from 4.4 failed and weewx is broken please advice
>>> used these commands for upgrade
>>> sudo apt update
>>> apt list --upgradable  (4.5 was showing)
>>> sudo apt full-upgrade
>>> then I answered "N" to the upgrade select to keep my old files
>>>
>>> Apr  2 21:31:49 raspberrypi systemd[1]: Starting LSB: weewx weather 
>>> system...
>>> Apr  2 21:31:49 raspberrypi weewx[1049]: Starting weewx weather system: 
>>> weewxTraceback (most recent call last):
>>> Apr  2 21:31:49 raspberrypi weewx[1049]:   File 
>>> "/usr/share/weewx/weewxd", line 29, in 
>>> Apr  2 21:31:49 raspberrypi weewx[1049]: import user.extensions
>>> Apr  2 21:31:49 raspberrypi weewx[1049]:   File 
>>> "/usr/share/weewx/user/extensions.py", line 20, in 
>>> Apr  2 21:31:49 raspberrypi weewx[1049]: schema_extended = 
>>> schemas.wview.schema + [('lightning_strikes', 'REAL'), ('avg_distance', 
>>> 'REAL')]
>>> Apr  2 21:31:49 raspberrypi weewx[1049]: TypeError: unsupported operand 
>>> type(s) for +: 'dict' and 'list'
>>> Apr  2 21:31:49 raspberrypi weewx[1049]:  failed!
>>> Apr  2 21:31:49 raspberrypi systemd[1]: weewx.service: Control process 
>>> exited, code=exited, status=1/FAILURE
>>> Apr  2 21:31:49 raspberrypi systemd[1]: weewx.service: Failed with 
>>> result 'exit-code'.
>>> Apr  2 21:31:49 raspberrypi systemd[1]: Failed to start LSB: weewx 
>>> weather system.
>>> On Friday, April 2, 2021 at 6:11:42 PM UTC+3 tke...@gmail.com wrote:
>>>
 *Change log*

 The utility wee_database has new options --add-column, --rename-column, and
 --drop-columns for adding, renaming, and deleting columns in the database.

 New optional tag ".series()", for creating and formatting series in 
 templates.
 See the document series_tags.md in the docs subdirectory. This is still
 experimental and subject to change! Addresses issue #341.

 New optional tag ".json()" for formatting results as JSON.

 New optional tag ".round()". Useful for rounding results of .raw and .json 
 tags.

 Improved performance when calculating series using aggregation periods 
 that are
 multiples of a day.

 Changed NOAA reports to use the 'normalized_ascii' encoding instead of 
 'utf8'
 (which did not display correctly for most browsers). Fixes issue #646.

 Plots longer than 2 years use a 6 month time increment.

 Uploads to PWSWeather and WOW now use HTTPS. Fixes issue #650.

 Fixed bug that prevented the Vantage driver from waiting before a wakeup 
 retry.
 Thanks to user Les Niles!

 Changed the way of expressing the old "wview" schema to the new V4 way.
 Hopefully, this will lead to fewer support issues. Fixes issue #651.

 Fixed problem where iterating over a time period without an aggregation 
 would
 wrongly include the record on the left.

 Fixed bug that caused the incorrect label to be applied to plots where the
 aggregation type changes the unit. Fixes issue #654.

 Plots now locate the x-coordinate in the middle of the aggregation 
 interval for
 all aggregation types (not just min, max, avg). Revisits PR #232.

 Added new time units 'unix_epoch_ms' and 'unix_epoch_ns', which are unix 
 epoch
 time in milliseconds and nanoseconds, respectively.

 The FTP uploader now calculates and saves a hash value for each uploaded 
 file.
 If it does not change, the file is not uploaded, resulting in significant
 time savings. PR #655. Thanks to user Karen!

 Updated the version of six.py included with WeeWX to 1.15.0. Fixes issue 
 #657.

 Option aggregate_interval can now be specified by using one of the 
 "shortcuts",
 that is, 'hour', 'day', 'week', 'month', or 'year'.

 Options "log_success" and "log_failure" are now honored by the StdArchive
 service.


 -- 
>>> 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/0dea450f-7d87-4470-a552-634375db58aan%40googlegroups.com
>>>  
>>> 

Re: [weewx-user] Civil twilight list for a year

2021-04-03 Thread Tom Keffer
There is no programmatic way to get the results in UTC, although I suppose
you could subtract your UTC offset from the results.

For prior years, you can use the argument "years_ago". For example, for
last year:

#for $day in $year(years_ago=1).days
$day.dateTime.format("%d/%m/%Y");$almanac(almanac_time=$day.dateTime.raw,
horizon=-6).sun(use_center=1).rise;$almanac(almanac_time=$day.dateTime.raw,
horizon=-6).sun(use_center=1).set
#end for

You really should look at the Customizing Guide
. It's all in there.

-tk


On Sat, Apr 3, 2021 at 7:35 AM Blaise  wrote:

> Ah Yesss, perfect !
>
> #for $day in $year.days
> $day.dateTime.format("%d/%m/%Y");$almanac(almanac_time=$day.dateTime.raw, 
> horizon=-6).sun(use_center=1).rise;$almanac(almanac_time=$day.dateTime.raw, 
> horizon=-6).sun(use_center=1).set
> #end for
>
> I'm starting to apprehend language (I was gone in a loop for Each)
>
> However, the result takes into account the time zone but also summer /
> winter hours. Is it possible to have that in UTC 0?
> And how to choose another year?
>
> Thank you again, it's great for my automatons!
>
>
> Le 03-04-21 à 15:14, Tom Keffer a écrit :
>
> Something like this (NOT TESTED) should give you a table of sunrise and
> sunset:
>
> 
> #for $day in $year.days
>   
> $day.dateTime.format("%Y-%m-%d")
> $almanac(almanac_time=$day.dateTime.raw,
> horizon=-6).sun(use_center=1).rise
> $almanac(almanac_time=$day.dateTime.raw,
> horizon=-6).sun(use_center=1).set
>   
> #end for
> 
>
> -tk
>
> On Sat, Apr 3, 2021 at 3:28 AM P C  wrote:
>
>> Hello,
>> I would like to be able to generate a CSV file with the 365 or 366 days
>> of any year with the dusk civilians (6 °) of the sun:
>> I include "hard" the year, and so these 3 output values:
>>
>> date;
>> $almanac(horizon=-6).sun(use_center=1).rise;
>> $almanac(horizon=-6).sun(use_center=1).set
>>
>> I know you have to use a model of the genre "crepuscules.csv.tmpl" etc.
>>
>> It is of course at the level of the code that I am blocked: I do not see
>> how to browse the dates.
>>
>> Well to you,
>> Pascal --
>> 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/968a02fe-6806-4141-a0aa-594a79b332e6n%40googlegroups.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/RX9r8kX_oN4/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CAPq0zEBNq9GKZBqvGCmuph%3DMxWTOibyRnUf6xzy3pOnhKzyF0g%40mail.gmail.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/61f11b22-1cbc-117b-f0ef-658c8808b17c%40gmail.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/CAPq0zEDfG-9OZ2dDC5-PpxSZaSX1xLUkUcYL02rPdHCUL2GudQ%40mail.gmail.com.


Re: [weewx-user] British Geological Survey - earthquakes

2021-04-03 Thread Tom Keffer
Your own seismograph? Now that's cool! Tell us more.

On Sat, Apr 3, 2021 at 10:21 AM Mike Harold Chan 
wrote:

> No Im using Usgs and gem,  I have also mu own seismograph sending directly
> to my web server pimohweather.com/wxquake.php
>
> On Tue, Mar 30, 2021, 5:56 PM Auchtermuchty Weather 
> wrote:
>
>> Is anyone using the BGS as an earthquake server?
>>
>> --
>> 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/aa6a8f8b-a894-4627-9374-4e2ed94b0d40n%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/CAKjfRKkQZyR5WZ%3DxpfFZ_AV6jbDO3J31Xc3WESWKwU7ono6%2BGg%40mail.gmail.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/CAPq0zEBmVaiWP%3DG5Co7Vkicp%3DGYNNsJK56j9an0%2BY36WsEqJWQ%40mail.gmail.com.


Re: [weewx-user] Re: Version 4.5.0 released

2021-04-03 Thread tarob...@gmail.com
Upgraded from 4.4 to 4.5.1 via sudo apt without stopping weewx and had no 
issues. Running on Raspberry Pi 4, Raspbian buster.

On Saturday, April 3, 2021 at 2:47:20 PM UTC-4 PJO wrote:

> I updated (via sudo apt upgrade, after stopping weewx) from 4.4 to 4.5.1 
> on Ubuntu 20.04 Core opting to get an updated weewx.conf
>
> Configuration file '/etc/weewx/weewx.conf'
>  ==> Modified (by you or by a script) since installation.
>  ==> Package distributor has shipped an updated version.
>What would you like to do about it ?  Your options are:
> Y or I  : install the package maintainer's version
> N or O  : keep your currently-installed version
>   D : show the differences between the versions
>   Z : start a shell to examine the situation
>  The default action is to keep your current version.
> *** weewx.conf (Y/I/N/O/D/Z) [default=N] ? Y
> Installing new version of config file /etc/weewx/weewx.conf ...
> Installing new version of config file /etc/weewx/weewx.conf.dist ...
> using debconf configuration values from previous install
> update-rc.d: error: unable to read /etc/init.d/weewx
> dpkg: error processing package weewx (--configure):
>  installed weewx package post-installation script subprocess returned 
> error exit status 1
> Processing triggers for systemd (245.4-4ubuntu3.5) ...
> Errors were encountered while processing:
>  weewx
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
> I ended up with a bad weewx.conf and had to restore weewx.conf.dpkg-old
> On Saturday, April 3, 2021 at 1:24:52 PM UTC+1 tke...@gmail.com wrote:
>
>> Yes, it's possible to extend the V4 schema. That's what is documented in 
>> the section *Modifying a starting schema 
>> . *
>>
>> But, let's keep the wview schema at V3. 
>>
>> On Sat, Apr 3, 2021 at 1:21 AM Gérard P  wrote:
>>
>>> It is possible to stay with 4.5.0 by changing the syntax of code using 
>>> the "+" operator, for instance :
>>> schema_extended = schemas.wview.schema + [('lightning_strikes', 
>>> 'REAL'), ('avg_distance', 'REAL')]
>>> become
>>> schema_extended = schemas.wview.schema.copy()
>>> schema_extended.update([('lightning_strikes', 'REAL'), 
>>> ('avg_distance', 'REAL')])
>>>
>>> Le vendredi 2 avril 2021 à 21:14:27 UTC+2, mksm...@gmail.com a écrit :
>>>
 the upgrade to 4.5 from 4.4 failed and weewx is broken please advice
 used these commands for upgrade
 sudo apt update
 apt list --upgradable  (4.5 was showing)
 sudo apt full-upgrade
 then I answered "N" to the upgrade select to keep my old files

 Apr  2 21:31:49 raspberrypi systemd[1]: Starting LSB: weewx weather 
 system...
 Apr  2 21:31:49 raspberrypi weewx[1049]: Starting weewx weather system: 
 weewxTraceback (most recent call last):
 Apr  2 21:31:49 raspberrypi weewx[1049]:   File 
 "/usr/share/weewx/weewxd", line 29, in 
 Apr  2 21:31:49 raspberrypi weewx[1049]: import user.extensions
 Apr  2 21:31:49 raspberrypi weewx[1049]:   File 
 "/usr/share/weewx/user/extensions.py", line 20, in 
 Apr  2 21:31:49 raspberrypi weewx[1049]: schema_extended = 
 schemas.wview.schema + [('lightning_strikes', 'REAL'), ('avg_distance', 
 'REAL')]
 Apr  2 21:31:49 raspberrypi weewx[1049]: TypeError: unsupported operand 
 type(s) for +: 'dict' and 'list'
 Apr  2 21:31:49 raspberrypi weewx[1049]:  failed!
 Apr  2 21:31:49 raspberrypi systemd[1]: weewx.service: Control process 
 exited, code=exited, status=1/FAILURE
 Apr  2 21:31:49 raspberrypi systemd[1]: weewx.service: Failed with 
 result 'exit-code'.
 Apr  2 21:31:49 raspberrypi systemd[1]: Failed to start LSB: weewx 
 weather system.

>>>
>>> -- 
>>> 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/a14fa3bd-3a52-4df4-be1b-00936e9f7f67n%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/7aafd4d5-7a6e-4656-9b79-91af5b311604n%40googlegroups.com.


Re: [weewx-user] Re: Version 4.5.0 released

2021-04-03 Thread PJO
I updated (via sudo apt upgrade, after stopping weewx) from 4.4 to 4.5.1 on 
Ubuntu 20.04 Core opting to get an updated weewx.conf

Configuration file '/etc/weewx/weewx.conf'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
Y or I  : install the package maintainer's version
N or O  : keep your currently-installed version
  D : show the differences between the versions
  Z : start a shell to examine the situation
 The default action is to keep your current version.
*** weewx.conf (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/weewx/weewx.conf ...
Installing new version of config file /etc/weewx/weewx.conf.dist ...
using debconf configuration values from previous install
update-rc.d: error: unable to read /etc/init.d/weewx
dpkg: error processing package weewx (--configure):
 installed weewx package post-installation script subprocess returned error 
exit status 1
Processing triggers for systemd (245.4-4ubuntu3.5) ...
Errors were encountered while processing:
 weewx
E: Sub-process /usr/bin/dpkg returned an error code (1)

I ended up with a bad weewx.conf and had to restore weewx.conf.dpkg-old
On Saturday, April 3, 2021 at 1:24:52 PM UTC+1 tke...@gmail.com wrote:

> Yes, it's possible to extend the V4 schema. That's what is documented in 
> the section *Modifying a starting schema 
> . *
>
> But, let's keep the wview schema at V3. 
>
> On Sat, Apr 3, 2021 at 1:21 AM Gérard P  wrote:
>
>> It is possible to stay with 4.5.0 by changing the syntax of code using 
>> the "+" operator, for instance :
>> schema_extended = schemas.wview.schema + [('lightning_strikes', 
>> 'REAL'), ('avg_distance', 'REAL')]
>> become
>> schema_extended = schemas.wview.schema.copy()
>> schema_extended.update([('lightning_strikes', 'REAL'), 
>> ('avg_distance', 'REAL')])
>>
>> Le vendredi 2 avril 2021 à 21:14:27 UTC+2, mksm...@gmail.com a écrit :
>>
>>> the upgrade to 4.5 from 4.4 failed and weewx is broken please advice
>>> used these commands for upgrade
>>> sudo apt update
>>> apt list --upgradable  (4.5 was showing)
>>> sudo apt full-upgrade
>>> then I answered "N" to the upgrade select to keep my old files
>>>
>>> Apr  2 21:31:49 raspberrypi systemd[1]: Starting LSB: weewx weather 
>>> system...
>>> Apr  2 21:31:49 raspberrypi weewx[1049]: Starting weewx weather system: 
>>> weewxTraceback (most recent call last):
>>> Apr  2 21:31:49 raspberrypi weewx[1049]:   File 
>>> "/usr/share/weewx/weewxd", line 29, in 
>>> Apr  2 21:31:49 raspberrypi weewx[1049]: import user.extensions
>>> Apr  2 21:31:49 raspberrypi weewx[1049]:   File 
>>> "/usr/share/weewx/user/extensions.py", line 20, in 
>>> Apr  2 21:31:49 raspberrypi weewx[1049]: schema_extended = 
>>> schemas.wview.schema + [('lightning_strikes', 'REAL'), ('avg_distance', 
>>> 'REAL')]
>>> Apr  2 21:31:49 raspberrypi weewx[1049]: TypeError: unsupported operand 
>>> type(s) for +: 'dict' and 'list'
>>> Apr  2 21:31:49 raspberrypi weewx[1049]:  failed!
>>> Apr  2 21:31:49 raspberrypi systemd[1]: weewx.service: Control process 
>>> exited, code=exited, status=1/FAILURE
>>> Apr  2 21:31:49 raspberrypi systemd[1]: weewx.service: Failed with 
>>> result 'exit-code'.
>>> Apr  2 21:31:49 raspberrypi systemd[1]: Failed to start LSB: weewx 
>>> weather system.
>>>
>>
>> -- 
>> 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/a14fa3bd-3a52-4df4-be1b-00936e9f7f67n%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/31a24e8b-7fa4-4efb-88d1-3b22c955c5cbn%40googlegroups.com.


Re: [weewx-user] Imported rain data not being summarised.

2021-04-03 Thread Tom Keffer
Good point. Make sure you delete the files first (as per post a couple
messages up this thread).

On Sat, Apr 3, 2021 at 10:53 AM gjr80  wrote:

> Perhaps I have misread the log extract but there seems to be some seven
> odd years of data in the db yet only eight files were generated in the
> first report cycle. If the NOAA files were deleted and re-generated I would
> have expected to see some 97 odd files being produced. Are you sure the
> NOAA reports were indeed deleted?
>
> Gary
>
> On Sunday, 4 April 2021 at 03:27:54 UTC+10 tke...@gmail.com wrote:
>
>> That all looks normal. What is in the NOAA subdirectory? Still blank
>> lines?
>>
>> On Sat, Apr 3, 2021 at 10:19 AM Alastair  wrote:
>>
>>> Hi.  Log attached.  Hope I got this right and it's what you need .
>>> Yes, I saw the 3 months missing data.  This weather station is in
>>> Scotland - it's pretty well guaranteed to rain at least every other day.
>>> The missing data must have been during one of the many occasions where the
>>> old weather station was acting up : (
>>> Thanks again.
>>>
>>> On Sat, 3 Apr 2021 at 13:44, Tom Keffer  wrote:
>>>
 That looks OK. I assume your site did not have rain for 3 months?

 We will need to see the log.

 Stop weewx
 Delete all the NOAA files
 Set debug=1 in weewx.conf
 Restart weewxd
 Post the log from startup through the first reporting cycle.

 -tk

 On Fri, Apr 2, 2021 at 11:40 PM Alastair  wrote:

> Here's the data from the query you sent.
>
> sqlite> select datetime(min(dateTime),'unixepoch','localtime'),
> sum(count), sum(sum) from archive_day_rain where
> strftime("%Y",dateTime,'unixepoch','localtime')='2014' group by
> strftime("%Y-%m",dateTime,'unixepoch','localtime');
> 2014-01-01 00:00:00|2941|5.858267927
> 2014-02-01 00:00:00|2685|10.110236633
> 2014-03-01 00:00:00|7364|24.838583605
> 2014-04-01 00:00:00|2974|0.0
> 2014-05-01 00:00:00|2564|0.0
> 2014-06-01 00:00:00|2562|0.0
> 2014-07-01 00:00:00|2778|2.78740166
> 2014-08-01 00:00:00|2082|24.307087427
> 2014-09-01 00:00:00|2873|10.759842921
> 2014-10-01 00:00:00|2972|27.248032548
> 2014-11-01 00:00:00|2875|4.110236407
> 2014-12-01 00:00:00|2974|2.964567051
>
> Thanks
>
>
> On Fri, 2 Apr 2021 at 18:20, Tom Keffer  wrote:
>
>> Whether or not something appears in the yearly summaries depends on
>> 'count', not 'sum'. Try this query for 2014
>>
>> sqlite> *select datetime(min(dateTime),'unixepoch','localtime'),
>> sum(count), sum(sum) from archive_day_rain where
>> strftime("%Y",dateTime,'unixepoch','localtime')='2014' group by
>> strftime("%Y-%m",dateTime,'unixepoch','localtime');*
>>
>> Please cut and paste, rather than use screen shots. They take less
>> space, are easier to read, and can be searched.
>>
>> On Fri, Apr 2, 2021 at 9:44 AM Alastair  wrote:
>>
>>> Hi Tom, many thanks for your response, apologies it wasn’t too
>>> clear.
>>>
>>> Yes I deleted and regenerated the reports after adding my old WS
>>> data.
>>>
>>> For info, I started using weewx with my new WS on dateTime =
>>> 1588201200 / 29-Apr-20. Before that date is the imported data from my 
>>> old
>>> WS.  Here is a screenshot showing some data either side of that date 
>>> (*select
>>> datetime(dateTime,'unixepoch','localtime'), sum from archive_day_rain;)*
>>>
>>>
>>> [image: image.png]
>>>
>>>
>>> And here is the result of the second query  (*select
>>> datetime(min(dateTime),'unixepoch','localtime'), sum(sum) from
>>> archive_day_rain group by 
>>> strftime("%Y",dateTime,'unixepoch','localtime')*
>>>
>>>
>>> [image: image.png]
>>>
>>>
>>> So thankfully it looks like my imported rain data has been processed.
>>>
>>> However, here's a screenshot of  an example annual  summary for 2014
>>> with the precipitation summary blank.  (Note that the wind and 
>>> temperature
>>> summary is summarised)
>>> [image: image.png]
>>>
>>> Any thoughts would be very welcome.
>>>
>>> Thanks again.
>>>
>>> Alastair
>>>
>>> On Fri, 2 Apr 2021 at 13:22, Tom Keffer  wrote:
>>>
 Hello,

 If I understand correctly, you deleted, then regenerated all of the
 NOAA monthly and yearly reports.

 When you say "precipitation summary data remains blank," do you
 mean each line in one of the summaries? Or, do you mean the totals at 
 the
 bottom of the page? And, is it every line? Or, only an occasional line?

 It's worth looking at what is in the daily summary database. This
 should do it:

 *sqlite3 weewx.sdb*
 sqlite> *select datetime(dateTime,'unixepoch','localtime'), sum
 from archive_day_rain;*
 sqlite> 

Re: [weewx-user] Imported rain data not being summarised.

2021-04-03 Thread gjr80
Perhaps I have misread the log extract but there seems to be some seven odd 
years of data in the db yet only eight files were generated in the first 
report cycle. If the NOAA files were deleted and re-generated I would have 
expected to see some 97 odd files being produced. Are you sure the NOAA 
reports were indeed deleted?

Gary

On Sunday, 4 April 2021 at 03:27:54 UTC+10 tke...@gmail.com wrote:

> That all looks normal. What is in the NOAA subdirectory? Still blank lines?
>
> On Sat, Apr 3, 2021 at 10:19 AM Alastair  wrote:
>
>> Hi.  Log attached.  Hope I got this right and it's what you need .  
>> Yes, I saw the 3 months missing data.  This weather station is in 
>> Scotland - it's pretty well guaranteed to rain at least every other day.  
>> The missing data must have been during one of the many occasions where the 
>> old weather station was acting up : (
>> Thanks again.
>>
>> On Sat, 3 Apr 2021 at 13:44, Tom Keffer  wrote:
>>
>>> That looks OK. I assume your site did not have rain for 3 months?
>>>
>>> We will need to see the log.
>>>
>>> Stop weewx
>>> Delete all the NOAA files
>>> Set debug=1 in weewx.conf
>>> Restart weewxd
>>> Post the log from startup through the first reporting cycle.
>>>
>>> -tk
>>>
>>> On Fri, Apr 2, 2021 at 11:40 PM Alastair  wrote:
>>>
 Here's the data from the query you sent. 

 sqlite> select datetime(min(dateTime),'unixepoch','localtime'), 
 sum(count), sum(sum) from archive_day_rain where 
 strftime("%Y",dateTime,'unixepoch','localtime')='2014' group by 
 strftime("%Y-%m",dateTime,'unixepoch','localtime');
 2014-01-01 00:00:00|2941|5.858267927
 2014-02-01 00:00:00|2685|10.110236633
 2014-03-01 00:00:00|7364|24.838583605
 2014-04-01 00:00:00|2974|0.0
 2014-05-01 00:00:00|2564|0.0
 2014-06-01 00:00:00|2562|0.0
 2014-07-01 00:00:00|2778|2.78740166
 2014-08-01 00:00:00|2082|24.307087427
 2014-09-01 00:00:00|2873|10.759842921
 2014-10-01 00:00:00|2972|27.248032548
 2014-11-01 00:00:00|2875|4.110236407
 2014-12-01 00:00:00|2974|2.964567051

 Thanks


 On Fri, 2 Apr 2021 at 18:20, Tom Keffer  wrote:

> Whether or not something appears in the yearly summaries depends on 
> 'count', not 'sum'. Try this query for 2014
>
> sqlite> *select datetime(min(dateTime),'unixepoch','localtime'), 
> sum(count), sum(sum) from archive_day_rain where 
> strftime("%Y",dateTime,'unixepoch','localtime')='2014' group by 
> strftime("%Y-%m",dateTime,'unixepoch','localtime');*
>
> Please cut and paste, rather than use screen shots. They take less 
> space, are easier to read, and can be searched.
>
> On Fri, Apr 2, 2021 at 9:44 AM Alastair  wrote:
>
>> Hi Tom, many thanks for your response, apologies it wasn’t too 
>> clear.  
>>
>> Yes I deleted and regenerated the reports after adding my old WS 
>> data.  
>>
>> For info, I started using weewx with my new WS on dateTime = 
>> 1588201200 / 29-Apr-20. Before that date is the imported data from my 
>> old 
>> WS.  Here is a screenshot showing some data either side of that date 
>> (*select 
>> datetime(dateTime,'unixepoch','localtime'), sum from archive_day_rain;)*
>>  
>>
>> [image: image.png]
>>
>>
>> And here is the result of the second query  (*select 
>> datetime(min(dateTime),'unixepoch','localtime'), sum(sum) from 
>> archive_day_rain group by 
>> strftime("%Y",dateTime,'unixepoch','localtime')*
>>
>>
>> [image: image.png]
>>
>>
>> So thankfully it looks like my imported rain data has been processed.
>>
>> However, here's a screenshot of  an example annual  summary for 2014 
>> with the precipitation summary blank.  (Note that the wind and 
>> temperature 
>> summary is summarised)
>> [image: image.png]
>>
>> Any thoughts would be very welcome.
>>
>> Thanks again.
>>
>> Alastair
>>
>> On Fri, 2 Apr 2021 at 13:22, Tom Keffer  wrote:
>>
>>> Hello,
>>>
>>> If I understand correctly, you deleted, then regenerated all of the 
>>> NOAA monthly and yearly reports. 
>>>
>>> When you say "precipitation summary data remains blank," do you mean 
>>> each line in one of the summaries? Or, do you mean the totals at the 
>>> bottom 
>>> of the page? And, is it every line? Or, only an occasional line?
>>>
>>> It's worth looking at what is in the daily summary database. This 
>>> should do it:
>>>
>>> *sqlite3 weewx.sdb*
>>> sqlite> *select datetime(dateTime,'unixepoch','localtime'), sum 
>>> from archive_day_rain;*
>>> sqlite> *select datetime(min(dateTime),'unixepoch','localtime'), 
>>> sum(sum) from archive_day_rain group by 
>>> strftime("%Y",dateTime,'unixepoch','localtime');*
>>>
>>> The first select statement will give the rain for each day. It may 

Re: [weewx-user] British Geological Survey - earthquakes

2021-04-03 Thread Mike Harold Chan
No Im using Usgs and gem,  I have also mu own seismograph sending directly
to my web server pimohweather.com/wxquake.php

On Tue, Mar 30, 2021, 5:56 PM Auchtermuchty Weather 
wrote:

> Is anyone using the BGS as an earthquake server?
>
> --
> 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/aa6a8f8b-a894-4627-9374-4e2ed94b0d40n%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/CAKjfRKkQZyR5WZ%3DxpfFZ_AV6jbDO3J31Xc3WESWKwU7ono6%2BGg%40mail.gmail.com.


Re: [weewx-user] Davis Console Directly to Raspberry (NO DATALOGGER)

2021-04-03 Thread Tom Keffer
Wait. I take that back. I am not familiar with that piece of hardware.
Looks like it uses its own software.

On Sat, Apr 3, 2021 at 8:30 AM Tom Keffer  wrote:

> No guarantees, but usually the regular Vantage driver works fine. You just
> need to specify software record generation.
>
> On Sat, Apr 3, 2021 at 8:13 AM Ruben Navarro Huedo 
> wrote:
>
>> Good evening my friends:
>>
>> I am Ruben from Spain.
>> I have been reading about some projects using a direct connection from
>> Davis Console to Raspberry (No datalogger).
>> For example: http://www.annoyingdesigns.com/wospi/
>> More info: http://www.annoyingdesigns.com/wx/WOSPi.pdf
>>
>> Can it be done with weewx?
>> Is there a driver to do it?
>>
>> Thank's a lot.
>>
>> --
>> 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/5eca94e2-0a09-428b-bda6-b4d88073f0fan%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/CAPq0zEDbpYi9Th%2B089KYtMkQE1Th7Au0AeiN6OMgfJfvuOO1_w%40mail.gmail.com.


Re: [weewx-user] Davis Console Directly to Raspberry (NO DATALOGGER)

2021-04-03 Thread Tom Keffer
No guarantees, but usually the regular Vantage driver works fine. You just
need to specify software record generation.

On Sat, Apr 3, 2021 at 8:13 AM Ruben Navarro Huedo 
wrote:

> Good evening my friends:
>
> I am Ruben from Spain.
> I have been reading about some projects using a direct connection from
> Davis Console to Raspberry (No datalogger).
> For example: http://www.annoyingdesigns.com/wospi/
> More info: http://www.annoyingdesigns.com/wx/WOSPi.pdf
>
> Can it be done with weewx?
> Is there a driver to do it?
>
> Thank's a lot.
>
> --
> 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/5eca94e2-0a09-428b-bda6-b4d88073f0fan%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/CAPq0zECRdFETCRWVxkmH_9jXnUcMvATqCzsRjupo6-2-EeUvOA%40mail.gmail.com.


[weewx-user] Davis Console Directly to Raspberry (NO DATALOGGER)

2021-04-03 Thread Ruben Navarro Huedo
Good evening my friends:

I am Ruben from Spain.
I have been reading about some projects using a direct connection from 
Davis Console to Raspberry (No datalogger).
For example: http://www.annoyingdesigns.com/wospi/
More info: http://www.annoyingdesigns.com/wx/WOSPi.pdf

Can it be done with weewx? 
Is there a driver to do it?

Thank's a lot.

-- 
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/5eca94e2-0a09-428b-bda6-b4d88073f0fan%40googlegroups.com.


Re: [weewx-user] Civil twilight list for a year

2021-04-03 Thread Blaise

Ah Yesss, perfect !

#for $day in $year.days
$day.dateTime.format("%d/%m/%Y");$almanac(almanac_time=$day.dateTime.raw, 
horizon=-6).sun(use_center=1).rise;$almanac(almanac_time=$day.dateTime.raw, 
horizon=-6).sun(use_center=1).set
#end for

I'm starting to apprehend language (I was gone in a loop for Each)

However, the result takes into account the time zone but also summer / 
winter hours. Is it possible to have that in UTC 0?

And how to choose another year?

Thank you again, it's great for my automatons!


Le 03-04-21 à 15:14, Tom Keffer a écrit :
Something like this (NOT TESTED) should give you a table of sunrise 
and sunset:



    #for $day in $year.days
      
$day.dateTime.format("%Y-%m-%d")
        $almanac(almanac_time=$day.dateTime.raw, 
horizon=-6).sun(use_center=1).rise
        $almanac(almanac_time=$day.dateTime.raw, 
horizon=-6).sun(use_center=1).set

      
    #end for
    

-tk

On Sat, Apr 3, 2021 at 3:28 AM P C > wrote:


Hello,
I would like to be able to generate a CSV file with the 365 or 366
days of any year with the dusk civilians (6 °) of the sun:
I include "hard" the year, and so these 3 output values:

date;
$almanac(horizon=-6).sun(use_center=1).rise;
$almanac(horizon=-6).sun(use_center=1).set

I know you have to use a model of the genre "crepuscules.csv.tmpl"
etc.

It is of course at the level of the code that I am blocked: I do
not see how to browse the dates.

Well to you,
Pascal --
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/968a02fe-6806-4141-a0aa-594a79b332e6n%40googlegroups.com

.

--
You received this message because you are subscribed to a topic in the 
Google Groups "weewx-user" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/weewx-user/RX9r8kX_oN4/unsubscribe 
.
To unsubscribe from this group and all its topics, 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/CAPq0zEBNq9GKZBqvGCmuph%3DMxWTOibyRnUf6xzy3pOnhKzyF0g%40mail.gmail.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/61f11b22-1cbc-117b-f0ef-658c8808b17c%40gmail.com.


Re: [weewx-user] Civil twilight list for a year

2021-04-03 Thread Tom Keffer
Something like this (NOT TESTED) should give you a table of sunrise and
sunset:


#for $day in $year.days
  
$day.dateTime.format("%Y-%m-%d")
$almanac(almanac_time=$day.dateTime.raw,
horizon=-6).sun(use_center=1).rise
$almanac(almanac_time=$day.dateTime.raw,
horizon=-6).sun(use_center=1).set
  
#end for


-tk

On Sat, Apr 3, 2021 at 3:28 AM P C  wrote:

> Hello,
> I would like to be able to generate a CSV file with the 365 or 366 days of
> any year with the dusk civilians (6 °) of the sun:
> I include "hard" the year, and so these 3 output values:
>
> date;
> $almanac(horizon=-6).sun(use_center=1).rise;
> $almanac(horizon=-6).sun(use_center=1).set
>
> I know you have to use a model of the genre "crepuscules.csv.tmpl" etc.
>
> It is of course at the level of the code that I am blocked: I do not see
> how to browse the dates.
>
> Well to you,
> Pascal
>
> --
> 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/968a02fe-6806-4141-a0aa-594a79b332e6n%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/CAPq0zEBNq9GKZBqvGCmuph%3DMxWTOibyRnUf6xzy3pOnhKzyF0g%40mail.gmail.com.


Re: [weewx-user] Re: Version 4.5.0 released

2021-04-03 Thread Tom Keffer
Yes, it's possible to extend the V4 schema. That's what is documented in
the section *Modifying a starting schema
. *

But, let's keep the wview schema at V3.

On Sat, Apr 3, 2021 at 1:21 AM Gérard P  wrote:

> It is possible to stay with 4.5.0 by changing the syntax of code using the
> "+" operator, for instance :
> schema_extended = schemas.wview.schema + [('lightning_strikes',
> 'REAL'), ('avg_distance', 'REAL')]
> become
> schema_extended = schemas.wview.schema.copy()
> schema_extended.update([('lightning_strikes', 'REAL'),
> ('avg_distance', 'REAL')])
>
> Le vendredi 2 avril 2021 à 21:14:27 UTC+2, mksm...@gmail.com a écrit :
>
>> the upgrade to 4.5 from 4.4 failed and weewx is broken please advice
>> used these commands for upgrade
>> sudo apt update
>> apt list --upgradable  (4.5 was showing)
>> sudo apt full-upgrade
>> then I answered "N" to the upgrade select to keep my old files
>>
>> Apr  2 21:31:49 raspberrypi systemd[1]: Starting LSB: weewx weather
>> system...
>> Apr  2 21:31:49 raspberrypi weewx[1049]: Starting weewx weather system:
>> weewxTraceback (most recent call last):
>> Apr  2 21:31:49 raspberrypi weewx[1049]:   File
>> "/usr/share/weewx/weewxd", line 29, in 
>> Apr  2 21:31:49 raspberrypi weewx[1049]: import user.extensions
>> Apr  2 21:31:49 raspberrypi weewx[1049]:   File
>> "/usr/share/weewx/user/extensions.py", line 20, in 
>> Apr  2 21:31:49 raspberrypi weewx[1049]: schema_extended =
>> schemas.wview.schema + [('lightning_strikes', 'REAL'), ('avg_distance',
>> 'REAL')]
>> Apr  2 21:31:49 raspberrypi weewx[1049]: TypeError: unsupported operand
>> type(s) for +: 'dict' and 'list'
>> Apr  2 21:31:49 raspberrypi weewx[1049]:  failed!
>> Apr  2 21:31:49 raspberrypi systemd[1]: weewx.service: Control process
>> exited, code=exited, status=1/FAILURE
>> Apr  2 21:31:49 raspberrypi systemd[1]: weewx.service: Failed with result
>> 'exit-code'.
>> Apr  2 21:31:49 raspberrypi systemd[1]: Failed to start LSB: weewx
>> weather system.
>>
>
> --
> 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/a14fa3bd-3a52-4df4-be1b-00936e9f7f67n%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/CAPq0zEA-jDZczf9D2XMzhTPFC0kJLZ1qbdumbdCSrdLTS9CJGA%40mail.gmail.com.


[weewx-user] Re: Version 4.5.0 released

2021-04-03 Thread DaveStLou
 The FTP uploader change greatly improved my upload time. Thanks!

On Saturday, April 3, 2021 at 3:21:02 AM UTC-5 Gérard P wrote:

> It is possible to stay with 4.5.0 by changing the syntax of code using the 
> "+" operator, for instance :
> schema_extended = schemas.wview.schema + [('lightning_strikes', 
> 'REAL'), ('avg_distance', 'REAL')]
> become
> schema_extended = schemas.wview.schema.copy()
> schema_extended.update([('lightning_strikes', 'REAL'), 
> ('avg_distance', 'REAL')])
>
> Le vendredi 2 avril 2021 à 21:14:27 UTC+2, mksm...@gmail.com a écrit :
>
>> the upgrade to 4.5 from 4.4 failed and weewx is broken please advice
>> used these commands for upgrade
>> sudo apt update
>> apt list --upgradable  (4.5 was showing)
>> sudo apt full-upgrade
>> then I answered "N" to the upgrade select to keep my old files
>>
>> Apr  2 21:31:49 raspberrypi systemd[1]: Starting LSB: weewx weather 
>> system...
>> Apr  2 21:31:49 raspberrypi weewx[1049]: Starting weewx weather system: 
>> weewxTraceback (most recent call last):
>> Apr  2 21:31:49 raspberrypi weewx[1049]:   File 
>> "/usr/share/weewx/weewxd", line 29, in 
>> Apr  2 21:31:49 raspberrypi weewx[1049]: import user.extensions
>> Apr  2 21:31:49 raspberrypi weewx[1049]:   File 
>> "/usr/share/weewx/user/extensions.py", line 20, in 
>> Apr  2 21:31:49 raspberrypi weewx[1049]: schema_extended = 
>> schemas.wview.schema + [('lightning_strikes', 'REAL'), ('avg_distance', 
>> 'REAL')]
>> Apr  2 21:31:49 raspberrypi weewx[1049]: TypeError: unsupported operand 
>> type(s) for +: 'dict' and 'list'
>> Apr  2 21:31:49 raspberrypi weewx[1049]:  failed!
>> Apr  2 21:31:49 raspberrypi systemd[1]: weewx.service: Control process 
>> exited, code=exited, status=1/FAILURE
>> Apr  2 21:31:49 raspberrypi systemd[1]: weewx.service: Failed with result 
>> 'exit-code'.
>> Apr  2 21:31:49 raspberrypi systemd[1]: Failed to start LSB: weewx 
>> weather system.
>>
>
>

-- 
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/a99243dc-0bfe-4cbd-a8b5-8b0a4ccb6478n%40googlegroups.com.


[weewx-user] Civil twilight list for a year

2021-04-03 Thread P C
Hello,
I would like to be able to generate a CSV file with the 365 or 366 days of 
any year with the dusk civilians (6 °) of the sun:
I include "hard" the year, and so these 3 output values:

date;
$almanac(horizon=-6).sun(use_center=1).rise;
$almanac(horizon=-6).sun(use_center=1).set

I know you have to use a model of the genre "crepuscules.csv.tmpl" etc.

It is of course at the level of the code that I am blocked: I do not see 
how to browse the dates.

Well to you,
Pascal

-- 
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/968a02fe-6806-4141-a0aa-594a79b332e6n%40googlegroups.com.


[weewx-user] Re: Version 4.5.0 released

2021-04-03 Thread Gérard P
It is possible to stay with 4.5.0 by changing the syntax of code using the 
"+" operator, for instance :
schema_extended = schemas.wview.schema + [('lightning_strikes', 
'REAL'), ('avg_distance', 'REAL')]
become
schema_extended = schemas.wview.schema.copy()
schema_extended.update([('lightning_strikes', 'REAL'), ('avg_distance', 
'REAL')])

Le vendredi 2 avril 2021 à 21:14:27 UTC+2, mksm...@gmail.com a écrit :

> the upgrade to 4.5 from 4.4 failed and weewx is broken please advice
> used these commands for upgrade
> sudo apt update
> apt list --upgradable  (4.5 was showing)
> sudo apt full-upgrade
> then I answered "N" to the upgrade select to keep my old files
>
> Apr  2 21:31:49 raspberrypi systemd[1]: Starting LSB: weewx weather 
> system...
> Apr  2 21:31:49 raspberrypi weewx[1049]: Starting weewx weather system: 
> weewxTraceback (most recent call last):
> Apr  2 21:31:49 raspberrypi weewx[1049]:   File "/usr/share/weewx/weewxd", 
> line 29, in 
> Apr  2 21:31:49 raspberrypi weewx[1049]: import user.extensions
> Apr  2 21:31:49 raspberrypi weewx[1049]:   File 
> "/usr/share/weewx/user/extensions.py", line 20, in 
> Apr  2 21:31:49 raspberrypi weewx[1049]: schema_extended = 
> schemas.wview.schema + [('lightning_strikes', 'REAL'), ('avg_distance', 
> 'REAL')]
> Apr  2 21:31:49 raspberrypi weewx[1049]: TypeError: unsupported operand 
> type(s) for +: 'dict' and 'list'
> Apr  2 21:31:49 raspberrypi weewx[1049]:  failed!
> Apr  2 21:31:49 raspberrypi systemd[1]: weewx.service: Control process 
> exited, code=exited, status=1/FAILURE
> Apr  2 21:31:49 raspberrypi systemd[1]: weewx.service: Failed with result 
> 'exit-code'.
> Apr  2 21:31:49 raspberrypi systemd[1]: Failed to start LSB: weewx weather 
> system.
>

-- 
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/a14fa3bd-3a52-4df4-be1b-00936e9f7f67n%40googlegroups.com.