Tom,

Currently running weewx 4.0.0b17 and analysing the memory leak in my pi31 
system.
On the system runs two weewx instances (mben and tfrc) and a 5-minute 
webcam cronjob.

The memory leak of my webcam cronjob task was caused by creating variables 
like:
WEBCAM_ID=3
CAMERA=picamera$WEBCAM_ID
DATETIME=$(date +"%Y-%m-%d %H:%M:%S")
EPOCH=$(date +"%s")
...

The used memory is freed by:
unset WEBCAM_ID
unset CAMERA
unset DATETIME
unset EPOCH
...


The memory leak of the weewx instances mben and tfrc are caused by the 
weewx reporting tasks, see data below:

-----
used  time
 mem
----- -----
73348 10:30
95504 11:07
48576 11:38 no webcam, no mben, no tfrc (no increase of memory)
56136 11:41 mben without modbus read and modbus service
57384 11:43
57876 11:44
58360 11:45
64836 11:47 used memory increased with 6476 due to mben31 report
64572 11:48
64560 11:49
64548 11:50
66240 11:51 used memory increased with 1692 due to mben31 report
55808 11:53 mben without mben31 report
56092 11:54
55828 11:55
55808 11:56
56000 11:57
56000 11:58
56516 11:59
56772 12:00
56164 12:02 mben now with modbus service (fully functional; without 
reporting)
56436 12:03
55920 12:04
76056 12:09 mben without mben31 report; tfrc started without tfrc31 report
76388 12:10
77084 12:11
77248 12:12
77432 12:13
77312 12:14
76908 12:15
76976 12:16
77268 12:21
77248 12:24 hardly any increase of used memory the last 15 minutes
-----

When all reports are disabled, the memory leak on my system is practically 
zero.

Attached the skin settings of mben31.

Any clue how reduce this memory leak?

Luc

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" 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-development/d91724fe-da46-4b4e-9913-59f55aa91657%40googlegroups.com.
##############################################################################
#                                                                            #
#                                                                            #
# SKIN CONFIGURATION FILE FOR ENEGY MONITOR                                  #
#                                                                            #
#                                                                            #
##############################################################################
#                                                                            #
# Copyright (c) 2019 Luc Heijst <[email protected]>                       #
#                                                                            #
# See the file LICENSE.txt for your full rights.                             #
#                                                                            #
##############################################################################
#
#    $Revision: 1 $
#    $Author: lheijst $
#    $Date: 2019-101-30  $
#
###############################################################################

[Extras]
    version = 0.2
    # light background
    BG_COLOR = '#ffffff'
    FG_COLOR = '#000000'
    LINK_COLOR = '#207070'
    HOVER_COLOR = '#30a0a0'
    HOVER_BG_COLOR = '#ffffff'
    VISITED_COLOR = '#207070'
    LARGE_COLOR = '#207070'
    HEATINDEX_COLOR = '#aa4444'
    WINDCHILL_COLOR = '#4444aa'

[Units]
    [[Groups]]
        # For each group of measurements, this section sets what units to
        # use for it.
        # NB: The unit is always in the singular. I.e., 'mile_per_hour',
        # NOT 'miles_per_hour'
        group_volt                = volt
        group_amp                 = amp
        group_power               = watt
        group_reactivepower       = var
        group_apparentpower       = va
        group_frequency           = hertz
        group_kiloenergy          = kilo_watt_hour
        group_kiloreactiveenergy  = kilo_var_hour
        group_percent             = percent
        # The following are used internally and should not be changed:
        group_count               = count
        group_interval            = minute
        group_time                = unix_epoch
        group_elapsed             = second

    [[StringFormats]]
                U1 = %.1f
                U2 = %.1f
                U3 = %.1f
                I1 = %.1f
                I2 = %.1f
                I3 = %.1f
                P1 = %.1f
                P2 = %.1f
                P3 = %.1f
                S1 = %.1f
                S2 = %.1f
                S3 = %.1f
                Q1 = %.1f
                Q2 = %.1f
                Q3 = %.1f
                PF1 = %.1f
                PF2 = %.1f
                PF3 = %.1f
                cosQ1 = %.1f
                cosQ2 = %.1f
                cosQ3 = %.1f
                UlnAvg = %.1f
                IAvg = %.1f
                ITot = %.1f
                PTot = %.1f
                STot = %.1f
                QTot = %.1f
                PFTot = %.1f
                cosQTot = %.1f
                Fr = %.1f
                ImpWhSub = %.1f
                ExpWhSub = %.1f
                ImpVArhSub = %.1f
                ExpVArhSub = %.1f
                VAhSub = %.1f
                AhSub = %.1f
                PTotDem = %.1f
                PMaxDem = %.1f
                QTotDem = %.1f
                QMaxDem = %.1f
                InCurDem = %.1f
                IMaxDem = %.1f
                U12 = %.1f
                U23 = %.1f
                U31 = %.1f
                UlAvg = %.1f
                Id = %.1f
                U1Thd = %.1f
                U2Thd = %.1f
                U3Thd = %.1f
                I1Thd = %.1f
                I2Thd = %.1f
                I3Thd = %.1f
                UlnAvgThd = %.1f
                IAvgThd = %.1f
                _PFTot_ = %.1f
                I1CurDem = %.1f
                I2CurDem = %.1f
                I3CurDem = %.1f
                I1CurDemMax = %.1f
                I2CurDemMax = %.1f
                I3CurDemMax = %.1f
                U12Thd = %.1f
                U23Thd = %.1f
                U31Thd = %.1f
                UllAvgThd = %.1f
                ETot = %.1f
                EqTot = %.1f
                ImpE1 = %.1f
                ImpE2 = %.1f
                ImpE3 = %.1f
                ExpE1 = %.1f
                ExpE2 = %.1f
                ExpE3 = %.1f
                E1Tot = %.1f
                E2Tot = %.1f
                E3Tot = %.1f
                ImpEq1 = %.1f
                ImpEq2 = %.1f
                ImpEq3 = %.1f
                ExpEq1 = %.1f
                ExpEq2 = %.1f
                ExpEq3 = %.1f
                Eq1Tot = %.1f
                Eq2Tot = %.1f
                Eq3Tot = %.1f
                DemTime = %.1f
                DemPer = %.1f
                VLL = %.1f
        None = " N/A"
    [[Labels]]
        volt                = " V"
        amp                 = " A"
        watt                = " W"
        reactivepower       = " var"
        apparentpower       = " VA"
        frequency           = " Hz"
        kiloenergy          = " kWh"
        kiloreactiveenergy  = " kvarh"
        None                = ""
    [[TimeFormats]]
        day         = %H:%M
        week        = %H:%M on %A
        month       = %d-%b-%Y %H:%M
        year        = %d-%b-%Y %H:%M
        current     = %d-%b-%Y %H:%M
    [[Trend]]
        time_delta    = 10800 # 3 hours
        time_grace    = 300   # 5 minutes 
        
###############################################################################

[Labels]
    # Labels used in this skin
    # Formats to be used for latitude whole degrees, longitude whole degrees, 
and minutes:
    latlon_formats    = "%02d", "%03d", "%05.2f"
    [[Generic]]
        # Generic labels, keyed by an observation type.
        U1                              = 3-phase voltage U1
        U2                              = U2
        U3                              = U3
        I1                              = 3-phase current I1
        I2                              = I2
        I3                              = I3
        P1                              = Active power P1
        P2                              = P2
        P3                              = P3
        S1                              = Apparant power S1
        S2                              = S2
        S3                              = S3
        Q1                              = Reactive power Q1
        Q2                              = Q2
        Q3                              = Q3
        PF1                             = PF1
        PF2                             = PF2
        PF3                             = PF3
        cosQ1                   = Cosinus phi 1
        cosQ2                   = cosQ2
        cosQ3                   = cosQ3
        UlnAvg                  = UlnAvg
        IAvg                    = IAvg
        ITot                    = ITot
        PTot                    = PTot
        STot                    = STot
        QTot                    = QTot
        PFTot                   = PFTot
        cosQTot                 = cosQTot
        Fr                              = Frequency
        ImpWhSub                = ImpWhSub
        ExpWhSub                = ExpWhSub
        ImpVArhSub              = ImpVArhSub
        ExpVArhSub              = ExpVArhSub
        VAhSub                  = VAhSub
        AhSub                   = AhSub
        PTotDem                 = PTotDem
        PMaxDem                 = PMaxDem
        QTotDem                 = QTotDem
        QMaxDem                 = QMaxDem
        InCurDem                = InCurDem
        IMaxDem                 = IMaxDem
        U12                             = U12
        U23                             = U23
        U31                             = U31
        UlAvg                   = UlAvg
        Id                              = Id
        U1Thd                   = U1Thd
        U2Thd                   = U2Thd
        U3Thd                   = U3Thd
        I1Thd                   = I1Thd
        I2Thd                   = I2Thd
        I3Thd                   = I3Thd
        UlnAvgThd               = UlnAvgThd
        IAvgThd                 = IAvgThd
        _PFTot_                 = _PFTot_
        I1CurDem                = I1CurDem
        I2CurDem                = I2CurDem
        I3CurDem                = I3CurDem
        I1CurDemMax             = I1CurDemMax
        I2CurDemMax             = I2CurDemMax
        I3CurDemMax             = I3CurDemMax
        U12Thd                  = U12Thd
        U23Thd                  = U23Thd
        U31Thd                  = U31Thd
        UllAvgThd               = UllAvgThd
        ETot                    = ETot
        EqTot                   = EqTot
        ImpE1                   = ImpE1
        ImpE2                   = ImpE2
        ImpE3                   = ImpE3
        ExpE1                   = ExpE1
        ExpE2                   = ExpE2
        ExpE3                   = ExpE3
        E1Tot                   = E1Tot
        E2Tot                   = E2Tot
        E3Tot                   = E3Tot
        ImpEq1                  = ImpEq1
        ImpEq2                  = ImpEq2
        ImpEq3                  = ImpEq3
        ExpEq1                  = ExpEq1
        ExpEq2                  = ExpEq2
        ExpEq3                  = ExpEq3
        Eq1Tot                  = Eq1Tot
        Eq2Tot                  = Eq2Tot
        Eq3Tot                  = Eq3Tot
        DemTime                 = DemTime
        DemPer                  = DemPer
        VLL                             = VLL
        SysType                 = SysType
        RelPuls                 = RelPuls
        PwLock                  = PwLock
        Parity                  = Parity
        NodeAddr                = NodeAddr
        PulsDiv                 = PulsDiv
        Passwd                  = Passwd
        Baud                    = Baud
        kMPrefix                = kMPrefix
        PTotSys                 = PTotSys
        RegOrder                = RegOrder
        Serial1                 = Serial1
        Serial2                 = Serial2
        Rel1PI                  = Rel1PI
        Rel2PI                  = Rel2PI
        ResetDat                = ResetDat

        DIV1            = P1
        DIV2            = P2
        DIV3            = P3
        DV12            = P12
        DV13            = P13
        DV23            = P23

###############################################################################

[ImageGenerator] 
    image_background_color  = 0xffffff
    chart_background_color  = 0xffffff
    chart_gridline_color    = 0xe0e0e0
    top_label_font_path     = /home/weewx/bin/user/myfiles/fonts/Ubuntu-L.ttf
    top_label_font_size     = 13
    unit_label_font_path    = /home/weewx/bin/user/myfiles/fonts/Ubuntu-M.ttf
    unit_label_font_size    = 13
    unit_label_font_color   = 0xaaaaaa
    bottom_label_font_path  = /home/weewx/bin/user/myfiles/fonts/Ubuntu-L.ttf
    bottom_label_font_size  = 13
    bottom_label_font_color = 0xaaaaaa
    axis_label_font_path    = /home/weewx/bin/user/myfiles/fonts/Ubuntu-R.ttf 
    axis_label_font_size    = 12
    axis_label_font_color   = 0x999999
    rose_label              = N
    rose_label_font_path    = /home/weewx/bin/user/myfiles/fonts/Ubuntu-R.ttf
    rose_label_font_size    = 8
    rose_label_font_color   = 0x888888
    rose_color              = 0x999999
    chart_line_colors       = 0xdf4343, 0x30a030, 0x4242b4, 0xcc00ff, 0x3d3d3d, 
0xc943b6  
    line_type               = solid    # solid or None
    marker_type             = None     # cross, x, circle, box, or None
    marker_size             = 2
    plot_type               = line     # line, bar, or vector
    aggregate_type          = None     # avg, sum, max, min, count, last, and 
cumulative
    line_gap_fraction       = 0.001
    bar_gap_fraction        = 0.5
    width                   = 1
    time_length             = 86400    #    == 24 hours
    ###label                = ' '
    chart_fill_colors       = 0xe69f9f, 0xeaf5ea, 0xf9acac, 0xcc00ff, 0x3d3d3d 
    yscale                  = None, None, None
    vector_rotate           = 90
    show_daynight           = true
    daynight_day_color      = 0xffffff
    daynight_night_color    = 0xf8f8f8
    daynight_edge_color     = 0xf0f0f0


    [[2h_images_a]]
        time_length         = 7200    #    == 2 hours
        line_gap_fraction   = 0.09 # 0.08333 #    = 600/7200
        image_width         = 500
        image_height        = 220
        x_label_format      = %H:%M
        bottom_label_format = %d-%m-%Y %H:%M
        show_daynight       = true
        data_binding        = mbendevices31_binding
        plot_type           = line
        line_type           = None
        marker_type         = circle
        marker_size         = 4

        [[[2hfase123]]]
            [[[[DIV0]]]]
                plot_type           = line  # line, bar, or vector
                line_type           = None  # solid or None
                marker_type         = x     # cross, x, circle, box, or None
                marker_size         = 4
            [[[[P1]]]]
                marker_type         = box     # cross, x, circle, box, or None
                marker_size         = 2
            [[[[P2]]]]
                marker_type         = box     # cross, x, circle, box, or None
                marker_size         = 2
            [[[[P3]]]]
                marker_type         = box     # cross, x, circle, box, or None
                marker_size         = 2

        [[[2hfase1a]]]
            [[[[DIV1]]]]  # fase 1
                marker_type         = x     # cross, x, circle, box, or None
            [[[[KOEL]]]]  # fase 1
            [[[[HYDR]]]]  # fase 1
            [[[[TVKA]]]]  # fase 1
            [[[[PRT1]]]]  # fase 1
            [[[[PRT2]]]]  # fase 1

        [[[2hfase2a]]]
            [[[[DIV2]]]]  # fase 2
                marker_type         = x     # cross, x, circle, box, or None
            [[[[LMP1]]]]  # fase 2
            [[[[VRIE]]]]  # fase 2

        [[[2hfase3a]]]
            [[[[DIV3]]]]  # fase 3
                marker_type         = x     # cross, x, circle, box, or None
            [[[[KEU1]]]]  # fase 3
            [[[[KEU2]]]]  # fase 3
            [[[[TOST]]]]  # fase 3
            [[[[KOO3]]]]  # fase 3

        [[[2hfase12a]]]
            [[[[DV12]]]]  # fase 12
                marker_type         = x     # cross, x, circle, box, or None
            [[[[WASM]]]]  # fase 12
                marker_size         = 2
            [[[[STOF]]]]  # fase 12

        [[[2hfase12b]]]
            [[[[DV12]]]]  # fase 12
                marker_type         = x     # cross, x, circle, box, or None
            [[[[HDR1]]]]  # fase 12
            [[[[HDR2]]]]  # fase 12


        [[[2hfase13a]]]
            [[[[DV13]]]]  # fase 13
                marker_type         = x     # cross, x, circle, box, or None
            [[[[BOIL]]]]  # fase 13
            [[[[MAGN]]]]  # fase 13
            [[[[WAKO]]]]  # fase 13
            [[[[ACS1]]]]  # fase 13

        [[[2hfase13b]]]
            [[[[DV13]]]]  # fase 13
                marker_type         = x     # cross, x, circle, box, or None
            [[[[MELK]]]]  # fase 13
            [[[[NESP]]]]  # fase 13
            [[[[KEU3]]]]  # fase 13
            [[[[KEU4]]]]  # fase 13


        [[[2hfase23a]]]
            marker_size         = 2
            [[[[DV23]]]]  # fase 23
                marker_type         = x     # cross, x, circle, box, or None
            [[[[QBAK]]]]  # fase 23
            [[[[KO1K]]]]  # fase 23
            [[[[KO1G]]]]  # fase 23
            [[[[KO5G]]]]  # fase 23

        [[[2hfase23b]]]
            marker_size         = 2
            [[[[DV23]]]]  # fase 23
                marker_type         = x     # cross, x, circle, box, or None
            [[[[VAAT]]]]  # fase 23
            [[[[KOO2]]]]  # fase 23
            [[[[KOO4]]]]  # fase 23
            [[[[KO5K]]]]  # fase 23


    [[2h_images_b]]
        time_length         = 7200    #    == 2 hours
        line_gap_fraction   = 0.08333 #    = 600/7200
        image_width         = 500
        image_height        = 220
        x_label_format      = %H:%M
        bottom_label_format = %d-%m-%Y %H:%M
        show_daynight       = true
        data_binding        = mben31_binding

        [[[2hvolt1]]]
            yscale    = 128, 136, 2
            [[[[U1]]]]
            [[[[U2]]]]
            [[[[U3]]]]
            [[[[UlnAvg]]]]

        [[[2hvolt2]]]
            yscale    = 222, 232, 2
            [[[[U12]]]]
            [[[[U23]]]]
            [[[[U31]]]]

        [[[2hamp1]]]
            image_width         = 500
            image_height        = 500
            yscale              = 12.0, 28.0, 0.4
            [[[[I1]]]]
            [[[[I2]]]]
            [[[[I3]]]]

        [[[2hppower1]]]
            image_width         = 500
            image_height        = 500
            yscale              = 1350, 3200, 50
            [[[[P1]]]]
            [[[[P2]]]]
            [[[[P3]]]]

        [[[2hamp2]]]
            image_width         = 500
            image_height        = 500
            yscale              = 4.0, 12.0, 0.2
            [[[[I1]]]]
            [[[[I2]]]]
            [[[[I3]]]]

        [[[2hppower2]]]
            image_width         = 500
            image_height        = 500
            yscale              = 450, 1350, 25
            [[[[P1]]]]
            [[[[P2]]]]
            [[[[P3]]]]

        [[[2hamp3]]]
            image_width         = 500
            image_height        = 500
            yscale              = 0.0, 4.0, 0.1
            [[[[I1]]]]
            [[[[I2]]]]
            [[[[I3]]]]

        [[[2hppower3]]]
            image_width         = 500
            image_height        = 500
            yscale              = 0.0, 450, 10
            [[[[P1]]]]
            [[[[P2]]]]
            [[[[P3]]]]

        [[[2hIdem1]]]
            yscale              = 0.0, None, 0.5
            [[[[I1CurDem]]]]
            [[[[I2CurDem]]]]
            [[[[I3CurDem]]]]
            [[[[InCurDem]]]]

        [[[2hPdem1]]]
            [[[[PTotDem]]]]
            [[[[QTotDem]]]]

        [[[2hcosq]]]
            [[[[cosQ1]]]]
            [[[[cosQ2]]]]
            [[[[cosQ3]]]]
            [[[[cosQTot]]]]

        [[[2hspower]]]
            [[[[S1]]]]
            [[[[S2]]]]
            [[[[S3]]]]
            [[[[STot]]]]

        [[[2hPF]]]
            [[[[PF1]]]]
            [[[[PF2]]]]
            [[[[PF3]]]]
            [[[[PFTot]]]]

        [[[2hqpower]]]
            [[[[Q1]]]]
            [[[[Q2]]]]
            [[[[Q3]]]]
            [[[[QTot]]]]

        [[[2hleak]]]
            [[[[Id]]]]
            [[[[IAvg]]]]

        [[[2hfreq]]]
            yscale              = 59.6, 60.4, 0.1
            [[[[Fr]]]]

        [[[2hthd1]]]
            plot_type              = bar
            [[[[I1Thd]]]]
            [[[[I2Thd]]]]
            [[[[I3Thd]]]]
            [[[[U1Thd]]]]
            [[[[U2Thd]]]]
            [[[[U3Thd]]]]

        [[[2hthd2]]]
            plot_type              = bar
            [[[[IAvgThd]]]]
            [[[[UlnAvgThd]]]]
            [[[[U12Thd]]]]
            [[[[U23Thd]]]]
            [[[[U31Thd]]]]

    [[12h_images_a]]
        time_length         = 43200       #    == 12 hours
        line_gap_fraction   = 0.013888889 #    =600/43200
        image_width         = 500
        image_height        = 220
        x_label_format      = %H:%M
        bottom_label_format = %d-%m-%Y %H:%M
        show_daynight       = true
        data_binding        = mbendevices31_binding
        plot_type           = line
        line_type           = None
        marker_type         = circle
        marker_size         = 4

        [[[12hfase123]]]
            [[[[DIV0]]]]
                plot_type           = line  # line, bar, or vector
                line_type           = None  # solid or None
                marker_type         = x     # cross, x, circle, box, or None
                marker_size         = 4
            [[[[P1]]]]
                marker_type         = box     # cross, x, circle, box, or None
                marker_size         = 2
            [[[[P2]]]]
                marker_type         = box     # cross, x, circle, box, or None
                marker_size         = 2
            [[[[P3]]]]
                marker_type         = box     # cross, x, circle, box, or None
                marker_size         = 2

        [[[12hfase1a]]]
            [[[[DIV1]]]]  # fase 1
                marker_type         = x     # cross, x, circle, box, or None
            [[[[KOEL]]]]  # fase 1
            [[[[HYDR]]]]  # fase 1
            [[[[TVKA]]]]  # fase 1
            [[[[PRT1]]]]  # fase 1
            [[[[PRT2]]]]  # fase 1

        [[[12hfase2a]]]
            [[[[DIV2]]]]  # fase 2
                marker_type         = x     # cross, x, circle, box, or None
            [[[[LMP1]]]]  # fase 2
            [[[[VRIE]]]]  # fase 2

        [[[12hfase3a]]]
            [[[[DIV3]]]]  # fase 3
                marker_type         = x     # cross, x, circle, box, or None
            [[[[KEU1]]]]  # fase 3
            [[[[KEU2]]]]  # fase 3
            [[[[TOST]]]]  # fase 3
            [[[[KOO3]]]]  # fase 3

        [[[12hfase12a]]]
            [[[[DV12]]]]  # fase 12
                marker_type         = x     # cross, x, circle, box, or None
            [[[[WASM]]]]  # fase 12
                marker_size         = 2
            [[[[STOF]]]]  # fase 12

        [[[12hfase12b]]]
            [[[[DV12]]]]  # fase 12
                marker_type         = x     # cross, x, circle, box, or None
            [[[[HDR1]]]]  # fase 12
            [[[[HDR2]]]]  # fase 12


        [[[12hfase13a]]]
            [[[[DV13]]]]  # fase 13
                marker_type         = x     # cross, x, circle, box, or None
            [[[[BOIL]]]]  # fase 13
            [[[[MAGN]]]]  # fase 13
            [[[[WAKO]]]]  # fase 13
            [[[[ACS1]]]]  # fase 13

        [[[12hfase13b]]]
            [[[[DV13]]]]  # fase 13
                marker_type         = x     # cross, x, circle, box, or None
            [[[[MELK]]]]  # fase 13
            [[[[NESP]]]]  # fase 13
            [[[[KEU3]]]]  # fase 13
            [[[[KEU4]]]]  # fase 13


        [[[12hfase23a]]]
            marker_size         = 2
            [[[[DV23]]]]  # fase 23
                marker_type         = x     # cross, x, circle, box, or None
            [[[[QBAK]]]]  # fase 23
            [[[[KO1K]]]]  # fase 23
            [[[[KO1G]]]]  # fase 23
            [[[[KO5G]]]]  # fase 23

        [[[12hfase23b]]]
            marker_size         = 2
            [[[[DV23]]]]  # fase 23
                marker_type         = x     # cross, x, circle, box, or None
            [[[[VAAT]]]]  # fase 23
            [[[[KOO2]]]]  # fase 23
            [[[[KOO4]]]]  # fase 23
            [[[[KO5K]]]]  # fase 23

    [[12h_images_b]]
        time_length         = 43200    #    == 12 hours
        line_gap_fraction   = 0.013888889 #    =600/43200
        image_width         = 500
        image_height        = 220
        x_label_format      = %H:%M
        bottom_label_format = %d-%m-%Y %H:%M
        show_daynight       = true
        data_binding        = mben31_binding

        [[[12hvolt1]]]
            yscale    = 128, 136, 2
            [[[[U1]]]]
            [[[[U2]]]]
            [[[[U3]]]]
            [[[[UlnAvg]]]]

        [[[12hvolt2]]]
            yscale    = 222, 232, 2
            [[[[U12]]]]
            [[[[U23]]]]
            [[[[U31]]]]

        [[[12hamp1]]]
            image_width         = 500
            image_height        = 500
            yscale              = 12.0, 28.0, 0.4
            [[[[I1]]]]
            [[[[I2]]]]
            [[[[I3]]]]

        [[[12hppower1]]]
            image_width         = 500
            image_height        = 500
            yscale              = 1350, 3200, 50
            [[[[P1]]]]
            [[[[P2]]]]
            [[[[P3]]]]

        [[[12hamp2]]]
            image_width         = 500
            image_height        = 500
            yscale              = 4.0, 12.0, 0.2
            [[[[I1]]]]
            [[[[I2]]]]
            [[[[I3]]]]

        [[[12hppower2]]]
            image_width         = 500
            image_height        = 500
            yscale              = 450, 1350, 25
            [[[[P1]]]]
            [[[[P2]]]]
            [[[[P3]]]]

        [[[12hamp3]]]
            image_width         = 500
            image_height        = 500
            yscale              = 0.0, 4.0, 0.1
            [[[[I1]]]]
            [[[[I2]]]]
            [[[[I3]]]]

        [[[12hppower3]]]
            image_width         = 500
            image_height        = 500
            yscale              = 0.0, 450, 10
            [[[[P1]]]]
            [[[[P2]]]]
            [[[[P3]]]]

        [[[12hIdem1]]]
            yscale              = 0.0, None, 0.5
            [[[[I1CurDem]]]]
            [[[[I2CurDem]]]]
            [[[[I3CurDem]]]]
            [[[[InCurDem]]]]

        [[[12hPdem1]]]
            [[[[PTotDem]]]]
            [[[[QTotDem]]]]

        [[[12hcosq]]]
            [[[[cosQ1]]]]
            [[[[cosQ2]]]]
            [[[[cosQ3]]]]
            [[[[cosQTot]]]]

        [[[12hspower]]]
            [[[[S1]]]]
            [[[[S2]]]]
            [[[[S3]]]]
            [[[[STot]]]]

        [[[12hPF]]]
            [[[[PF1]]]]
            [[[[PF2]]]]
            [[[[PF3]]]]
            [[[[PFTot]]]]

        [[[12hqpower]]]
            [[[[Q1]]]]
            [[[[Q2]]]]
            [[[[Q3]]]]
            [[[[QTot]]]]

        [[[12hleak]]]
            [[[[Id]]]]
            [[[[IAvg]]]]

        [[[12hfreq]]]
            yscale              = 59.6, 60.4, 0.1
            [[[[Fr]]]]

        [[[12hthd1]]]
            plot_type              = bar
            [[[[I1Thd]]]]
            [[[[I2Thd]]]]
            [[[[I3Thd]]]]
            [[[[U1Thd]]]]
            [[[[U2Thd]]]]
            [[[[U3Thd]]]]

        [[[12hthd2]]]
            plot_type              = bar
            [[[[IAvgThd]]]]
            [[[[UlnAvgThd]]]]
            [[[[U12Thd]]]]
            [[[[U23Thd]]]]
            [[[[U31Thd]]]]


    [[24h_images_a]]
        time_length         = 86400       #    == 24 hours
        line_gap_fraction   = 0.006944444 #    =600/86400
        image_width         = 500
        image_height        = 220
        x_label_format      = %H:%M
        bottom_label_format = %d-%m-%Y %H:%M
        show_daynight       = true
        data_binding        = mbendevices31_binding
        plot_type           = line
        line_type           = None
        marker_type         = circle
        marker_size         = 4

        [[[24hfase123]]]
            [[[[DIV0]]]]
                plot_type           = line  # line, bar, or vector
                line_type           = None  # solid or None
                marker_type         = x     # cross, x, circle, box, or None
                marker_size         = 4
            [[[[P1]]]]
                marker_type         = circle     # cross, x, circle, box, or 
None
                marker_size         = 2
            [[[[P2]]]]
                marker_type         = circle     # cross, x, circle, box, or 
None
                marker_size         = 2
            [[[[P3]]]]
                marker_type         = circle     # cross, x, circle, box, or 
None
                marker_size         = 2

        [[[24hfase1a]]]
            [[[[DIV1]]]]  # fase 1
                marker_type         = x     # cross, x, circle, box, or None
            [[[[KOEL]]]]  # fase 1
            [[[[HYDR]]]]  # fase 1
            [[[[TVKA]]]]  # fase 1
            [[[[PRT1]]]]  # fase 1
            [[[[PRT2]]]]  # fase 1

        [[[24hfase2a]]]
            [[[[DIV2]]]]  # fase 2
                marker_type         = x     # cross, x, circle, box, or None
            [[[[LMP1]]]]  # fase 2
            [[[[VRIE]]]]  # fase 2

        [[[24hfase3a]]]
            [[[[DIV3]]]]  # fase 3
                marker_type         = x     # cross, x, circle, box, or None
            [[[[KEU1]]]]  # fase 3
            [[[[KEU2]]]]  # fase 3
            [[[[TOST]]]]  # fase 3
            [[[[KOO3]]]]  # fase 3

        [[[24hfase12a]]]
            [[[[DV12]]]]  # fase 12
                marker_type         = x     # cross, x, circle, box, or None
            [[[[WASM]]]]  # fase 12
                marker_size         = 2
            [[[[STOF]]]]  # fase 12

        [[[24hfase12b]]]
            [[[[DV12]]]]  # fase 12
                marker_type         = x     # cross, x, circle, box, or None
            [[[[HDR1]]]]  # fase 12
            [[[[HDR2]]]]  # fase 12


        [[[24hfase13a]]]
            [[[[DV13]]]]  # fase 13
                marker_type         = x     # cross, x, circle, box, or None
            [[[[BOIL]]]]  # fase 13
            [[[[MAGN]]]]  # fase 13
            [[[[WAKO]]]]  # fase 13
            [[[[ACS1]]]]  # fase 13

        [[[24hfase13b]]]
            [[[[DV13]]]]  # fase 13
                marker_type         = x     # cross, x, circle, box, or None
            [[[[MELK]]]]  # fase 13
            [[[[NESP]]]]  # fase 13
            [[[[KEU3]]]]  # fase 13
            [[[[KEU4]]]]  # fase 13


        [[[24hfase23a]]]
            marker_size         = 2
            [[[[DV23]]]]  # fase 23
                marker_type         = x     # cross, x, circle, box, or None
            [[[[QBAK]]]]  # fase 23
            [[[[KO1K]]]]  # fase 23
            [[[[KO1G]]]]  # fase 23
            [[[[KO5G]]]]  # fase 23

        [[[24hfase23b]]]
            marker_size         = 2
            [[[[DV23]]]]  # fase 23
                marker_type         = x     # cross, x, circle, box, or None
            [[[[VAAT]]]]  # fase 23
            [[[[KOO2]]]]  # fase 23
            [[[[KOO4]]]]  # fase 23
            [[[[KO5K]]]]  # fase 23

    [[24h_images_b]]
        time_length         = 86400       #    == 24 hours
        line_gap_fraction   = 0.006944444 #    =600/86400
        image_width         = 500
        image_height        = 220
        x_label_format      = %H:%M
        bottom_label_format = %d-%m-%Y %H:%M
        show_daynight       = true
        data_binding        = mben31_binding

        [[[24hvolt1]]]
            yscale    = 128, 136, 2
            [[[[U1]]]]
            [[[[U2]]]]
            [[[[U3]]]]
            [[[[UlnAvg]]]]

        [[[24hvolt2]]]
            yscale    = 222, 232, 2
            [[[[U12]]]]
            [[[[U23]]]]
            [[[[U31]]]]

        [[[24hamp1]]]
            image_width         = 500
            image_height        = 500
            yscale              = 12.0, 28.0, 0.4
            [[[[I1]]]]
            [[[[I2]]]]
            [[[[I3]]]]

        [[[24hppower1]]]
            image_width         = 500
            image_height        = 500
            yscale              = 1350, 3200, 50
            [[[[P1]]]]
            [[[[P2]]]]
            [[[[P3]]]]

        [[[24hamp2]]]
            image_width         = 500
            image_height        = 500
            yscale              = 4.0, 12.0, 0.2
            [[[[I1]]]]
            [[[[I2]]]]
            [[[[I3]]]]

        [[[24hppower2]]]
            image_width         = 500
            image_height        = 500
            yscale              = 450, 1350, 25
            [[[[P1]]]]
            [[[[P2]]]]
            [[[[P3]]]]

        [[[24hamp3]]]
            image_width         = 500
            image_height        = 500
            yscale              = 0.0, 4.0, 0.1
            [[[[I1]]]]
            [[[[I2]]]]
            [[[[I3]]]]

        [[[24hppower3]]]
            image_width         = 500
            image_height        = 500
            yscale              = 0.0, 450, 10
            [[[[P1]]]]
            [[[[P2]]]]
            [[[[P3]]]]

        [[[24hIdem1]]]
            yscale              = 0.0, None, 0.5
            [[[[I1CurDem]]]]
            [[[[I2CurDem]]]]
            [[[[I3CurDem]]]]
            [[[[InCurDem]]]]

        [[[24hPdem1]]]
            [[[[PTotDem]]]]
            [[[[QTotDem]]]]

        [[[24hcosq]]]
            [[[[cosQ1]]]]
            [[[[cosQ2]]]]
            [[[[cosQ3]]]]
            [[[[cosQTot]]]]

        [[[24hspower]]]
            [[[[S1]]]]
            [[[[S2]]]]
            [[[[S3]]]]
            [[[[STot]]]]

        [[[24hPF]]]
            [[[[PF1]]]]
            [[[[PF2]]]]
            [[[[PF3]]]]
            [[[[PFTot]]]]

        [[[24hqpower]]]
            [[[[Q1]]]]
            [[[[Q2]]]]
            [[[[Q3]]]]
            [[[[QTot]]]]

        [[[24hleak]]]
            [[[[Id]]]]
            [[[[IAvg]]]]

        [[[24hfreq]]]
            yscale              = 59.6, 60.4, 0.1
            [[[[Fr]]]]

        [[[24hthd1]]]
            plot_type              = bar
            [[[[I1Thd]]]]
            [[[[I2Thd]]]]
            [[[[I3Thd]]]]
            [[[[U1Thd]]]]
            [[[[U2Thd]]]]
            [[[[U3Thd]]]]

        [[[24hthd2]]]
            plot_type              = bar
            [[[[IAvgThd]]]]
            [[[[UlnAvgThd]]]]
            [[[[U12Thd]]]]
            [[[[U23Thd]]]]
            [[[[U31Thd]]]]


    [[week_images]]
        time_length         = 604800    #    == 7 days
        line_gap_fraction   = 0.005952381 #    =3600/604800
        image_width         = 500
        image_height        = 220
        x_label_format      = %d
        bottom_label_format = %d-%m-%Y %H:%M
        aggregate_type      = avg
        aggregate_interval  = 3600      #    == 1 hour
        show_daynight       = true

        [[[weekpenergy1]]]
            yscale              = None, None, 10
            [[[[ETotEbsBer]]]]

        [[[weekpenergy2]]]
            [[[[ImpE1]]]]
            [[[[ImpE2]]]]
            [[[[ImpE3]]]]

        [[[weekpenergy3]]]
            yscale              = 0, None, None
            [[[[PTot6h]]]]
                plot_type          = bar
                label              = PTot (6h avg)
                data_type          = PTot
                aggregate_type     = avg
                aggregate_interval = 21600      #    == 6h
            [[[[PTotda]]]]
                plot_type          = bar
                label              = PTot (day avg)
                data_type          = PTot
                aggregate_type     = avg
                aggregate_interval = 86400      #    == 1 day

        [[[weekPdem1]]]
            yscale              = 0, None, None
            [[[[PTotDem6h]]]]
                plot_type          = bar
                label              = PTotDem (6h avg)
                data_type          = PTotDem
                aggregate_type     = avg
                aggregate_interval = 21600    #    == 6 hours
            [[[[PTotDem1da]]]]
                plot_type          = bar
                label              = PTotDem (day avg)
                data_type          = PTotDem
                aggregate_type     = avg
                aggregate_interval = 86400      #    == 1 day

    [[month_images]]
        time_length         = 2592000     #    == 30 days
        line_gap_fraction   = 0.033333333 #    =86400/2592000
        image_width         = 500
        image_height        = 220
        x_label_format      = %d
        bottom_label_format = %d-%m-%Y %H:%M
        aggregate_type      = avg
        aggregate_interval  = 86400      #    == 1 day

        [[[monthpenergy1]]]
            ###yscale              = None, None, 10
            [[[[ETotEbsBer]]]]

        [[[monthpenergy2]]]
            aggregate_type     = avg
            aggregate_interval = 86400      #    == 1 day
            [[[[ImpE1]]]]
            [[[[ImpE2]]]]
            [[[[ImpE3]]]]

        [[[monthpenergy3]]]
            yscale              = 0, None, None
            [[[[PTot1d]]]]
                plot_type          = bar
                label              = PTot (day avg)
                data_type          = PTot
                aggregate_type     = avg
                aggregate_interval = 86400    #    == 1 day
            [[[[PTot1w]]]]
                plot_type          = bar
                label              = PTot (week avg)
                data_type          = PTot
                aggregate_type     = avg
                aggregate_interval = 604800    #    == 7 days

        [[[monthPdem1]]]
            yscale              = 0, None, None
            [[[[PTotDem1db]]]]
                plot_type          = bar
                label              = PTotDem (day avg)
                data_type          = PTotDem
                aggregate_type     = avg
                aggregate_interval = 86400      #    == 1 day
            [[[[PTotDem1wa]]]]
                plot_type          = bar
                label              = PTotDem (week avg)
                data_type          = PTotDem
                aggregate_type     = avg
                aggregate_interval = 604800    #    == 7 days

    [[year_images]]
        time_length         = 31622400    #    == 366 days
        line_gap_fraction   = 0.005464481 #    =172800/31622400
        image_width         = 500
        image_height        = 220
        x_label_format      = %b
        bottom_label_format = %d-%m-%Y %H:%M
        aggregate_type      = avg
            aggregate_interval = 172800    #    == 2 days

        [[[yearpenergy1]]]
            ###yscale              = None, None, 10
            [[[[ETotEbsBer]]]]

        [[[yearpenergy2]]]
            [[[[ImpE1]]]]
            [[[[ImpE2]]]]
            [[[[ImpE3]]]]

        [[[yearpenergy3]]]
            yscale              = 0, None, None
            [[[[PTot1w]]]]
                plot_type          = bar
                label              = PTot (week avg)
                data_type          = PTot
                aggregate_type     = avg
                aggregate_interval = 604800    #    == 7 days
            [[[[PTot1m]]]]
                plot_type          = bar
                label              = PTot (month avg)
                data_type          = PTot
                aggregate_type     = avg
                aggregate_interval = 2592000    #    == 30 days

        [[[yearPdem1]]]
            yscale              = 0, None, None
            [[[[PTotDem1wb]]]]
                plot_type          = bar
                label              = PTotDem (week avg)
                data_type          = PTotDem
                aggregate_type     = avg
                aggregate_interval = 604800    #    == 7 days
            [[[[PTotDem1mo]]]]
                plot_type          = bar
                label              = PTotDem (month avg)
                data_type          = PTotDem
                aggregate_type     = avg
                aggregate_interval = 2592000    #    == 30 days


###############################################################################

[CheetahGenerator]
    encoding    = html_entities
    [[ToDate]]
        [[[index]]]
            template    = index.html.tmpl
 
############################################################################### 
      
#
# The list of generators that are to be run:
#
[Generators]
        generator_list    = weewx.cheetahgenerator.CheetahGenerator, 
weewx.imagegenerator.ImageGenerator

Attachment: index.html.tmpl
Description: Binary data

Reply via email to