Weewx belchertown graph

102 views
Skip to first unread message

Raph A

unread,
May 12, 2020, 10:29:45 AM5/12/20
to weewx-user
Hi

I search to do a graph with 2 serie line :

- temperature = this year
- temperature = last year


I don't find how i can do this with Belchertown

Do you have an idea ?

King regards ! :)

Pat

unread,
May 29, 2020, 3:28:50 PM5/29/20
to weewx-user
Currently this isn't possible to do. Sorry!

John Smith

unread,
May 29, 2020, 11:46:16 PM5/29/20
to weewx-user


On Wednesday, 13 May 2020 00:29:45 UTC+10, Raph A wrote:
Hi

I search to do a graph with 2 serie line :

- temperature = this year
- temperature = last year



If you are willing to get your hands dirty I came up with code to do this:


You just stick that in /usr/share/weewx/user/ assuming you installed from a deb file

In my case I'm using a modified Standard skin I put user.imagegenerator.ImageGenerator to replace the weewx standard ImageGenerator

From there you just do the following,

    [[LastYear_images]]
        x_label_format = %d/%m
        bottom_label_format = %x %X
        time_length = 31536000
        aggregate_type = avg
        aggregate_interval = 86400
        show_daynight = false
        previous_year = -1

        [[[lastyearbarometer]]]
            [[[[barometer]]]]

        [[[lastyeartempdew]]]
            [[[[outTemp]]]]
            [[[[dewpoint]]]]

        [[[lastyearhumidity]]]
            [[[[outHumidity]]]]

        # Daily high/lows:
        [[[lastyearhilow]]]
            [[[[hi]]]]
                data_type = outTemp
                aggregate_type = max
                label = High
            [[[[low]]]]
                data_type = outTemp
                aggregate_type = min
                label = Low Temperature

        [[[lastyearwind]]]
            [[[[windSpeed]]]]
            [[[[windGust]]]]
                aggregate_type = max

        [[[lastyeartempchill]]]
            [[[[windchill]]]]
            [[[[heatindex]]]]

        [[[lastyearrain]]]
            yscale = None, None, 0.02
            plot_type = bar
            [[[[rain]]]]
                aggregate_type = sum
                aggregate_interval = 604800
                label = Rain (weekly total)

        [[[lastyearwinddir]]]
            yscale = 0.0, 360.0, 45.0
            [[[[windDir]]]]

        [[[lastyearradiation]]]
            aggregate_type = max
            [[[[radiation]]]]

        [[[lastyearuv]]]
            yscale = 0, 16, 1
            aggregate_type = max
            [[[[UV]]]]

Reply all
Reply to author
Forward
0 new messages