gjr80 / weewx-stackedwindrose Goto Github PK
View Code? Open in Web Editor NEWA WeeWX extension to generate a polar windrose graphic
License: GNU General Public License v3.0
A WeeWX extension to generate a polar windrose graphic
License: GNU General Public License v3.0
I switched to this from the PolarWindPlot as it didn't work on bullseye & python 3.9.2. However unlike the PolarWindPlot it doesn't offer the same range of types of plot, most of all the Spiral. I was using this and would be very happy if the spiral starts working again.
[[SpiralScatterTrailSpecific]]
[[[dot4spiral]]]
plot_type = spiral
marker_type = dot
marker_size = 4
[[[[windSpeed]]]]
Pillow 10.0.0 was Released on Jul 1, 2023
It contains some Backwards Incompatible Changes, including at least one which seems to affect Stacked Windrose Image Generator extension.
The Font size method ImageDraw.textsize() was removed.
Details from Pillow 10.0.0 Release Notes Font size and offset methods
Brief log showing error:
Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR weewx.reportengine: Caught unrecoverable exception in generator 'user.stackedwindrose.StackedWindRoseImageGenerator'
Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR weewx.reportengine: **** type object 'ImageDraw' has no attribute 'textsize'
Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR weewx.reportengine: **** Traceback (most recent call last):
Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR weewx.reportengine: **** File "/home/panders/weewx-venv/lib/python3.11/site-packages/weewx/reportengine.py", line 196, in run
Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR weewx.reportengine: **** obj.start()
Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR weewx.reportengine: **** File "/home/panders/weewx-venv/lib/python3.11/site-packages/weewx/reportengine.py", line 384, in start
Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR weewx.reportengine: **** self.run()
Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR weewx.reportengine: **** File "/home/panders/weewx-data/bin/user/stackedwindrose.py", line 231, in run
Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR weewx.reportengine: **** self.gen_images(self.gen_ts)
Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR weewx.reportengine: **** File "/home/panders/weewx-data/bin/user/stackedwindrose.py", line 452, in gen_images
Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR weewx.reportengine: **** text_w, text_h = self.draw.textsize("0 (100%)",
Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR weewx.reportengine: **** ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR weewx.reportengine: **** File "/home/panders/weewx-data/bin/user/stackedwindrose.py", line 840, in textsize
Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR weewx.reportengine: **** return ImageDraw.ImageDraw.textsize(self, string, **options)
Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR weewx.reportengine: **** ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR weewx.reportengine: **** AttributeError: type object 'ImageDraw' has no attribute 'textsize'
Jul 02 12:20:18 rpi4dev python3[6011]: weewx[6011] ERROR weewx.reportengine: **** Generator terminated
Paul
Hi,
In latest index.html.tmpl, the plots are decided by plotgroups and it checks obsType for each plot group and if it has data. This does not work with stackedWindRose extension.
Regards,
Praveen
Hi,
Had my station going down couple of time yesterday which has resulted in probably some missing data. As a result of this, speedVec is None for some entries. At line 273 of imageStackedWindRose.py, we check max of speedVec[0] which errors out if some entries are None. To avoid this I locally edited as below:
Regards,
Praveen
Refer this WeeWX user group thread.
Currently petal colours applied to a percentage range of speeds (eg the bottom 10% of speeds are green etc) so over time a given colour represents a varying band of speeds. It would be useful to assign petals colours to bands of absolute speeds (eg 0-2 km/hr is green).
Hello,
Can anybody help regarding the Windrose code?
I update my weewx to latest version 4.1.0 and change the recommended python 3 version but afterwards the windrose doesn't work!
It would be great if anybody have an idea what's going wrong and can help me.
At the moment i didn't see a chance to update the latest weewx version.
I restore my old one and run again 3.9.2
br
Manfred
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.