Another question.  I was trying to add a Week Wind Rose in addition to the 
Day Wind Rose.  It works by the additions below in weewx.conf, however, the 
images look strangely similar.  Am approaching this wrong?  Should I create 
another stanza for the stackedwindrose?

    [[StackedWindRose]]
        skin = StackedWindRose
        enable = true
        [[[Units]]]
            [[[[Labels]]]]
                mile_per_hour = mph
                meter_per_second = m/s
                knot = knots
                km_per_hour = km/h
            [[[[Groups]]]]
                group_speed = knot
        [[[Labels]]]
            compass_points = N, S, E, W
            [[[[Generic]]]]
                windSpeed = Wind Speed
                windGust = Gust Speed
                        
        [[[StackedWindRoseImageGenerator]]]
            image_background_image = None
            image_width = 382
            image_height = 361
            image_background_circle_color = 0xF5F5F5
            image_background_box_color = 0xF5C696
            image_background_range_ring_color = 0xC3D9DD
            windrose_plot_border = 5
            windrose_legend_bar_width = 10
            windrose_font_path = 
/usr/share/fonts/truetype/freefont/FreeSansBold.ttf
            windrose_plot_font_size = 10
            windrose_plot_font_color = 0x000000
            windrose_legend_font_size = 10
            windrose_legend_font_color = 0x000000
            windrose_label_font_size = 12
            windrose_label_font_color = 0x000000
            windrose_plot_petal_colors = aqua, 0xFF9900, 0xFF3300, 
0x009900, 0x00CC00, 0x33FF33, 0x00FFCC
            windrose_plot_petal_width = 16
            [[[[day_images]]]]
                time_length = 86400
                [[[[[daywindrose]]]]]
                    format = png
                    [[[[[[windSpeed]]]]]]
                        label = 24 Hour Wind Rose
                        time_stamp = %H:%M %-d %b %y
                        time_stamp_location = bottom, right
                time_length = 592200
                [[[[[weekwindrose]]]]]
                    format = png
                    [[[[[[windSpeed]]]]]]
                        label = Weekly Wind Rose
                        time_stamp = %H:%M %-d %b %y
                        time_stamp_location = bottom, right

[image: daywindrose.png]

[image: weekwindrose.png]


On Saturday, June 6, 2020 at 4:34:52 PM UTC-7, Jerry Keefe wrote:
>
> All good, thanks.
>
> [image: daywindrose.png]
>
>
> On Saturday, June 6, 2020 at 4:02:19 PM UTC-7, gjr80 wrote:
>>
>> Ah, the changed behaviour of max() under python3. Try this:
>>
>> 1. rename your existing 
>> /Users/rycweather/weewx/bin/user/stackedwindrose.py to 
>> stackedwindrose_300.py
>> 2. download this version of stackedwindrose.py 
>> <https://raw.githubusercontent.com/gjr80/weewx-stackedwindrose/master/bin/user/stackedwindrose.py>
>>  
>> to the /Users/rycweather/weewx/bin/user directory
>> 3. restart WeeWX
>>
>> Gary
>>
>> On Sunday, 7 June 2020 08:13:16 UTC+10, Jerry Keefe wrote:
>>>
>>> Getting errors with V 3.0 and Weewx 4.1.1, macOS 10.15.5 python3 3.8.3
>>>
>>> weewx[86199] INFO __main__: Starting up weewx version 4.1.1
>>> weewx[86199] INFO weewx.engine: Clock error is -3.87 seconds (positive 
>>> is fast)
>>> weewx[86199] INFO weewx.engine: Using binding 'wx_binding' to database 
>>> 'weewx.sdb'
>>> weewx[86199] INFO weewx.manager: Starting backfill of daily summaries
>>> weewx[86199] INFO weewx.engine: Starting main packet loop.
>>> weewx[86199] INFO weewx.manager: Added record 2020-06-06 14:55:00 PDT 
>>> (1591480500) to database 'weewx.sdb'
>>> weewx[86199] INFO weewx.manager: Added record 2020-06-06 14:55:00 PDT 
>>> (1591480500) to daily summary in 'weewx.sdb'
>>> weewx[86199] INFO weewx.restx: Wunderground-PWS: Published record 
>>> 2020-06-06 14:55:00 PDT (1591480500)
>>> weewx[86199] INFO weewx.restx: StationRegistry: Published record 
>>> 2020-06-06 14:55:00 PDT (1591480500)
>>> weewx[86199] INFO weewx.cheetahgenerator: Generated 14 files for report 
>>> StandardReport in 1.00 seconds
>>> weewx[86199] INFO weewx.imagegenerator: Generated 12 images for report 
>>> StandardReport in 0.47 seconds
>>> weewx[86199] INFO weewx.reportengine: Copied 14 files to 
>>> /Users/rycweather/www
>>> weewx[86199] INFO weewx.cheetahgenerator: Generated 8 files for report 
>>> SeasonsReport in 1.23 seconds
>>> weewx[86199] INFO weewx.imagegenerator: Generated 14 images for report 
>>> SeasonsReport in 0.40 seconds
>>> weewx[86199] INFO weewx.reportengine: Copied 5 files to 
>>> /Users/rycweather/www/seasons
>>> weewx[86199] INFO weewx.cheetahgenerator: Generated 6 files for report 
>>> SmartphoneReport in 0.09 seconds
>>> weewx[86199] INFO weewx.imagegenerator: Generated 6 images for report 
>>> SmartphoneReport in 0.10 seconds
>>> weewx[86199] INFO weewx.reportengine: Copied 6 files to 
>>> /Users/rycweather/www/smartphone
>>> weewx[86199] ERROR weewx.reportengine: Caught unrecoverable exception in 
>>> generator 'user.stackedwindrose.StackedWindRoseImageGenerator'
>>> weewx[86199] ERROR weewx.reportengine:         ****  '>' not supported 
>>> between instances of 'NoneType' and 'float'
>>> weewx[86199] ERROR weewx.reportengine:         ****  Traceback (most 
>>> recent call last):
>>>
>>> weewx[86199] ERROR weewx.reportengine:         ****    File 
>>> "/Users/rycweather/weewx/bin/weewx/reportengine.py", line 197, in run
>>>
>>> weewx[86199] ERROR weewx.reportengine:         ****      obj.start()
>>>
>>> weewx[86199] ERROR weewx.reportengine:         ****    File 
>>> "/Users/rycweather/weewx/bin/weewx/reportengine.py", line 280, in start
>>>
>>> weewx[86199] ERROR weewx.reportengine:         ****      self.run()
>>>
>>> weewx[86199] ERROR weewx.reportengine:         ****    File 
>>> "/Users/rycweather/weewx/bin/user/stackedwindrose.py", line 226, in run
>>>
>>> weewx[86199] ERROR weewx.reportengine:         ****      
>>> self.gen_images(self.gen_ts)
>>>
>>> weewx[86199] ERROR weewx.reportengine:         ****    File 
>>> "/Users/rycweather/weewx/bin/user/stackedwindrose.py", line 336, in 
>>> gen_images
>>>
>>> weewx[86199] ERROR weewx.reportengine:         ****      _max_speed = 
>>> max(speed_data.value)
>>>
>>> weewx[86199] ERROR weewx.reportengine:         ****  TypeError: '>' not 
>>> supported between instances of 'NoneType' and 'float'
>>>
>>> weewx[86199] ERROR weewx.reportengine:         ****  Generator terminated
>>>
>>>
>>> On Friday, June 5, 2020 at 11:45:58 PM UTC-7, gjr80 wrote:
>>>>
>>>> My apologies for the delays, a few issues merging the stacked windrose 
>>>> code from WeeWX-WD and weewx-stackedwindrose. Should be taken care of now 
>>>> and weewx-stackedwidrose will run under WeeWX 3.2+ or 4.x with python 2.7 
>>>> or 3.x. The release can be found here 
>>>> <https://github.com/gjr80/weewx-stackedwindrose/releases>.
>>>>
>>>> I should point out there are a couple of manual edits/actions you will 
>>>> need to take if upgrading from v2.1.1 or earlier. These are covered in the 
>>>> Upgrading Instructions in the readme.
>>>>
>>>> As usual if any issues please let me know.
>>>>
>>>> Gary
>>>>
>>>> On Saturday, 6 June 2020 01:42:04 UTC+10, Darth Weber wrote:
>>>>>
>>>>> Dear Gary, love your windrose - but have same issue with my new weewx 
>>>>> 4 - is there any solution for that error ?
>>>>>
>>>>> Am Dienstag, 5. Mai 2020 05:16:06 UTC+2 schrieb gjr80:
>>>>>>
>>>>>> Yes I will post here when released.
>>>>>>
>>>>>> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/59097831-4abe-474a-8cce-c62f7ea58b04o%40googlegroups.com.

Reply via email to