Add Trend Line to Graph - Belchertown

107 views
Skip to first unread message

Topslakr Topslakr

unread,
Apr 20, 2021, 4:31:28 PM4/20/21
to weewx-user
Hello,

I have been using the excellent Belchertown skin (Thank you Pat!) for my Weewx system and I'd like to know if it's possible to add a trend line, or an average line, to some graphs.

Specifically, I'm looking to add this to my soil temperature graph. I have attempted to do so, but have not yet been successful.

I have added the following to my graphs.conf file:
    [[SoilTemp]]
        title = Soil Temp
        [[[soilTemp1]]]
            name = Soil Temperature
            type = spline
        [[[soilTemp_avg]]]
            name = Soil Temp Average
            observation_type = soilTemp1
            aggregate_type = avg
            average_type = avg
            type = spline
            time_length = week
            aggregate_interval = 86400
            xAxis_groupby = day

The output varies, but it's never right. And, I assume it's calculated each day at midnight? For example, it looks like this today:

SoilTemp.png

What am I missing here? The graph being wrong is one thing, but this partial line just makes no sense to me. :) Can someone shed some light here?

Much appreciated!

p q

unread,
Apr 20, 2021, 4:42:42 PM4/20/21
to weewx...@googlegroups.com
Look up line_gap_fraction in the docs. It might be whats causing the gap. I don't have access right now to point you exactly to it. 

--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/a7490a8e-e2a7-4ed8-a627-b63ff0c1c6acn%40googlegroups.com.

Topslakr Topslakr

unread,
Apr 20, 2021, 4:50:02 PM4/20/21
to weewx-user
Thanks.


I'll see what I can find. Perhaps there is a small gap in data or something preventing it from drawing? Is that what you're thinking?

p q

unread,
Apr 20, 2021, 4:59:30 PM4/20/21
to weewx...@googlegroups.com
Yes. I had an issue with it when adding a rolling ave. The default value was changed in 4.0 I think so it may or may not be what's happening. 

Topslakr Topslakr

unread,
Apr 20, 2021, 6:10:15 PM4/20/21
to weewx-user
I added the line to the belcherton skin.conf file with a value of 1, and a value of 4. I restarted Weewx each time I made the change and allowed a full run... but no change to the graph.
Reply all
Reply to author
Forward
0 new messages