Re: [weewx-user] Graph Section for previous year

2024-01-02 Thread John Smith
On Wed, 3 Jan 2024 at 07:42, Kevin Crivelli 
wrote:

> Not like "last 12 months" but "last year". I'd like to have a graph
> section for that. I'm sure it's very easy but I can't put my finger on it
>

I tried to do this for images, but my patch was rejected.

As for html that can be done:

$last_year.outTemp.max etc

-- 
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/CAGTinV6uPS2RLZEvy%3DfbtwBATmWAeP_0jT%2Bkgei90P0r7%3DUeeQ%40mail.gmail.com.


[weewx-user] Re: reading current data from weatherlink.com with WLLDriver

2024-01-02 Thread vince
>From that github site…
hostname - Set your IP or hostname of WLL module

So your snippet looks incorrect for hostname….

On Tuesday, January 2, 2024 at 8:21:37 PM UTC-8 Rich Strle wrote:

> From this link: https://www.wxforum.net/index.php?topic=41328.0
>
> I thought weatherlinklive-driver-weewx would be the best: 
> https://github.com/Drealine/weatherlinklive-driver-weewx
>
> There are so many drivers with similar names it's easy to go in circles 
> looking.
>
> On Tuesday, January 2, 2024 at 9:08:07 PM UTC-6 Rich Strle wrote:
>
>> I have upgraded to a Davis VantagePro2 (VP2) from a VantagePro1 (VP1).
>>
>> I am trying to read my current data from weatherlink.com with the 
>> WLLDriver. Has anyone else tried this? This is the driver section of 
>> the whew.conf file. I'm concerned about the hostname for sure. Does someone 
>> have a working version I could look at?
>>
>> [WLLDriver]
>> driver = user.WLLDriver
>> max_tries = 10
>> retry_wait = 5
>> poll_interval = 10
>> 
>> realtime_enable = 0
>> hostname = api.weatherlink.com/v2/stations
>> time_out = 10
>> device_id = iss:1
>> wl_archive_enable = 0
>> 
>> wl_apikey = jwrmkaivlopxwf9o2pgmyzbtcu1cceqy
>> wl_apisecret = XOXOXO
>> wl_stationid = 169644
>> wl_archive_interval = 1
>>
>

-- 
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/a878e62e-c169-4a5a-9cbd-1aaf6d42998dn%40googlegroups.com.


[weewx-user] Re: reading current data from weatherlink.com with WLLDriver

2024-01-02 Thread Rich Strle
>From this link: https://www.wxforum.net/index.php?topic=41328.0

I thought weatherlinklive-driver-weewx would be the 
best: https://github.com/Drealine/weatherlinklive-driver-weewx

There are so many drivers with similar names it's easy to go in circles 
looking.

On Tuesday, January 2, 2024 at 9:08:07 PM UTC-6 Rich Strle wrote:

> I have upgraded to a Davis VantagePro2 (VP2) from a VantagePro1 (VP1).
>
> I am trying to read my current data from weatherlink.com with the 
> WLLDriver. Has anyone else tried this? This is the driver section of 
> the whew.conf file. I'm concerned about the hostname for sure. Does someone 
> have a working version I could look at?
>
> [WLLDriver]
> driver = user.WLLDriver
> max_tries = 10
> retry_wait = 5
> poll_interval = 10
> 
> realtime_enable = 0
> hostname = api.weatherlink.com/v2/stations
> time_out = 10
> device_id = iss:1
> wl_archive_enable = 0
> 
> wl_apikey = jwrmkaivlopxwf9o2pgmyzbtcu1cceqy
> wl_apisecret = XOXOXO
> wl_stationid = 169644
> wl_archive_interval = 1
>

-- 
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/36b51a00-04b3-4b9c-80bd-40bc57eb5c6fn%40googlegroups.com.


[weewx-user] Re: Help requested installing GW1000 driver

2024-01-02 Thread gjr80
How did you install WeeWX; using setup.py or as a package using apt or 
dpkg? The command you are using assumes a setup.py install, if you have a 
package install you need to use:

PYTHONPATH=/usr/share/weewx python -m user.gw1000 --test-driver

Also, to make life easier for us (and to help you get the help you need), 
could you please post console output as text rather than as an image. Text 
is far easier to read, especially on mobile devices.

Gary
On Tuesday 2 January 2024 at 16:43:13 UTC+10 robertde...@gmail.com wrote:

> Hi, I have a clean install of Weewx 4.1.0 and am attempting to install the 
> GW1000 driver., following the QSG presented on 
> https://github.com/gjr80/weewx-gw1000.
>
> Step 4 : Test the Ecowitt Gateway driver by running the driver file 
> directly using the *--test-driver* command line option: 
> *PYTHONPATH=/home/weewx/bin 
> python -m user.gw1000 --test-driver*
>
> I receive the following error message:
>
>
> *[image: Screenshot 2024-01-02 165930.png]*
>
> Can someone assist in this issue?
>
> Thanks,
>
> Rob
>

-- 
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/4c6794bd-f980-4386-8599-1ddf681ca2f0n%40googlegroups.com.


[weewx-user] reading current data from weatherlink.com with WLLDriver

2024-01-02 Thread Rich Strle
I have upgraded to a Davis VantagePro2 (VP2) from a VantagePro1 (VP1).

I am trying to read my current data from weatherlink.com with the 
WLLDriver. Has anyone else tried this? This is the driver section of 
the whew.conf file. I'm concerned about the hostname for sure. Does someone 
have a working version I could look at?

[WLLDriver]
driver = user.WLLDriver
max_tries = 10
retry_wait = 5
poll_interval = 10

realtime_enable = 0
hostname = api.weatherlink.com/v2/stations
time_out = 10
device_id = iss:1
wl_archive_enable = 0

wl_apikey = jwrmkaivlopxwf9o2pgmyzbtcu1cceqy
wl_apisecret = XOXOXO
wl_stationid = 169644
wl_archive_interval = 1

-- 
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/d74f9ac3-2d2d-4468-bafa-4f552dcf1b9en%40googlegroups.com.


Re: [weewx-user] Graph files being generated with different sizes

2024-01-02 Thread gjr80
On Tuesday 2 January 2024 at 01:06:04 UTC+10 deng...@cfl.rr.com wrote:

If I was not ALSO publishing what WeeWx was creating as a page, I don't 
think I would have ever noticed.  I have not figured out how/where image 
files (except for daywindrose.png) generated by weewx-saratoga are used. 


The day, week, month and year plots are used on the Saratoga 'Station 
Graphs' page which normally sits under 'Almanac' in an out of-the-box 
Saratoga install. I see on your site you don't have 'Almanac' on the 
navigation menu and have a different set of plots. No matter, generating 
the weewx-saratoga plots won't do anything other than taking up processing 
time and perhaps bandwidth if uploading. If you don't want to generate them 
you can remove the weewx.imagegenerator.ImageGenerator entry from the 
[Generators] 
generator_list setting in the WEEWXtags skin.conf. To prevent old versions 
from being uploaded just delete the generated files from 
public_html/saratoga on your WeeWX machine.
 

Looks like I broke something else yesterday when I fixed the graphs.  WeeWX 
FTP and WeeWX weather data are no longer getting updated they both show 
a timestamp about the same time as when I edited the skin.conf:   
https://dougengland.com/wxstatus.php


Sorry it was a couple of days before I replied, but looking at your site 
and status page just now I'm guessing you got it fixed.

Gary

-- 
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/b6febcf6-1407-48d4-ba6e-266bc6391a5cn%40googlegroups.com.


Re: [weewx-user] Re: Image Generator crash after update

2024-01-02 Thread Tom Keffer
Some extensions use "StrictVersion" from distutils to test the version
number of weewx. It fails for anything with an "rc" in the version number.
You didn't show enough of the log to see what extension did this, but if
you comment out the version check, things will probably work.

On Tue, Jan 2, 2024 at 1:19 PM L B  wrote:

> Indeed, V5.0.0rc2 declines to start
> Jan 03 08:03:09 boronia weewxd[236273]: CRITICAL __main__: 
>  if StrictVersion(weewx.__version__) < StrictVersion(REQUIRED_WEEWX):
> Jan 03 08:03:09 boronia weewxd[236273]: CRITICAL __main__: 
>   
> Jan 03 08:03:09 boronia weewxd[236273]: CRITICAL __main__: 
>  File "/usr/lib/python3/dist-packages/setuptools/_distutils/version.py",
> line 54, in __init__
> Jan 03 08:03:09 boronia weewxd[236273]: CRITICAL __main__: 
>  self.parse(vstring)
> Jan 03 08:03:09 boronia weewxd[236273]: CRITICAL __main__: 
>  File "/usr/lib/python3/dist-packages/setuptools/_distutils/version.py",
> line 157, in parse
> Jan 03 08:03:09 boronia weewxd[236273]: CRITICAL __main__: 
>  raise ValueError("invalid version number '%s'" % vstring)
> Jan 03 08:03:09 boronia weewxd[236273]: CRITICAL __main__: 
>  ValueError: invalid version number '5.0.0rc2'
> Jan 03 08:03:09 boronia weewxd[236273]: CRITICAL __main__: 
>  Exiting.
> Jan 03 08:03:09 boronia systemd[1]: weewx.service: Main process exited,
> code=exited, status=1/FAILURE
> Jan 03 08:03:09 boronia systemd[1]: weewx.service: Failed with result
> 'exit-code'.
>
> My weewx is now running on weewx v5.0.0b17
> Thanks for your time
>
> On Wednesday, January 3, 2024 at 7:48:55 AM UTC+11 vince wrote:
>
>> I did find a debian:trixie docker image and gave the v5 beta a quick
>> test.  The pip method seems to work.  The rc2 dpkg looks like it has some
>> issues so I'd hold off on trying that.
>>
>> Or do the v4 workaround in the thread I mentioned earlier.
>>
>> On Tuesday, January 2, 2024 at 12:21:54 PM UTC-8 vince wrote:
>>
>>> Always always always search the forums for your AttributeError message.
>>>
>>> Look at
>>> https://groups.google.com/g/weewx-user/c/XmKEPTN1L_g/m/GUWqcdaQCQAJ and
>>> see if that helps any.  You might also try using the v5 beta as well,
>>> although it is still seemingly not finalized.
>>>
>>> Running old software on a bleeding edge os can sometimes come with
>>> adventures.  Geez I can barely find any references to debian trixie (deb13
>>> to-be it seems).  No vagrant boxes.  No docker images.  Nothing easily
>>> findable.  You're way out on the bleeding edge
>>>
>>> On Tuesday, January 2, 2024 at 11:56:33 AM UTC-8 Liz Dodd wrote:
>>>
 On 1/1/24 I updated my Debian server to trixie, finishing the update
 about 1620.
 My last images on my Weewx web page are dated 1/1/24 1700.

 I found a few errors in my logs, and looked for previous posts
 concerning these but didn't find anything that fixed my errors.

 Weewx v4.10.2
 Debian Testing "Trixie" kernel 6.5.0-5-amd64
 Davis weather station

 Personalised skin in use - made from the standard skin 'some time' back

 Error in Image Generator reported as follows in logs
 2024-01-03T06:10:17.266785+11:00 boronia weewx[1184] ERROR
 weewx.reportengine: Caught unrecoverable exception in generator
 'weewx.imagegenerator.ImageGenerator' 2024-01-03T06:10:17.266919+11:00
 boronia weewx[1184] ERROR weewx.reportengine:  type object
 'ImageDraw' has no attribute 'textsize'
 2024-01-03T06:10:17.267369+11:00 boronia weewx[1184] ERROR
 weewx.reportengine:  Traceback (most recent call last):
 2024-01-03T06:10:17.267452+11:00 boronia weewx[1184] ERROR
 weewx.reportengine:  File
 "/usr/share/weewx/weewx/reportengine.py", line 197, in run
 2024-01-03T06:10:17.267580+11:00 boronia weewx[1184] ERROR
 weewx.reportengine:  obj.start()
 2024-01-03T06:10:17.267720+11:00 boronia weewx[1184] ERROR
 weewx.reportengine:  File
 "/usr/share/weewx/weewx/reportengine.py", line 385, in start
 2024-01-03T06:10:17.267828+11:00 boronia weewx[1184] ERROR
 weewx.reportengine:  self.run()
 2024-01-03T06:10:17.267917+11:00 boronia weewx[1184] ERROR
 weewx.reportengine:  File
 "/usr/share/weewx/weewx/imagegenerator.py", line 42, in run
 2024-01-03T06:10:17.268001+11:00 boronia weewx[1184] ERROR
 weewx.reportengine:  self.gen_images(self.gen_ts)
 2024-01-03T06:10:17.268077+11:00 boronia weewx[1184] ERROR
 weewx.reportengine:  File
 "/usr/share/weewx/weewx/imagegenerator.py", line 114, in gen_images
 2024-01-03T06:10:17.268163+11:00 boronia weewx[1184] ERROR
 weewx.reportengine:  image = plot.render()
 2024-01-03T06:10:17.268261+11:00 boronia weewx[1184] ERROR
 weewx.reportengine:  ^
 2024-01-03T06:10:17.268348+11:00 boronia weewx[1184] ERROR
 weewx.reportengine:  

[weewx-user] Re: Image Generator crash after update

2024-01-02 Thread L B
Indeed, V5.0.0rc2 declines to start
Jan 03 08:03:09 boronia weewxd[236273]: CRITICAL __main__:   if 
StrictVersion(weewx.__version__) < StrictVersion(REQUIRED_WEEWX):
Jan 03 08:03:09 boronia weewxd[236273]: CRITICAL __main__:  

Jan 03 08:03:09 boronia weewxd[236273]: CRITICAL __main__: File 
"/usr/lib/python3/dist-packages/setuptools/_distutils/version.py", line 54, 
in __init__
Jan 03 08:03:09 boronia weewxd[236273]: CRITICAL __main__:  
 self.parse(vstring)
Jan 03 08:03:09 boronia weewxd[236273]: CRITICAL __main__: File 
"/usr/lib/python3/dist-packages/setuptools/_distutils/version.py", line 
157, in parse
Jan 03 08:03:09 boronia weewxd[236273]: CRITICAL __main__:  
 raise ValueError("invalid version number '%s'" % vstring)
Jan 03 08:03:09 boronia weewxd[236273]: CRITICAL __main__:  
 ValueError: invalid version number '5.0.0rc2'
Jan 03 08:03:09 boronia weewxd[236273]: CRITICAL __main__:  
 Exiting.
Jan 03 08:03:09 boronia systemd[1]: weewx.service: Main process exited, 
code=exited, status=1/FAILURE
Jan 03 08:03:09 boronia systemd[1]: weewx.service: Failed with result 
'exit-code'.

My weewx is now running on weewx v5.0.0b17
Thanks for your time

On Wednesday, January 3, 2024 at 7:48:55 AM UTC+11 vince wrote:

> I did find a debian:trixie docker image and gave the v5 beta a quick test. 
>  The pip method seems to work.  The rc2 dpkg looks like it has some issues 
> so I'd hold off on trying that.
>
> Or do the v4 workaround in the thread I mentioned earlier.
>
> On Tuesday, January 2, 2024 at 12:21:54 PM UTC-8 vince wrote:
>
>> Always always always search the forums for your AttributeError message. 
>>
>> Look at 
>> https://groups.google.com/g/weewx-user/c/XmKEPTN1L_g/m/GUWqcdaQCQAJ and 
>> see if that helps any.  You might also try using the v5 beta as well, 
>> although it is still seemingly not finalized.
>>
>> Running old software on a bleeding edge os can sometimes come with 
>> adventures.  Geez I can barely find any references to debian trixie (deb13 
>> to-be it seems).  No vagrant boxes.  No docker images.  Nothing easily 
>> findable.  You're way out on the bleeding edge
>>
>> On Tuesday, January 2, 2024 at 11:56:33 AM UTC-8 Liz Dodd wrote:
>>
>>> On 1/1/24 I updated my Debian server to trixie, finishing the update 
>>> about 1620. 
>>> My last images on my Weewx web page are dated 1/1/24 1700. 
>>>
>>> I found a few errors in my logs, and looked for previous posts 
>>> concerning these but didn't find anything that fixed my errors. 
>>>
>>> Weewx v4.10.2 
>>> Debian Testing "Trixie" kernel 6.5.0-5-amd64 
>>> Davis weather station 
>>>
>>> Personalised skin in use - made from the standard skin 'some time' back 
>>>
>>> Error in Image Generator reported as follows in logs 
>>> 2024-01-03T06:10:17.266785+11:00 boronia weewx[1184] ERROR 
>>> weewx.reportengine: Caught unrecoverable exception in generator 
>>> 'weewx.imagegenerator.ImageGenerator' 2024-01-03T06:10:17.266919+11:00 
>>> boronia weewx[1184] ERROR weewx.reportengine:  type object 
>>> 'ImageDraw' has no attribute 'textsize' 
>>> 2024-01-03T06:10:17.267369+11:00 boronia weewx[1184] ERROR 
>>> weewx.reportengine:  Traceback (most recent call last): 
>>> 2024-01-03T06:10:17.267452+11:00 boronia weewx[1184] ERROR 
>>> weewx.reportengine:  File 
>>> "/usr/share/weewx/weewx/reportengine.py", line 197, in run 
>>> 2024-01-03T06:10:17.267580+11:00 boronia weewx[1184] ERROR 
>>> weewx.reportengine:  obj.start() 
>>> 2024-01-03T06:10:17.267720+11:00 boronia weewx[1184] ERROR 
>>> weewx.reportengine:  File 
>>> "/usr/share/weewx/weewx/reportengine.py", line 385, in start 
>>> 2024-01-03T06:10:17.267828+11:00 boronia weewx[1184] ERROR 
>>> weewx.reportengine:  self.run() 
>>> 2024-01-03T06:10:17.267917+11:00 boronia weewx[1184] ERROR 
>>> weewx.reportengine:  File 
>>> "/usr/share/weewx/weewx/imagegenerator.py", line 42, in run 
>>> 2024-01-03T06:10:17.268001+11:00 boronia weewx[1184] ERROR 
>>> weewx.reportengine:  self.gen_images(self.gen_ts) 
>>> 2024-01-03T06:10:17.268077+11:00 boronia weewx[1184] ERROR 
>>> weewx.reportengine:  File 
>>> "/usr/share/weewx/weewx/imagegenerator.py", line 114, in gen_images 
>>> 2024-01-03T06:10:17.268163+11:00 boronia weewx[1184] ERROR 
>>> weewx.reportengine:  image = plot.render() 
>>> 2024-01-03T06:10:17.268261+11:00 boronia weewx[1184] ERROR 
>>> weewx.reportengine:  ^ 
>>> 2024-01-03T06:10:17.268348+11:00 boronia weewx[1184] ERROR 
>>> weewx.reportengine:  File 
>>> "/usr/share/weewx/weeplot/genplot.py", line 212, in render 
>>> 2024-01-03T06:10:17.268429+11:00 boronia weewx[1184] ERROR 
>>> weewx.reportengine:  self._renderBottom(draw) 
>>> 2024-01-03T06:10:17.268498+11:00 boronia weewx[1184] ERROR 
>>> weewx.reportengine:  File 
>>> "/usr/share/weewx/weeplot/genplot.py", line 404, in _renderBottom 
>>> 

[weewx-user] Re: Image Generator crash after update

2024-01-02 Thread vince
I did find a debian:trixie docker image and gave the v5 beta a quick test. 
 The pip method seems to work.  The rc2 dpkg looks like it has some issues 
so I'd hold off on trying that.

Or do the v4 workaround in the thread I mentioned earlier.

On Tuesday, January 2, 2024 at 12:21:54 PM UTC-8 vince wrote:

> Always always always search the forums for your AttributeError message. 
>
> Look at 
> https://groups.google.com/g/weewx-user/c/XmKEPTN1L_g/m/GUWqcdaQCQAJ and 
> see if that helps any.  You might also try using the v5 beta as well, 
> although it is still seemingly not finalized.
>
> Running old software on a bleeding edge os can sometimes come with 
> adventures.  Geez I can barely find any references to debian trixie (deb13 
> to-be it seems).  No vagrant boxes.  No docker images.  Nothing easily 
> findable.  You're way out on the bleeding edge
>
> On Tuesday, January 2, 2024 at 11:56:33 AM UTC-8 Liz Dodd wrote:
>
>> On 1/1/24 I updated my Debian server to trixie, finishing the update 
>> about 1620. 
>> My last images on my Weewx web page are dated 1/1/24 1700. 
>>
>> I found a few errors in my logs, and looked for previous posts 
>> concerning these but didn't find anything that fixed my errors. 
>>
>> Weewx v4.10.2 
>> Debian Testing "Trixie" kernel 6.5.0-5-amd64 
>> Davis weather station 
>>
>> Personalised skin in use - made from the standard skin 'some time' back 
>>
>> Error in Image Generator reported as follows in logs 
>> 2024-01-03T06:10:17.266785+11:00 boronia weewx[1184] ERROR 
>> weewx.reportengine: Caught unrecoverable exception in generator 
>> 'weewx.imagegenerator.ImageGenerator' 2024-01-03T06:10:17.266919+11:00 
>> boronia weewx[1184] ERROR weewx.reportengine:  type object 
>> 'ImageDraw' has no attribute 'textsize' 
>> 2024-01-03T06:10:17.267369+11:00 boronia weewx[1184] ERROR 
>> weewx.reportengine:  Traceback (most recent call last): 
>> 2024-01-03T06:10:17.267452+11:00 boronia weewx[1184] ERROR 
>> weewx.reportengine:  File 
>> "/usr/share/weewx/weewx/reportengine.py", line 197, in run 
>> 2024-01-03T06:10:17.267580+11:00 boronia weewx[1184] ERROR 
>> weewx.reportengine:  obj.start() 
>> 2024-01-03T06:10:17.267720+11:00 boronia weewx[1184] ERROR 
>> weewx.reportengine:  File 
>> "/usr/share/weewx/weewx/reportengine.py", line 385, in start 
>> 2024-01-03T06:10:17.267828+11:00 boronia weewx[1184] ERROR 
>> weewx.reportengine:  self.run() 
>> 2024-01-03T06:10:17.267917+11:00 boronia weewx[1184] ERROR 
>> weewx.reportengine:  File 
>> "/usr/share/weewx/weewx/imagegenerator.py", line 42, in run 
>> 2024-01-03T06:10:17.268001+11:00 boronia weewx[1184] ERROR 
>> weewx.reportengine:  self.gen_images(self.gen_ts) 
>> 2024-01-03T06:10:17.268077+11:00 boronia weewx[1184] ERROR 
>> weewx.reportengine:  File 
>> "/usr/share/weewx/weewx/imagegenerator.py", line 114, in gen_images 
>> 2024-01-03T06:10:17.268163+11:00 boronia weewx[1184] ERROR 
>> weewx.reportengine:  image = plot.render() 
>> 2024-01-03T06:10:17.268261+11:00 boronia weewx[1184] ERROR 
>> weewx.reportengine:  ^ 
>> 2024-01-03T06:10:17.268348+11:00 boronia weewx[1184] ERROR 
>> weewx.reportengine:  File 
>> "/usr/share/weewx/weeplot/genplot.py", line 212, in render 
>> 2024-01-03T06:10:17.268429+11:00 boronia weewx[1184] ERROR 
>> weewx.reportengine:  self._renderBottom(draw) 
>> 2024-01-03T06:10:17.268498+11:00 boronia weewx[1184] ERROR 
>> weewx.reportengine:  File 
>> "/usr/share/weewx/weeplot/genplot.py", line 404, in _renderBottom 
>> 2024-01-03T06:10:17.268589+11:00 boronia weewx[1184] ERROR 
>> weewx.reportengine:  bottom_label_size = 
>> draw.textsize(self.bottom_label, font=bottom_label_font) 
>> 2024-01-03T06:10:17.268667+11:00 boronia weewx[1184] ERROR 
>> weewx.reportengine:  
>>  
>> 2024-01-03T06:10:17.268746+11:00 boronia weewx[1184] ERROR 
>> weewx.reportengine:  File 
>> "/usr/share/weewx/weeplot/genplot.py", line 646, in textsize 
>> 2024-01-03T06:10:17.268827+11:00 boronia weewx[1184] ERROR 
>> weewx.reportengine:  return 
>> ImageDraw.ImageDraw.textsize(self, string, **options) 
>> 2024-01-03T06:10:17.268912+11:00 boronia weewx[1184] ERROR 
>> weewx.reportengine:  
>>  2024-01-03T06:10:17.268988+11:00 boronia 
>> weewx[1184] ERROR weewx.reportengine:  AttributeError: 
>> type object 'ImageDraw' has no attribute 'textsize' 
>> 2024-01-03T06:10:17.269066+11:00 boronia weewx[1184] ERROR 
>> weewx.reportengine:  Generator terminated 
>>
>> I thought I would try reinstalling the package as I had not examined 
>> the diffs for any of the conf files when updating the server. 
>> This was unsuccessful 
>> Setting up weewx (4.10.2-1) ... 
>> using debconf configuration values from previous install 
>> Traceback (most recent call last): 
>> File "/usr/share/weewx/wee_config", line 128, in  
>> main() 
>> File 

[weewx-user] Graph Section for previous year

2024-01-02 Thread Kevin Crivelli
Not like "last 12 months" but "last year". I'd like to have a graph section 
for that. I'm sure it's very easy but I can't put my finger on it

-- 
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/ae9c8b5d-bf42-444d-81ac-762aba55918cn%40googlegroups.com.


[weewx-user] Re: Image Generator crash after update

2024-01-02 Thread vince
Always always always search the forums for your AttributeError message. 

Look at https://groups.google.com/g/weewx-user/c/XmKEPTN1L_g/m/GUWqcdaQCQAJ 
and see if that helps any.  You might also try using the v5 beta as well, 
although it is still seemingly not finalized.

Running old software on a bleeding edge os can sometimes come with 
adventures.  Geez I can barely find any references to debian trixie (deb13 
to-be it seems).  No vagrant boxes.  No docker images.  Nothing easily 
findable.  You're way out on the bleeding edge

On Tuesday, January 2, 2024 at 11:56:33 AM UTC-8 Liz Dodd wrote:

> On 1/1/24 I updated my Debian server to trixie, finishing the update
> about 1620. 
> My last images on my Weewx web page are dated 1/1/24 1700.
>
> I found a few errors in my logs, and looked for previous posts
> concerning these but didn't find anything that fixed my errors.
>
> Weewx v4.10.2
> Debian Testing "Trixie" kernel 6.5.0-5-amd64
> Davis weather station
>
> Personalised skin in use - made from the standard skin 'some time' back
>
> Error in Image Generator reported as follows in logs
> 2024-01-03T06:10:17.266785+11:00 boronia weewx[1184] ERROR
> weewx.reportengine: Caught unrecoverable exception in generator
> 'weewx.imagegenerator.ImageGenerator' 2024-01-03T06:10:17.266919+11:00
> boronia weewx[1184] ERROR weewx.reportengine:  type object
> 'ImageDraw' has no attribute 'textsize'
> 2024-01-03T06:10:17.267369+11:00 boronia weewx[1184] ERROR
> weewx.reportengine:  Traceback (most recent call last):
> 2024-01-03T06:10:17.267452+11:00 boronia weewx[1184] ERROR
> weewx.reportengine:  File
> "/usr/share/weewx/weewx/reportengine.py", line 197, in run
> 2024-01-03T06:10:17.267580+11:00 boronia weewx[1184] ERROR
> weewx.reportengine:  obj.start()
> 2024-01-03T06:10:17.267720+11:00 boronia weewx[1184] ERROR
> weewx.reportengine:  File
> "/usr/share/weewx/weewx/reportengine.py", line 385, in start
> 2024-01-03T06:10:17.267828+11:00 boronia weewx[1184] ERROR
> weewx.reportengine:  self.run()
> 2024-01-03T06:10:17.267917+11:00 boronia weewx[1184] ERROR
> weewx.reportengine:  File
> "/usr/share/weewx/weewx/imagegenerator.py", line 42, in run
> 2024-01-03T06:10:17.268001+11:00 boronia weewx[1184] ERROR
> weewx.reportengine:  self.gen_images(self.gen_ts)
> 2024-01-03T06:10:17.268077+11:00 boronia weewx[1184] ERROR
> weewx.reportengine:  File
> "/usr/share/weewx/weewx/imagegenerator.py", line 114, in gen_images
> 2024-01-03T06:10:17.268163+11:00 boronia weewx[1184] ERROR
> weewx.reportengine:  image = plot.render()
> 2024-01-03T06:10:17.268261+11:00 boronia weewx[1184] ERROR
> weewx.reportengine:  ^
> 2024-01-03T06:10:17.268348+11:00 boronia weewx[1184] ERROR
> weewx.reportengine:  File
> "/usr/share/weewx/weeplot/genplot.py", line 212, in render
> 2024-01-03T06:10:17.268429+11:00 boronia weewx[1184] ERROR
> weewx.reportengine:  self._renderBottom(draw)
> 2024-01-03T06:10:17.268498+11:00 boronia weewx[1184] ERROR
> weewx.reportengine:  File
> "/usr/share/weewx/weeplot/genplot.py", line 404, in _renderBottom
> 2024-01-03T06:10:17.268589+11:00 boronia weewx[1184] ERROR
> weewx.reportengine:  bottom_label_size =
> draw.textsize(self.bottom_label, font=bottom_label_font)
> 2024-01-03T06:10:17.268667+11:00 boronia weewx[1184] ERROR
> weewx.reportengine: 
> 
> 2024-01-03T06:10:17.268746+11:00 boronia weewx[1184] ERROR
> weewx.reportengine:  File
> "/usr/share/weewx/weeplot/genplot.py", line 646, in textsize
> 2024-01-03T06:10:17.268827+11:00 boronia weewx[1184] ERROR
> weewx.reportengine:  return
> ImageDraw.ImageDraw.textsize(self, string, **options)
> 2024-01-03T06:10:17.268912+11:00 boronia weewx[1184] ERROR
> weewx.reportengine: 
>  2024-01-03T06:10:17.268988+11:00 boronia
> weewx[1184] ERROR weewx.reportengine:  AttributeError:
> type object 'ImageDraw' has no attribute 'textsize'
> 2024-01-03T06:10:17.269066+11:00 boronia weewx[1184] ERROR
> weewx.reportengine:  Generator terminated
>
> I thought I would try reinstalling the package as I had not examined
> the diffs for any of the conf files when updating the server.
> This was unsuccessful
> Setting up weewx (4.10.2-1) ...
> using debconf configuration values from previous install
> Traceback (most recent call last):
> File "/usr/share/weewx/wee_config", line 128, in 
> main()
> File "/usr/share/weewx/wee_config", line 122, in main
> config_mgr.run(args, options)
> File "/usr/share/weewx/weecfg/config.py", line 125, in run
> weecfg.modify_config(config_dict, stn_info, self.logger,
> options.debug) File "/usr/share/weewx/weecfg/__init__.py", line 313, in
> modify_config config_dict['StdReport']['Defaults']['unit_system'] =
> stn_info['unit_system'] 
> File "/usr/lib/python3/dist-packages/configobj/__init__.py", line
> 554, in __getitem__ val = 

[weewx-user] Image Generator crash after update

2024-01-02 Thread Liz Dodd
On 1/1/24 I updated my Debian server to trixie, finishing the update
about 1620. 
My last images on my Weewx web page are dated 1/1/24 1700.

I found a few errors in my logs, and looked for previous posts
concerning these but didn't find anything that fixed my errors.

Weewx v4.10.2
Debian Testing "Trixie" kernel 6.5.0-5-amd64
Davis weather station

Personalised skin in use - made from the standard skin 'some time' back

Error in Image Generator reported as follows in logs
2024-01-03T06:10:17.266785+11:00 boronia weewx[1184] ERROR
weewx.reportengine: Caught unrecoverable exception in generator
'weewx.imagegenerator.ImageGenerator' 2024-01-03T06:10:17.266919+11:00
boronia weewx[1184] ERROR weewx.reportengine:   type object
'ImageDraw' has no attribute 'textsize'
2024-01-03T06:10:17.267369+11:00 boronia weewx[1184] ERROR
weewx.reportengine:   Traceback (most recent call last):
2024-01-03T06:10:17.267452+11:00 boronia weewx[1184] ERROR
weewx.reportengine: File
"/usr/share/weewx/weewx/reportengine.py", line 197, in run
2024-01-03T06:10:17.267580+11:00 boronia weewx[1184] ERROR
weewx.reportengine:   obj.start()
2024-01-03T06:10:17.267720+11:00 boronia weewx[1184] ERROR
weewx.reportengine: File
"/usr/share/weewx/weewx/reportengine.py", line 385, in start
2024-01-03T06:10:17.267828+11:00 boronia weewx[1184] ERROR
weewx.reportengine:   self.run()
2024-01-03T06:10:17.267917+11:00 boronia weewx[1184] ERROR
weewx.reportengine: File
"/usr/share/weewx/weewx/imagegenerator.py", line 42, in run
2024-01-03T06:10:17.268001+11:00 boronia weewx[1184] ERROR
weewx.reportengine:   self.gen_images(self.gen_ts)
2024-01-03T06:10:17.268077+11:00 boronia weewx[1184] ERROR
weewx.reportengine: File
"/usr/share/weewx/weewx/imagegenerator.py", line 114, in gen_images
2024-01-03T06:10:17.268163+11:00 boronia weewx[1184] ERROR
weewx.reportengine:   image = plot.render()
2024-01-03T06:10:17.268261+11:00 boronia weewx[1184] ERROR
weewx.reportengine:   ^
2024-01-03T06:10:17.268348+11:00 boronia weewx[1184] ERROR
weewx.reportengine: File
"/usr/share/weewx/weeplot/genplot.py", line 212, in render
2024-01-03T06:10:17.268429+11:00 boronia weewx[1184] ERROR
weewx.reportengine:   self._renderBottom(draw)
2024-01-03T06:10:17.268498+11:00 boronia weewx[1184] ERROR
weewx.reportengine: File
"/usr/share/weewx/weeplot/genplot.py", line 404, in _renderBottom
2024-01-03T06:10:17.268589+11:00 boronia weewx[1184] ERROR
weewx.reportengine:   bottom_label_size =
draw.textsize(self.bottom_label, font=bottom_label_font)
2024-01-03T06:10:17.268667+11:00 boronia weewx[1184] ERROR
weewx.reportengine: 

2024-01-03T06:10:17.268746+11:00 boronia weewx[1184] ERROR
weewx.reportengine: File
"/usr/share/weewx/weeplot/genplot.py", line 646, in textsize
2024-01-03T06:10:17.268827+11:00 boronia weewx[1184] ERROR
weewx.reportengine:   return
ImageDraw.ImageDraw.textsize(self, string, **options)
2024-01-03T06:10:17.268912+11:00 boronia weewx[1184] ERROR
weewx.reportengine: 
 2024-01-03T06:10:17.268988+11:00 boronia
weewx[1184] ERROR weewx.reportengine:   AttributeError:
type object 'ImageDraw' has no attribute 'textsize'
2024-01-03T06:10:17.269066+11:00 boronia weewx[1184] ERROR
weewx.reportengine:   Generator terminated

I thought I would try reinstalling the package as I had not examined
the diffs for any of the conf files when updating the server.
This was unsuccessful
Setting up weewx (4.10.2-1) ...
using debconf configuration values from previous install
Traceback (most recent call last):
  File "/usr/share/weewx/wee_config", line 128, in 
main()
  File "/usr/share/weewx/wee_config", line 122, in main
config_mgr.run(args, options)
  File "/usr/share/weewx/weecfg/config.py", line 125, in run
weecfg.modify_config(config_dict, stn_info, self.logger,
options.debug) File "/usr/share/weewx/weecfg/__init__.py", line 313, in
modify_config config_dict['StdReport']['Defaults']['unit_system'] =
stn_info['unit_system'] 
  File "/usr/lib/python3/dist-packages/configobj/__init__.py", line
554, in __getitem__ val = dict.__getitem__(self, key)
  ^^^
KeyError: 'Defaults'
dpkg: error processing package weewx (--configure):
 installed weewx package post-installation script subprocess returned
error exit status 1 Errors were encountered while processing:
 weewx

This leaves me with the error
AttributeError: type object 'ImageDraw' has no attribute 'textsize'

Can someone advise where I can specify 'textsize' ?

Liz

-- 
You received this message because you are subscribed to the Google Groups 

[weewx-user] Re: Help requested installing GW1000 driver

2024-01-02 Thread 'michael.k...@gmx.at' via weewx-user
Maybe not really helpful, but anyway:

   - isn't the parameter --ip-address (you use "ip-addresse")
   - Is there a reason why you use an outdated version of weewx for a clean 
   install?
   


Robert de Keijzer schrieb am Dienstag, 2. Januar 2024 um 07:43:13 UTC+1:

> Hi, I have a clean install of Weewx 4.1.0 and am attempting to install the 
> GW1000 driver., following the QSG presented on 
> https://github.com/gjr80/weewx-gw1000.
>
> Step 4 : Test the Ecowitt Gateway driver by running the driver file 
> directly using the *--test-driver* command line option: 
> *PYTHONPATH=/home/weewx/bin 
> python -m user.gw1000 --test-driver*
>
> I receive the following error message:
>
>
> *[image: Screenshot 2024-01-02 165930.png]*
>
> Can someone assist in this issue?
>
> Thanks,
>
> Rob
>

-- 
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/bac52c52-6848-4e26-8d80-b1dcab9e8114n%40googlegroups.com.


Re: [weewx-user] Wind Run in RTGD with SteelSeries Gauges

2024-01-02 Thread 'Rory Gillies' via weewx-user
That’s fixed it Gary, many thanks!

Happy New Year,

Rory

> On 1 Jan 2024, at 19:54, gjr80  wrote:
> 
> Rory,
> 
> There is a bug in the realtime gauge extension windrun unit conversion, the 
> net result was that when specifying wind speed in mile_per_hour windrun was 
> left as the km value rather than converted to miles. Display wise that meant 
> your gauges show units of miles, but the value displayed is the km value. 
> Fixed in v0.6.6, you can download the v0.6.6 package from the Realtime gauge 
> data extension releases page 
> .
> 
> Gary
> On Monday 1 January 2024 at 22:32:09 UTC+10 rory.g...@googlemail.com 
>  wrote:
>> Hi Gary, that's great, thanks for the update. I replaced rtgd.py with 
>> version 0.6.5 and the wind run odometer is now working and updating. One 
>> issue remains, the wind run displayed on the odometer is different to that 
>> displayed on my current conditions page, could this be due to the way it is 
>> calculated or accumulated? My calculation uses $day.windrun.sum, looking 
>> through rtgd.py your calculation looks the same:
>>'windrun': {
>> 'source': 'windrun',
>> 'aggregate': 'sum',
>> 'aggregate_period': 'day',
>> 'group': 'group_distance'
>> },
>> 
>> Not sure why there should be such a difference, have a look at my live page: 
>> https://www.360shetland.co.uk/weather/live.html then compare it to the 
>> Current page. At the time of writing the odometer reads 216.9 while on the 
>> Current page it is reading 134.9, a difference of 82 miles.
>> 
>> Thanks,
>> 
>> Rory
>> On Monday, January 1, 2024 at 3:05:03 AM UTC gjr80 wrote:
>>> I've released v0.6.5 of the Realtime gauge data extension that should fix 
>>> the zero windrun issue. The extension package can be downloaded from the 
>>> Realtime gauge data extension releases page 
>>> .
>>> 
>>> Gary
> 
> 
> -- 
> 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/l5mTCp0_ZmY/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/1af1db9e-98a3-4dae-942c-3bb176c0684dn%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/77680660-689D-4FE6-9050-41BC34A77E5C%40googlemail.com.