Graphing Lightning Strikes/Distance With Belchertown Sking & Ecowitt WH57

338 views
Skip to first unread message

Alan Bryant

unread,
Apr 23, 2021, 3:59:48 PM4/23/21
to weewx-user

Hello Everyone,

I am a very amateur weather enthusiast, so all of this amazing software that you guys have put together is phenomenal. Thank all of you so much for the time that you have put in to these products and the support!

I think that I have everything set up mostly how I want it, except for the Lightning Graph on the main page.

I used the code from a previous thread (https://groups.google.com/g/weewx-user/c/tunBoIOIXtI/m/dBchokefCgAJ) that seems to work, but since the GW1000 driver enters the  lightning_distance into the DB whether there are any new strikes or not, the distance gets graphed constantly.

Is there a way with HighCharts to tell it not to graph the distance unless there is a number of strikes > 0?

Specs:
Weewx: 4.5.1
Belchertown 1.3b1
GW1000 Driver: 0.3.1
Ecowitt GW1000
WH31
WS68
WH57
WH40

Alan Bryant

unread,
Apr 23, 2021, 4:00:38 PM4/23/21
to weewx-user
Forgot to add the graph code so that you guys don't have to go look it up.

            title = Lightning
              [[[lightning_strike_count]]]
                 name = Number of strikes
                 color = "#ffc83f"
              [[[lightning_distance]]]
                  name = Distance to Strike
                  color = "#f7f2b4"
                  y_label = "km"

tarob...@gmail.com

unread,
Apr 24, 2021, 1:57:55 PM4/24/21
to weewx-user
From my understanding, when graphs are being generated they are read from the weewx database (weewx.sdb if SQlite). The issue you are describing sounds like an issue with how the data is stored in the database and not with how Belchertown is graphing. I had similar issue when I first started collecting lightning data using an acurite lightning sensor. See: https://groups.google.com/g/weewx-user/c/xBihBm0jVls/m/J06dlCjlAAAJ for more info. This might help you.

Alan Bryant

unread,
Apr 24, 2021, 4:33:24 PM4/24/21
to weewx-user
Thank you so much for the pointer! I think the portion in the [[Corrections]] is exactly what I needed. Now to wait for some lightning!
Reply all
Reply to author
Forward
0 new messages