Belchertown: chart ignores unit parameter

84 views
Skip to first unread message

Matthias Manhart

unread,
Dec 5, 2022, 6:42:43 AM12/5/22
to weewx-user
I store energy data from my PV and smartmeter in [wh] in the database of weewx (one value just before midnight). Now i tried to generate a chart in my Belchertown skin over all years in kWh:

[etotal]
    title = "Gesamter Zeitraum"
    show_button = true
    button_text = "Gesamt"
    time_length = all
    tooltip_date_format = "LLLL"
    gapsize = 31536000000               # 1 Jahr in [ms]
    yAxis_label = "Energie"
    start_at_midnight = true
    start_at_beginning_of_month = true
    xAxis_groupby = year

    [[energy_plt]]
        title = "Energie"
        [[[pv_day_wh]]]
            name = PV
            color = "#ffc83f"
            type = column
            unit = kilowatt_hour
        [[[netzbezug_day]]]
            name = Netzbezug
            color = red
            unit = kilowatt_hour
            [[[[marker]]]]
                enabled = true
                radius = 4
        [[[netzlieferung_day]]]
            name = Einspeisung
            color = green
            unit = kilowatt_hour
            [[[[marker]]]]
                enabled = true
                radius = 4
        [[[eigenverbrauch_day]]]
            name = Verbrauch
            color = blue
            unit = kilowatt_hour
            [[[[marker]]]]
                enabled = true
                radius = 4


The chart shows the values in [wh] and not in [kWh]. Any idea how to fix this ?

WeeWX-Version: 4.9.1
Belchertown: 1.3 (last version from github)

Regards Matthias

p1.JPG

Matthias Manhart

unread,
Dec 6, 2022, 2:50:10 PM12/6/22
to weewx-user
There is an open issue about this problem: https://github.com/roe-dl/weewx-belchertown/commit/

I modified my data into [kwh] before sending them into the weewx and now the charts are ok.

Regards Matthias


Reply all
Reply to author
Forward
0 new messages