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:

https://github.com/evilbunny2008/weewx/blob/61173c762fd30b33251ec304cbc3864c08c96eee/bin/weewx/imagegenerator.py

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

-- 
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/db657de9-169f-48ae-8010-451c61685eb5%40googlegroups.com.

Reply via email to