Sunshine Hours convert in hours

64 views
Skip to first unread message

Meteo Oberwallis

unread,
Jan 1, 2021, 7:58:14 AM1/1/21
to weewx-user
Hi Guys. I'm just adjusting my climate values. Now I wanted to display the hours of sunshine there as well. But since these are required in minutes, this is beyond the scope of the graphic. Couldn't the value of the sunshine duration be mathematically converted to hours and then displayed in the graphic? Or is there another option? thank you for your Help.

My Code:

    [[Klima2020]]
        title = "Jahr 2020"
    type = spline
    time_length = year_specific
    year_specific = 2020
    aggregate_type = max
    aggregate_interval = 86400 # 1 day
    gapsize = 86400000
    xaxis_groupby = month
        xaxis_categories = 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'
        [[[outTemp]]]
            zIndex = 2
            name = Max Temperatur
            color = "#fc0404"
            [[[[marker]]]]
                enabled = true
                radius = 4
        [[[outTemp_min]]]
            name = Min Temperatur
            observation_type = outTemp
            aggregate_type = min
            zIndex = 2
            color = "#173c6a"
            [[[[marker]]]]
                enabled = true
                radius = 4
        [[[rainTotal]]]
            name = Total Regen
            type = column
            yAxis = 1
            zIndex = 0
            color = "#438bd6"
        [[[sunshine_hours]]]
            type = column
            yAxis = 1
            zIndex = 0
            aggregate_type = sum
            color = "#e4d354"
            name = Sunshine Hours

Unbenannt.PNG

Manfred Maier

unread,
Jan 1, 2021, 2:31:24 PM1/1/21
to weewx-user
Please try:
observation_type = sunshine_hours / 60

This at least works for me.

Best regards,
Manfred

Reply all
Reply to author
Forward
0 new messages