Code Monkey home page Code Monkey logo

weewx-stackedwindrose's People

Contributors

gjr80 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

nellyt simon2e

weewx-stackedwindrose's Issues

Spiral plot?

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]]]]

AttributeError running Under Pillow 10.0.0

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

Not compatible with weewx v4.7

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

Windrose fails in any item of speedVec is None

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:

image

Regards,
Praveen

Version 2.1 is not working after update weewx >3.9.2 and python3

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

Stackedwinrose.log

br
Manfred

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.