How to display pm2.5 & lightning graphs?

531 views
Skip to first unread message

Big OB

unread,
Sep 22, 2020, 5:26:15 AM9/22/20
to weewx-user
I have been using weewx 4.1.1 on a RPi since April using ecowitt-client from a HP2551 with no problems at all, but have recently added a lightning detector (wh57), pm2.5 detector (wh41) and a DP1500 (GW1000) gateway to my set up.

I changed over to using the GW1000 API (installed bywee_extension utility on a weewx package install) which appears to be working fine - data received with no problem, and after searching here managed to get the 'Radiation' graph working, but still have not found any answer on how to get the pm2.5 and lightning graphs showing.

Battery status for wh57 and wh41 show up on weather station screen under sensor status so I assume it must be a simple task to get the graphs showing.

GW1000 'test-driver' shows the following:

2020-09-22 10:22:27 BST (1600766547): UV: 1, dateTime: 1600766547, dayRain: 0.0, daymaxwind: 4.6, inHumidity: 58, inTemp: 21.9, lightning_distance: 1, lightning_last_det_time: 1600584975, lightning_strike_count: None, luminosity: 22630.0, monthRain: 0.7, outHumidity: 87, outTemp: 17.6, pm2_5: 15.0, pm2_51_24hav: 9.7, pressure: 1007.8, rain: None, rainRate: 0.0, relbarometer: 1011.8, stormRain: 0.0, usUnits: 17, uvradiation: 27.9, weekRain: 0.0, wh41_ch1_batt: 6, wh57_batt: 5, wh65_batt: 0, windDir: 258, windGust: 2.0, windSpeed: 1.3, yearRain: 258.9

Any assistance much appreciated - VMT.

Andy

Tim Tuck

unread,
Sep 24, 2020, 1:38:17 AM9/24/20
to weewx...@googlegroups.com

Hi Andy,

I have PM2.5 from my WH41 graphing in my Belchertown skin, you can see that on the bottom left of this page...

http://metoffice.skybase.net/weewx/belchertown

I put

    [[chart7]]
                title = PM 2.5
              [[[pm2_5]]]
                 name = PM 2.5
                 zIndex = 1
                 color = "#ffc83f"
                  y_label = "ug/m3"

in /etc/weewx/skins/Belchertown/graphs.conf

I have a lightning graph too but since there hasn't been any lightning there has been nothing to test the graphing. I've been tempted to build a spark gap and create my own "lightning" to work things out.

I've yet to create the graphs for batteries etc. I'll work on that soon since I 4 soil moisture sensors too.

regards

Tim

Big OB

unread,
Sep 24, 2020, 5:52:09 AM9/24/20
to weewx-user
Hi Tim,

VMT for your information which I will have a play with to see if I can get it working here.

Regards,

Andy

John Burricelli

unread,
Sep 24, 2020, 7:23:10 AM9/24/20
to weewx-user
Hi Tim, 

Would you mind sharing your lightning graph entry?  I have it working on mine, however I could only get a daily strike count working.

Tim Tuck

unread,
Oct 2, 2020, 4:48:59 AM10/2/20
to weewx...@googlegroups.com

Hi John,

I have...

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

Dunno if that works yet. All the storms that have passed by since I put that in have been quiet!

cheers

Tim


On 24/9/20 9:23 pm, John Burricelli wrote:
Hi Tim, 

Would you mind sharing your lightning graph entry?  I have it working on mine, however I could only get a daily strike count working.

On Thursday, September 24, 2020 at 1:38:17 AM UTC-4 ti...@skybase.net wrote:

Hi Andy,

I have PM2.5 from my WH41 graphing in my Belchertown skin, you can see that on the bottom left of this page...

http://metoffice.skybase.net/weewx/belchertown

I put

    [[chart7]]
                title = PM 2.5
              [[[pm2_5]]]
                 name = PM 2.5
                 zIndex = 1
                 color = "#ffc83f"
                  y_label = "ug/m3"

in /etc/weewx/skins/Belchertown/graphs.conf

I have a lightning graph too but since there hasn't been any lightning there has been nothing to test the graphing. I've been tempted to build a spark gap and create my own "lightning" to work things out.

I've yet to create the graphs for batteries etc. I'll work on that soon since I 4 soil moisture sensors too.


--
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/7a068190-7575-48be-b012-f5cb5bba4413n%40googlegroups.com.

Didier Decoodt

unread,
Oct 2, 2020, 5:20:12 AM10/2/20
to weewx...@googlegroups.com
Hi

I am interested in a lightning sensor, which one do you use?

Thank's



--

Tim Tuck

unread,
Oct 2, 2020, 5:28:59 AM10/2/20
to weewx...@googlegroups.com
Hi Didier,

I'm using the Ecowitt WH57

cheers

Tim

Didier Decoodt

unread,
Oct 2, 2020, 5:43:55 AM10/2/20
to weewx...@googlegroups.com
Thank's Tim

--
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.

John Burricelli

unread,
Oct 2, 2020, 6:49:49 AM10/2/20
to weewx-user
Thanks Tim!  It may be a while before I get to test it myself.  Our thunderstorm season is over as well.  

Paul Ward

unread,
Oct 6, 2020, 6:37:31 PM10/6/20
to weewx-user
Hi I'm a bit new to this and have similar setup except like your originally did Andy without a DP1500 (GW1000) gateway just using the HP2551 with weewx-interceptor in ecowitt-client mode. I've got a lightning detector (wh57), pm2.5 detector (wh41) also soil moisture detector. From the syslogs I can see some incomeing values appearsto be read and some not - I'll post separately on that. But how do you know where the values that are read in go in the DB records schema for these sensors and what are they called? Like some of the battery levels etc. I'm on an upgraded install recently from 3.x to 4.1.1. 

Tim Tuck

unread,
Oct 7, 2020, 1:37:45 AM10/7/20
to weewx...@googlegroups.com
Hi Paul,

My old system uses the Interceptor and 3.x but with the advent of 4.1 I
built a new server and also changed to the GW1000 driver since it
captures more of the data from the 1000 than the Interceptor does. I've
imported some of the data from the old db to the new db to check that
yearly summaries etc. are ok.

3.x has an old schema that would need to be extended to archive the new
data. 4.x has an extended schema so it becomes a simple matter to map
the Ecowitt fields, from the GW1000 driver, to the weewx db for any data
type that doesn't have a direct match.

Example , in my weewx.con file, I have this stanza...

[GW1000]
    driver = user.gw1000
    ip_address = 172.20.1.16
    port = 45000
    poll_interval = 30
         [[field_map_extensions]]
        lightning_distance = lightningdist
        lightning_disturber_count = lightningdettime
        batteryStatus1 = wh41_ch1_batt
        batteryStatus2 = wh57_batt
        batteryStatus3 = wh51_ch1_batt
        batteryStatus4 = wh51_ch2_batt
        batteryStatus5 = wh51_ch3_batt
        batteryStatus6 = wh51_ch4_batt

Weewx fields on the left, Ecowitt on the right

Interestingly my moisture sensors are not returning a battery level.

PM2.5 and soil moisture get mapped directly so extra no config required
for that

In my Belchertown skin, graphs.conf file, I  graph soil moisture thus...

    [[chart7]]
        title = Garden Soil Moisture
        type = spline
        [[[soilMoist1]]]
                name = Vege Patch
        [[[soilMoist2]]]
                name = Central Garden
        [[[soilMoist3]]]
                name = East Garden
        [[[soilMoist4]]]
                name = West Garden

I haven't made graphs for the battery status as yet.

FYI... The Extended schema can be found here...

https://github.com/weewx/weewx/blob/master/bin/schemas/wview_extended.py


cheers

Tim
Reply all
Reply to author
Forward
0 new messages