Re: [weewx-user] CLIMATOLOGICAL SUMMARY contains formulas instead of results for calculated values.

2023-10-24 Thread gmr...@gmail.com
Tom, thank you for your very quick replies and effort to assist in 
resolving this issue!

On Tuesday, October 24, 2023 at 10:19:02 PM UTC-4 gmr...@gmail.com wrote:

> Oct 24 22:08:19 WEEWX wee_reports[3173] DEBUG weewx.reportengine: Running 
> reports for time 2023-10-24 22:05:00 EDT (1698199500)
> Oct 24 22:08:19 WEEWX wee_reports[3173] DEBUG weewx.reportengine: Running 
> report 'SeasonsReport'
> Oct 24 22:08:19 WEEWX wee_reports[3173] DEBUG weewx.reportengine: Found 
> configuration file /etc/weewx/skins/Seasons/skin.conf for report 
> 'SeasonsReport'
> Oct 24 22:08:19 WEEWX wee_reports[3173] DEBUG weewx.cheetahgenerator: 
> Using search list ['weewx.cheetahgenerator.Almanac', 
> 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.DisplayOptions', 
> 'weewx.cheetahgenerator.Extras', 'weewx.cheetahgenerator.Gettext', 
> 'weewx.cheetahgenerator.JSONHelpers', 'weewx.cheetahgenerator.PlotInfo', 
> 'weewx.cheetahgenerator.SkinInfo', 'weewx.cheetahgenerator.Station', 
> 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo']
> Oct 24 22:08:19 WEEWX wee_reports[3173] DEBUG weewx.manager: Daily summary 
> version is 4.0
> Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
> heatbase_t=(65.0, 'degree_F', 'group_temperature')
> Oct 24 22:08:21 

Re: [weewx-user] CLIMATOLOGICAL SUMMARY contains formulas instead of results for calculated values.

2023-10-24 Thread gmr...@gmail.com
Oct 24 22:08:19 WEEWX wee_reports[3173] DEBUG weewx.reportengine: Running 
reports for time 2023-10-24 22:05:00 EDT (1698199500)
Oct 24 22:08:19 WEEWX wee_reports[3173] DEBUG weewx.reportengine: Running 
report 'SeasonsReport'
Oct 24 22:08:19 WEEWX wee_reports[3173] DEBUG weewx.reportengine: Found 
configuration file /etc/weewx/skins/Seasons/skin.conf for report 
'SeasonsReport'
Oct 24 22:08:19 WEEWX wee_reports[3173] DEBUG weewx.cheetahgenerator: Using 
search list ['weewx.cheetahgenerator.Almanac', 
'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.DisplayOptions', 
'weewx.cheetahgenerator.Extras', 'weewx.cheetahgenerator.Gettext', 
'weewx.cheetahgenerator.JSONHelpers', 'weewx.cheetahgenerator.PlotInfo', 
'weewx.cheetahgenerator.SkinInfo', 'weewx.cheetahgenerator.Station', 
'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo']
Oct 24 22:08:19 WEEWX wee_reports[3173] DEBUG weewx.manager: Daily summary 
version is 4.0
Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:20 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 22:08:21 WEEWX wee_reports[3173] DEBUG weewx.xtypes: 
heatbase_t=(65.0, 'degree_F', 'group_temperature')
Oct 24 

Re: [weewx-user] CLIMATOLOGICAL SUMMARY contains formulas instead of results for calculated values.

2023-10-24 Thread Tom Keffer
I've enclosed an instrumented version of weewx/xtypes.py. Put your old copy
aside and replace it with this copy. Then run wee_reports, then post the
log. Then put your old copy back.

The file should be located in either /usr/share/weewx/weewx.xtypes.py or
/home/weewx/bin/weewx/xtypes.py, depending on your installation method.



On Tue, Oct 24, 2023 at 6:34 PM gmr...@gmail.com  wrote:

> And the tail end of /var/log/messages
>
> Oct 24 21:25:17 WEEWX weewx[661] INFO weewx.manager: Added record
> 2023-10-24 21:25:00 EDT (1698197100) to database 'weewx'
> Oct 24 21:25:18 WEEWX weewx[661] INFO weewx.manager: Added record
> 2023-10-24 21:25:00 EDT (1698197100) to daily summary in 'weewx'
> Oct 24 21:25:38 WEEWX weewx[661] INFO weewx.cheetahgenerator: Generated 8
> files for report SeasonsReport in 19.94 seconds
> Oct 24 21:25:48 WEEWX weewx[661] INFO weewx.imagegenerator: Generated 15
> images for report SeasonsReport in 10.25 seconds
> Oct 24 21:25:48 WEEWX weewx[661] INFO weewx.reportengine: Copied 0 files
> to /var/www/html/weewx
> Oct 24 21:26:08 WEEWX weewx[661] INFO weewx.cheetahgenerator: Generated 12
> files for report Belchertown in 20.31 seconds
> Oct 24 21:26:08 WEEWX weewx[661] INFO weewx.reportengine: Copied 3 files
> to /var/www/html/weewx/belchertown
> Oct 24 21:26:28 WEEWX weewx[661] INFO weewx.reportengine: ftpgenerator:
> Ftp'd 34 files in 2.29 seconds
> Oct 24 21:30:17 WEEWX weewx[661] INFO weewx.manager: Added record
> 2023-10-24 21:30:00 EDT (1698197400) to database 'weewx'
> Oct 24 21:30:18 WEEWX weewx[661] INFO weewx.manager: Added record
> 2023-10-24 21:30:00 EDT (1698197400) to daily summary in 'weewx'
> Oct 24 21:30:38 WEEWX weewx[661] INFO weewx.cheetahgenerator: Generated 8
> files for report SeasonsReport in 20.29 seconds
> Oct 24 21:30:48 WEEWX weewx[661] INFO weewx.imagegenerator: Generated 15
> images for report SeasonsReport in 10.21 seconds
> Oct 24 21:30:48 WEEWX weewx[661] INFO weewx.reportengine: Copied 0 files
> to /var/www/html/weewx
> Oct 24 21:31:06 WEEWX weewx[661] INFO weewx.cheetahgenerator: Generated 12
> files for report Belchertown in 17.16 seconds
> Oct 24 21:31:06 WEEWX weewx[661] INFO weewx.reportengine: Copied 3 files
> to /var/www/html/weewx/belchertown
> Oct 24 21:31:27 WEEWX weewx[661] INFO weewx.reportengine: ftpgenerator:
> Ftp'd 34 files in 1.53 seconds
>
> On Tuesday, October 24, 2023 at 9:28:49 PM UTC-4 gmr...@gmail.com wrote:
>
>> #   This section configures the internal weewx engine.
>>
>> [Engine]
>>
>> # The following section specifies which services should be run and in
>> what order.
>> [[Services]]
>> prep_services = weewx.engine.StdTimeSynch
>> data_services = ,
>> process_services = weewx.engine.StdConvert,
>> weewx.engine.StdCalibrate, weewx.engine.StdQC,
>> weewx.wxservices.StdWXCalculate
>> xtype_services = weewx.wxxtypes.StdWXXTypes,
>> weewx.wxxtypes.StdPressureCooker, weewx.wxxtypes.StdRainRater,
>> weewx.wxxtypes.StdDelta
>> archive_services = weewx.engine.StdArchive
>> restful_services = weewx.restx.StdStationRegistry,
>> weewx.restx.StdWunderground, weewx.restx.StdPWSweather,
>> weewx.restx.StdCWOP, weewx.restx.StdWOW, weewx.restx.StdAWEKAS
>> report_services = weewx.engine.StdPrint, weewx.engine.StdReport
>>
>> On Tuesday, October 24, 2023 at 9:12:02 PM UTC-4 Tom Keffer wrote:
>>
>>> It looks like the NOAA reports may not know how to calculate heating and
>>> cooling degree-days. These calculations are normally provided by an xtype
>>> extension, weewx.wxxtypes.StdWXXTypes.
>>>
>>> Please post the [Engine] section of your weewx.conf file. If it looks
>>> OK, we'll look at some other possibilities.
>>>
>>> On Tue, Oct 24, 2023 at 5:12 PM gmr...@gmail.com 
>>> wrote:
>>>
 I recently had the memory card in the RaspberryPi fail; but, was able
 to recover the database file and most of the data in it.  A new card was
 used to make a new install of raspbian and weewx version 4.10.2.  After I
 got it up and running it read the pending data from the Davis memory.
 Later, I added the data from the old database file to the database, deleted
 the report files, ran  wee_database --calc-missing and wee_database
 --rebuild-daily.  After that the statistics looked good; but, the NOAA
 climate data report shows the formula instead of the result for the
 calculated columns.  Instead of a number for heating degree days I
 have   $month.heatdeg.sum.format($Temp,$NONE,add_label=False); but, in the
 high / day / low / day  columns have  83.6   0335.7   24.

 This happens for the default skin:
 http://aj4nr.com/Weather/index.html
 And the Belchertown skin: http://aj4nr.com/Weather/belchertown/

 The installation is pretty much a stock installation, I added FTP of
 folders to the WWW server.  I started with the SQLite database; but, now
 I'm using MariaDB that is hosted by a Windows server. It was doing this on

Re: [weewx-user] CLIMATOLOGICAL SUMMARY contains formulas instead of results for calculated values.

2023-10-24 Thread gmr...@gmail.com
And the tail end of /var/log/messages

Oct 24 21:25:17 WEEWX weewx[661] INFO weewx.manager: Added record 
2023-10-24 21:25:00 EDT (1698197100) to database 'weewx'
Oct 24 21:25:18 WEEWX weewx[661] INFO weewx.manager: Added record 
2023-10-24 21:25:00 EDT (1698197100) to daily summary in 'weewx'
Oct 24 21:25:38 WEEWX weewx[661] INFO weewx.cheetahgenerator: Generated 8 
files for report SeasonsReport in 19.94 seconds
Oct 24 21:25:48 WEEWX weewx[661] INFO weewx.imagegenerator: Generated 15 
images for report SeasonsReport in 10.25 seconds
Oct 24 21:25:48 WEEWX weewx[661] INFO weewx.reportengine: Copied 0 files to 
/var/www/html/weewx
Oct 24 21:26:08 WEEWX weewx[661] INFO weewx.cheetahgenerator: Generated 12 
files for report Belchertown in 20.31 seconds
Oct 24 21:26:08 WEEWX weewx[661] INFO weewx.reportengine: Copied 3 files to 
/var/www/html/weewx/belchertown
Oct 24 21:26:28 WEEWX weewx[661] INFO weewx.reportengine: ftpgenerator: 
Ftp'd 34 files in 2.29 seconds
Oct 24 21:30:17 WEEWX weewx[661] INFO weewx.manager: Added record 
2023-10-24 21:30:00 EDT (1698197400) to database 'weewx'
Oct 24 21:30:18 WEEWX weewx[661] INFO weewx.manager: Added record 
2023-10-24 21:30:00 EDT (1698197400) to daily summary in 'weewx'
Oct 24 21:30:38 WEEWX weewx[661] INFO weewx.cheetahgenerator: Generated 8 
files for report SeasonsReport in 20.29 seconds
Oct 24 21:30:48 WEEWX weewx[661] INFO weewx.imagegenerator: Generated 15 
images for report SeasonsReport in 10.21 seconds
Oct 24 21:30:48 WEEWX weewx[661] INFO weewx.reportengine: Copied 0 files to 
/var/www/html/weewx
Oct 24 21:31:06 WEEWX weewx[661] INFO weewx.cheetahgenerator: Generated 12 
files for report Belchertown in 17.16 seconds
Oct 24 21:31:06 WEEWX weewx[661] INFO weewx.reportengine: Copied 3 files to 
/var/www/html/weewx/belchertown
Oct 24 21:31:27 WEEWX weewx[661] INFO weewx.reportengine: ftpgenerator: 
Ftp'd 34 files in 1.53 seconds

On Tuesday, October 24, 2023 at 9:28:49 PM UTC-4 gmr...@gmail.com wrote:

> #   This section configures the internal weewx engine.
>
> [Engine]
> 
> # The following section specifies which services should be run and in 
> what order.
> [[Services]]
> prep_services = weewx.engine.StdTimeSynch
> data_services = ,
> process_services = weewx.engine.StdConvert, 
> weewx.engine.StdCalibrate, weewx.engine.StdQC, 
> weewx.wxservices.StdWXCalculate
> xtype_services = weewx.wxxtypes.StdWXXTypes, 
> weewx.wxxtypes.StdPressureCooker, weewx.wxxtypes.StdRainRater, 
> weewx.wxxtypes.StdDelta
> archive_services = weewx.engine.StdArchive
> restful_services = weewx.restx.StdStationRegistry, 
> weewx.restx.StdWunderground, weewx.restx.StdPWSweather, 
> weewx.restx.StdCWOP, weewx.restx.StdWOW, weewx.restx.StdAWEKAS
> report_services = weewx.engine.StdPrint, weewx.engine.StdReport
>
> On Tuesday, October 24, 2023 at 9:12:02 PM UTC-4 Tom Keffer wrote:
>
>> It looks like the NOAA reports may not know how to calculate heating and 
>> cooling degree-days. These calculations are normally provided by an xtype 
>> extension, weewx.wxxtypes.StdWXXTypes. 
>>
>> Please post the [Engine] section of your weewx.conf file. If it looks OK, 
>> we'll look at some other possibilities.
>>
>> On Tue, Oct 24, 2023 at 5:12 PM gmr...@gmail.com  
>> wrote:
>>
>>> I recently had the memory card in the RaspberryPi fail; but, was able to 
>>> recover the database file and most of the data in it.  A new card was used 
>>> to make a new install of raspbian and weewx version 4.10.2.  After I got it 
>>> up and running it read the pending data from the Davis memory.  Later, I 
>>> added the data from the old database file to the database, deleted the 
>>> report files, ran  wee_database --calc-missing and wee_database 
>>> --rebuild-daily.  After that the statistics looked good; but, the NOAA 
>>> climate data report shows the formula instead of the result for the 
>>> calculated columns.  Instead of a number for heating degree days I 
>>> have   $month.heatdeg.sum.format($Temp,$NONE,add_label=False); but, in the 
>>> high / day / low / day  columns have  83.6   0335.7   24.
>>>
>>> This happens for the default skin:   http://aj4nr.com/Weather/index.html
>>>  
>>> And the Belchertown skin: http://aj4nr.com/Weather/belchertown/
>>>
>>> The installation is pretty much a stock installation, I added FTP of 
>>> folders to the WWW server.  I started with the SQLite database; but, now 
>>> I'm using MariaDB that is hosted by a Windows server. It was doing this on 
>>> the SQLite and MariaDB databases. I have not modified any of the reporting 
>>> templates.
>>>
>>> Any ideas about how to fix this are welcome.
>>>
>>> -- 
>>> 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 
>>> 

Re: [weewx-user] CLIMATOLOGICAL SUMMARY contains formulas instead of results for calculated values.

2023-10-24 Thread gmr...@gmail.com
#   This section configures the internal weewx engine.

[Engine]

# The following section specifies which services should be run and in 
what order.
[[Services]]
prep_services = weewx.engine.StdTimeSynch
data_services = ,
process_services = weewx.engine.StdConvert, 
weewx.engine.StdCalibrate, weewx.engine.StdQC, 
weewx.wxservices.StdWXCalculate
xtype_services = weewx.wxxtypes.StdWXXTypes, 
weewx.wxxtypes.StdPressureCooker, weewx.wxxtypes.StdRainRater, 
weewx.wxxtypes.StdDelta
archive_services = weewx.engine.StdArchive
restful_services = weewx.restx.StdStationRegistry, 
weewx.restx.StdWunderground, weewx.restx.StdPWSweather, 
weewx.restx.StdCWOP, weewx.restx.StdWOW, weewx.restx.StdAWEKAS
report_services = weewx.engine.StdPrint, weewx.engine.StdReport

On Tuesday, October 24, 2023 at 9:12:02 PM UTC-4 Tom Keffer wrote:

> It looks like the NOAA reports may not know how to calculate heating and 
> cooling degree-days. These calculations are normally provided by an xtype 
> extension, weewx.wxxtypes.StdWXXTypes. 
>
> Please post the [Engine] section of your weewx.conf file. If it looks OK, 
> we'll look at some other possibilities.
>
> On Tue, Oct 24, 2023 at 5:12 PM gmr...@gmail.com  wrote:
>
>> I recently had the memory card in the RaspberryPi fail; but, was able to 
>> recover the database file and most of the data in it.  A new card was used 
>> to make a new install of raspbian and weewx version 4.10.2.  After I got it 
>> up and running it read the pending data from the Davis memory.  Later, I 
>> added the data from the old database file to the database, deleted the 
>> report files, ran  wee_database --calc-missing and wee_database 
>> --rebuild-daily.  After that the statistics looked good; but, the NOAA 
>> climate data report shows the formula instead of the result for the 
>> calculated columns.  Instead of a number for heating degree days I 
>> have   $month.heatdeg.sum.format($Temp,$NONE,add_label=False); but, in the 
>> high / day / low / day  columns have  83.6   0335.7   24.
>>
>> This happens for the default skin:   http://aj4nr.com/Weather/index.html 
>> And the Belchertown skin: http://aj4nr.com/Weather/belchertown/
>>
>> The installation is pretty much a stock installation, I added FTP of 
>> folders to the WWW server.  I started with the SQLite database; but, now 
>> I'm using MariaDB that is hosted by a Windows server. It was doing this on 
>> the SQLite and MariaDB databases. I have not modified any of the reporting 
>> templates.
>>
>> Any ideas about how to fix this are welcome.
>>
>> -- 
>> 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/3e6b979b-054d-43bc-b9f8-b0e49a880b76n%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/2d6d5593-ffa1-4c62-9da8-24569a4e0387n%40googlegroups.com.


Re: [weewx-user] CLIMATOLOGICAL SUMMARY contains formulas instead of results for calculated values.

2023-10-24 Thread Tom Keffer
It looks like the NOAA reports may not know how to calculate heating and
cooling degree-days. These calculations are normally provided by an xtype
extension, weewx.wxxtypes.StdWXXTypes.

Please post the [Engine] section of your weewx.conf file. If it looks OK,
we'll look at some other possibilities.

On Tue, Oct 24, 2023 at 5:12 PM gmr...@gmail.com  wrote:

> I recently had the memory card in the RaspberryPi fail; but, was able to
> recover the database file and most of the data in it.  A new card was used
> to make a new install of raspbian and weewx version 4.10.2.  After I got it
> up and running it read the pending data from the Davis memory.  Later, I
> added the data from the old database file to the database, deleted the
> report files, ran  wee_database --calc-missing and wee_database
> --rebuild-daily.  After that the statistics looked good; but, the NOAA
> climate data report shows the formula instead of the result for the
> calculated columns.  Instead of a number for heating degree days I
> have   $month.heatdeg.sum.format($Temp,$NONE,add_label=False); but, in the
> high / day / low / day  columns have  83.6   0335.7   24.
>
> This happens for the default skin:   http://aj4nr.com/Weather/index.html
> And the Belchertown skin: http://aj4nr.com/Weather/belchertown/
>
> The installation is pretty much a stock installation, I added FTP of
> folders to the WWW server.  I started with the SQLite database; but, now
> I'm using MariaDB that is hosted by a Windows server. It was doing this on
> the SQLite and MariaDB databases. I have not modified any of the reporting
> templates.
>
> Any ideas about how to fix this are welcome.
>
> --
> 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/3e6b979b-054d-43bc-b9f8-b0e49a880b76n%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/CAPq0zEDLRnnO_k2hmuKs8uUKngj8z6Ub3%2BMEUXobFDvB6EJj6w%40mail.gmail.com.


[weewx-user] CLIMATOLOGICAL SUMMARY contains formulas instead of results for calculated values.

2023-10-24 Thread gmr...@gmail.com
I recently had the memory card in the RaspberryPi fail; but, was able to 
recover the database file and most of the data in it.  A new card was used 
to make a new install of raspbian and weewx version 4.10.2.  After I got it 
up and running it read the pending data from the Davis memory.  Later, I 
added the data from the old database file to the database, deleted the 
report files, ran  wee_database --calc-missing and wee_database 
--rebuild-daily.  After that the statistics looked good; but, the NOAA 
climate data report shows the formula instead of the result for the 
calculated columns.  Instead of a number for heating degree days I 
have   $month.heatdeg.sum.format($Temp,$NONE,add_label=False); but, in the 
high / day / low / day  columns have  83.6   0335.7   24.

This happens for the default skin:   http://aj4nr.com/Weather/index.html 
And the Belchertown skin: http://aj4nr.com/Weather/belchertown/

The installation is pretty much a stock installation, I added FTP of 
folders to the WWW server.  I started with the SQLite database; but, now 
I'm using MariaDB that is hosted by a Windows server. It was doing this on 
the SQLite and MariaDB databases. I have not modified any of the reporting 
templates.

Any ideas about how to fix this are welcome.

-- 
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/3e6b979b-054d-43bc-b9f8-b0e49a880b76n%40googlegroups.com.


Re: [weewx-user] Cascading errors for the Seasons base skin.

2023-10-24 Thread gjr80
It's is not your config, it looks like WU has changed the header content in 
one (or more) of their API responses. I should be able to have a look 
tonite and provide a fix.

Gary

On Wednesday, 25 October 2023 at 08:06:04 UTC+10 weewx-user wrote:

The most annoying thing is that I have errors with wee_import to feed my 
mysql database:

*sylvain@gandalf:~/weewx-venv/lib/python3.11/site-packages>** python3 
wee_import.py --config=/home/sylvain/weewx-data/weewx.conf 
--import-config=/home/sylvain /weewx-data/util/import/wu-example.conf 
--dry-run --from=2022-7-12 --to=2023-10-24 --verbose*
Using WeeWX configuration file /home/sylvain/weewx-data/weewx.conf
Starting wee_import...
Observation history for Weather Underground station 'I' will be 
imported.
The following options will be used:
  config=/home/sylvain/weewx-data/weewx.conf, 
import-config=/home/sylvain/weewx-data/util/import/wu-example.conf
  station=I***, from=2022-7-12, to=2023-10-24
  apiKey=0b80
  dry-run=True, calc_missing=True, ignore_invalid_data=True
  slice=250, interval=x, wind_direction=[0.0, 360.0]
Using database binding 'wx_binding', which is bound to database 'weewx'
Destination table 'archive' unit system is '0x11' (METRICWX).
Missing derived observations will be calculated.
Observations timestamped after 2022-07-12 00:00:00 CEST (1657576800) and up 
to and
including 2023-10-25 00:00:00 CEST (1698184800) will be imported.
This is a dry run, imported data will not be saved to archive.
Starting dry run import...
Records covering multiple periods have been identified for import.
Period 1...
Obtaining raw import data for period 1 ...
Traceback (most recent call last):
   File 
"/home/sylvain/weewx-venv/lib/python3.11/site-packages/wee_import.py", line 
899, in 
 hand()
   File 
"/home/sylvain/weewx-venv/lib/python3.11/site-packages/wee_import.py", line 
829, in main
 source_obj.run()
   File 
"/home/sylvain/weewx-venv/lib/python3.11/site-packages/weeimport/weeimport.py", 
line 375, in run
 _raw_data = self.getRawData(period)
 ^
   File 
"/home/sylvain/weewx-venv/lib/python3.11/site-packages/weeimport/wuimport.py", 
line 249, in getRawData
 _raw_data = f.read().decode(char_set)
 ^^^
TypeError: decode() argument 'encoding' must be str, not None


What did I configure incorrectly?

-- 
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/2e3fb89a-15da-4124-b8ef-09d61a8b038bn%40googlegroups.com.


Re: [weewx-user] Cascading errors for the Seasons base skin.

2023-10-24 Thread Sylvain M
THANKS. The installation is done with pip without any hassle.

Everything works fine with my installation with pip.
Weewx does not want to work on my Apache server although I have set the 
WEEWX_ROOT = /srv/www/htdocs/weewx/
I put it back to default.
So I made some links and everything works. I will see the cause later since 
you indicate in the documentation that it is possible.

The most annoying thing is that I have errors with wee_import to feed my 
mysql database:

*sylvain@gandalf:~/weewx-venv/lib/python3.11/site-packages>** python3 
wee_import.py --config=/home/sylvain/weewx-data/weewx.conf 
--import-config=/home/sylvain /weewx-data/util/import/wu-example.conf 
--dry-run --from=2022-7-12 --to=2023-10-24 --verbose*
Using WeeWX configuration file /home/sylvain/weewx-data/weewx.conf
Starting wee_import...
Observation history for Weather Underground station 'I' will be 
imported.
The following options will be used:
  config=/home/sylvain/weewx-data/weewx.conf, 
import-config=/home/sylvain/weewx-data/util/import/wu-example.conf
  station=I***, from=2022-7-12, to=2023-10-24
  apiKey=0b80
  dry-run=True, calc_missing=True, ignore_invalid_data=True
  slice=250, interval=x, wind_direction=[0.0, 360.0]
Using database binding 'wx_binding', which is bound to database 'weewx'
Destination table 'archive' unit system is '0x11' (METRICWX).
Missing derived observations will be calculated.
Observations timestamped after 2022-07-12 00:00:00 CEST (1657576800) and up 
to and
including 2023-10-25 00:00:00 CEST (1698184800) will be imported.
This is a dry run, imported data will not be saved to archive.
Starting dry run import...
Records covering multiple periods have been identified for import.
Period 1...
Obtaining raw import data for period 1 ...
Traceback (most recent call last):
   File 
"/home/sylvain/weewx-venv/lib/python3.11/site-packages/wee_import.py", line 
899, in 
 hand()
   File 
"/home/sylvain/weewx-venv/lib/python3.11/site-packages/wee_import.py", line 
829, in main
 source_obj.run()
   File 
"/home/sylvain/weewx-venv/lib/python3.11/site-packages/weeimport/weeimport.py", 
line 375, in run
 _raw_data = self.getRawData(period)
 ^
   File 
"/home/sylvain/weewx-venv/lib/python3.11/site-packages/weeimport/wuimport.py", 
line 249, in getRawData
 _raw_data = f.read().decode(char_set)
 ^^^
TypeError: decode() argument 'encoding' must be str, not None


What did I configure incorrectly?

Le mardi 24 octobre 2023 à 01:50:48 UTC+2, Tom Keffer a écrit :

> See my previous email for instructions for installing with pip.
>
> On Mon, Oct 23, 2023 at 3:59 PM Sylvain M  wrote:
>
>> To order
>>
>> *zypper search -v python3-Pillow*
>>  
>> I have in return
>>
>> *No matching items found.*
>>
>> I couldn't find version 5 beta for download in .tar.gz.
>> I just found it in .deb
>>
>> Is there an address to download this version 5 to install with pip?
>> I will be happy to test it.
>>
>>
>> Le mardi 24 octobre 2023 à 00:32:56 UTC+2, Tom Keffer a écrit :
>>
>>> Tumbleweed doesn't show earlier versions of packages? What do you see if 
>>> you do (note the -v flag):
>>>
>>> *zypper search -v python3-Pillow*
>>>
>>>
>>> If I do it on Leaf, I see that V8.3.1 is available. Then
>>>
>>> *sudo zypper install python3-Pillow-8.3.1-lp152.5.3.1 *
>>>
>>>
>>> would install it. Any version of Pillow later than v5.2 will work.
>>>
>>> Alternatively, the beta for V5 has a patch for Pillow 10.0.  *Installation 
>>> using pip *
>>>
>>> While it's in beta, it's pretty stable.
>>>
>>>
>>>
>>>
>>> On Mon, Oct 23, 2023 at 8:34 AM Sylvain M  wrote:
>>>
 It is not possible to downgrade the Pillow version to 9.5 under 
 OpenSuse Tumbleweed (OpenSuse forum).
 The repository I used to install is dedicated to OpenSuse Leap.
 However, I had asked the question of compatibility with Tumbleweed on 
 this weewxx-user forum but without an answer which I interpreted as 
 obvious.

 I'm going to have to stop weewx until there is an update that is 
 compatible with Pillow 10.0.1 at best and above all that is compatible 
 with 
 OpenSuse Tumbleweed.

 My weather station is a Bresser Wifi Comfort Weather Center 7-in-1 
 which sends data to Wunderground.
 I imported the data from Wunderground with the import tool to populate 
 my mysql database with the wee_import tool (perhaps not adapted to my 
 version?). I updated it every day.

 The goal for me is to have a history of past months and years to 
 compare different parameters such as temperatures, rain or wind. It’s 
 tracking weather history that fascinates me.
 I have done very little manipulation since I recently installed weewx 
 (October 12, 2023).

 As I do not have a computer permanently connected, importing data 
 

Re: [weewx-user] merge two data base

2023-10-24 Thread salinois

hello,

I successfully completed this ordercat old.dump.txt | sqlite3 
weewx.new.sdb without the double quotes


but after changing the rights on the file"sudo chmod 777 weewx.new.sdb";

I restarted weewx, and the old years appear in report *but no data in it*!!!

did I do something wrong?

Patrick

Le 24/10/2023 à 17:29, salinois a écrit :


hello Vince,

this command doesn't work !!

*"cat old.dump.txt | sqlite3 weewx.new.sdb"*

I try to find the good command

thanks

patrick*
*

Le 24/10/2023 à 01:08, vince a écrit :

"cat old.dump.txt | sqlite3 weewx.new.sdb"


--
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/f4b7944e-5966-4648-be29-8c44b2ddbd97%40gmail.com.


Re: [weewx-user] Pillow and textsize/textwidth

2023-10-24 Thread Greg Troxel
Tom Keffer  writes:

> This was fixed in commit dc4ab54
> ,
> to appear in V5.

I did a cherry-pick of this onto master, which succeeded with no
conflicts.  Rerunning setup.py build/install, and then reinstalling
Pillow 10.0.1 (updating it from 9.x), I am able to run wee_reports with
no issues.

I rebooted and waited for a new archive interval, and I am getting new
graphs reliably, as far as I can tell.

So cherry-pick/push on master should be safe.

Thanks,
Greg

-- 
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/rmifs2055to.fsf%40s1.lexort.com.


Re: [weewx-user] Pillow and textsize/textwidth

2023-10-24 Thread Greg Troxel
Tom Keffer  writes:

> This was fixed in commit dc4ab54
> ,
> to appear in V5.

Thanks for pointing thta tout.  Can that be cherrypicked to the v4
(current stabl AIUI) branch?  I can certainly try it.  (My impression is
that currently, the recommendation is for random users to run v4.)

-- 
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/rmiv8aw584z.fsf%40s1.lexort.com.


Re: [weewx-user] merge two data base

2023-10-24 Thread salinois

hello Vince,

this command doesn't work !!

*"cat old.dump.txt | sqlite3 weewx.new.sdb"*

I try to find the good command

thanks

patrick*
*

Le 24/10/2023 à 01:08, vince a écrit :

"cat old.dump.txt | sqlite3 weewx.new.sdb"


--
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/0f704f5f-61fe-499e-abe8-d7895d40eda9%40gmail.com.


Re: [weewx-user] Pillow and textsize/textwidth

2023-10-24 Thread Tom Keffer
This was fixed in commit dc4ab54
,
to appear in V5.


On Tue, Oct 24, 2023 at 6:22 AM Greg Troxel  wrote:

> Rolling back to py-Pillow 9.5.0, plots generate.  That's ok for me today
> because the box that runs weewx runs only weewx, but it's obviously not
> long-term viable.
>
> (I'm not trying to run v5, because it's structurally different (no
> setup.py) and thus a fair bit of work, and because it's not released.)
>
> I have the impression that the replacment functions for textsize are
> present in older Pillow, so perhaps changing to those is reasonable.  I
> didn't try that because a source fix was seeming no longer a 15 minute
> thing, and my priority was to get my system working.
>
> --
> 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/rmih6mg6tq9.fsf%40s1.lexort.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/CAPq0zECO2v9bRTFQ0YR5npgVmX1K9xtHgqorNHENZU5FDqatXA%40mail.gmail.com.


Re: [weewx-user] Pillow and textsize/textwidth

2023-10-24 Thread Greg Troxel
Rolling back to py-Pillow 9.5.0, plots generate.  That's ok for me today
because the box that runs weewx runs only weewx, but it's obviously not
long-term viable.

(I'm not trying to run v5, because it's structurally different (no
setup.py) and thus a fair bit of work, and because it's not released.)

I have the impression that the replacment functions for textsize are
present in older Pillow, so perhaps changing to those is reasonable.  I
didn't try that because a source fix was seeming no longer a 15 minute
thing, and my priority was to get my system working.

-- 
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/rmih6mg6tq9.fsf%40s1.lexort.com.


[weewx-user] Pillow and textsize/textwidth

2023-10-24 Thread Greg Troxel
Sorry if this has been discussed before, but tldr: the tip of master
seems incompatible with Pillow 10 while declaring that it is compatible.

I'm doing the usual quarterly updating of packages.  I now have
  py311-Pillow-10.0.1
which is consistent with requirements.txt.

My weewx sources are at

  commit 26bbcc56b5939d3e7e102ba21e9e656074714f67 (origin/master, origin/HEAD)
  Merge: 548bf5ec 8b3e628c
  Author: Tom Keffer 
  Date:   Sun Jul 16 16:08:00 2023 -0700

Running wee_reports:

  Generating as of last timestamp in the database.
  Using configuration file /usr/weewx/weewx.conf
  Traceback (most recent call last):
File "/usr/weewx/bin/weewx/reportengine.py", line 197, in run
  obj.start()
File "/usr/weewx/bin/weewx/reportengine.py", line 385, in start
  self.run()
File "/usr/weewx/bin/weewx/imagegenerator.py", line 42, in run
  self.gen_images(self.gen_ts)
File "/usr/weewx/bin/weewx/imagegenerator.py", line 114, in gen_images
  image = plot.render()
  ^
File "/usr/weewx/bin/weeplot/genplot.py", line 212, in render
  self._renderBottom(draw)
File "/usr/weewx/bin/weeplot/genplot.py", line 404, in _renderBottom
  bottom_label_size = draw.textsize(self.bottom_label, 
font=bottom_label_font)
  

File "/usr/weewx/bin/weeplot/genplot.py", line 646, in textsize
  return ImageDraw.ImageDraw.textsize(self, string, **options)
 
  AttributeError: type object 'ImageDraw' has no attribute 'textsize'

and the Internet more or less says that Pillow has changed this to
textlength.

Pillow says this removal is a feature rather than a bug:

  https://github.com/python-pillow/Pillow/issues/7277

  
https://pillow.readthedocs.io/en/stable/releasenotes/9.2.0.html#font-size-and-offset-methods



Replaying textsize with textlength in bin/weeplot/genplot.py results in
further errors, because apparently textsize returns a tuple but
textlength is only length and you need rows * height, but now I'm really
fuzzy.



So other than "it would be better not to depend on upstreams that
withdraw things people use", I wonder what the status is.

-- 
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/rmiy1fs6ugk.fsf%40s1.lexort.com.


[weewx-user] Re: Cloud base calculation formula in Weewx

2023-10-24 Thread Karen K
Remy Lavabre schrieb am Montag, 23. Oktober 2023 um 18:07:30 UTC+2:

Would it be possible to know the WeeWX calculation formula used to obtain 
the height of the cloud base in weewx from the outside temperature and the 
dew point?


It is Henning's formula, that is used.
 

-- 
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/9f667700-5981-481b-b343-8b4857e30c56n%40googlegroups.com.