Gary

Thanks for the fix (1.0.2).  I applied the fix and now the units on the 
generated image shows up as km/h.  Unfortunately the wind rose still show 
all wind speeds as zero, when in fact I have been seeing light wind all 
day.  See attached the current images as reference.

I wish I could provide more feedback, but the log is clear.


On Tuesday, 13 December 2016 17:08:37 UTC-8, gjr80 wrote:
>
> Well on first look it looks like the overrides in weewx.conf are not 
> being picked up, looking closer at the stacked windrose generator code I 
> can see that the overrides are being picked up but the generator never does 
> any conversion of the raw wind speed data from the database. In terms of 
> effects, this means the windrose would always use the speed units that are 
> used in the weewx database (for most this is mph). Not sure how I missed 
> this, that generator was written over 2 years ago and I distinctly remember 
> testing the units - perhaps it coincided with changing database units on my 
> then test system - I do remember doing that a few times. No matter. 
>
> To fix the issue just move aside your current 
> bin/user/imageStackedWindRose3.py then download the latest version of the 
> file from bitbucket. Easiest approach to downloading is probably using wget 
> - this command should do it:
>
> $ wget -P /var/tmp https://
> bitbucket.org/ozgreg/weewx-wd/raw/bc5c32cd97e5ec7f81ea8f83eb0edb2f241eaa3f/bin/user/imageStackedWindRose3.py
>
> Note this file has the import Image/ImageDraw fix from a few days ago so 
> that issue should not give you any more grief. Thanks for pointing out the 
> issues.
>
> Gary
>
>
> On Wednesday, 14 December 2016 03:11:47 UTC+10, Louis De Lange wrote:
>>
>>
>>
>> On Sunday, 11 December 2016 18:52:27 UTC-8, gjr80 wrote:
>>>
>>> Thanks, I thought that one had come up before and had been fixed, 
>>> apparently not. I have commited a fix to the weewx-WD bitbucket repo and 
>>> will release a 1.0.2 version this week sometime. Oh, and by the way the fix 
>>> is the same as is used by weewx in bin/weeplot/genplot.py:
>>>
>>> try:
>>>     from PIL import Image, ImageDraw
>>> except ImportError:
>>>     import Image, ImageDraw
>>>
>>> Gary
>>>
>>>
>> Gary,
>>
>> Next problem - according to the log the wdStackedWindRose report runs 
>> without any error.
>>
>> Dec 13 08:51:46 goflexhome weewx[25754]: reportengine: Running report 
>> wdStackedWindRose
>> Dec 13 08:51:46 goflexhome weewx[25754]: reportengine: Found configuration 
>> file /home/weewx/skins/StackedWindRose/skin.conf for report wdStackedWindRose
>> Dec 13 08:51:46 goflexhome weewx[25754]: imageStackedWindRose: Generated 1 
>> images for wdStackedWindRose in 0.25 seconds
>>
>>
>> The image daywindrose.png is created, but it shows all winds to be zero - 
>> also, it shows the units to be mph rather than kmph as configured.  
>>
>>
>> See the generated image and the regular weewx wind vector image attached for 
>> comparison.
>>
>>
>> The clip from my weewx.conf file below show the unit overrides to kmph.
>>
>>
>>     [[wdStackedWindRose]]
>>
>>         HTML_ROOT = public_html/WD
>>
>>         skin = StackedWindRose
>>
>>         [[[Units]]]
>>
>>             [[[[TimeFormats]]]]
>>
>>                 date_time_f = %d/%m/%Y %H:%M
>>
>>                 date_f = %d/%m/%Y
>>
>>             [[[[Groups]]]]
>>
>>                 group_speed = km_per_hour
>>
>>     [[wdStackedWindRose]]
>>         HTML_ROOT = public_html/WD
>>         skin = StackedWindRose
>>         [[[Units]]]
>>             [[[[TimeFormats]]]]
>>                 date_time_f = %d/%m/%Y %H:%M
>>                 date_f = %d/%m/%Y
>>             [[[[Groups]]]]
>>                 group_speed = km_per_hour
>>
>>                 group_speed2 = km_per_hour2 
>>
>>
>>
>>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to