OK - if you use the wview_extended schema, which will be automatically the case when you made your initial (!) install with a weewx 4.x.x version, all your sensors (= the ones you have right now) should be automatically stored/archived. Lightning strike number, last date and distance are fields in the wview_extendedschema, so are 1-4 SoilMoisture sensors. It will become trickier once you have more than 4 (as I do).
So, if you have the already the wview_extended schema, nothing you have to do. If only the wview schema, you need to upgrade to wview_extended.
If you want to display your data in (e.g.) the Seasons skin, you need to know the weewx DB field names which you will need to add to skin.conf and index.html.tmpl.
Those you find in the Python program which created the DB schema; it ran only once when the initial install of the DB happened.
It's located in /usr/share/weewx/schemas and is named wview_extended.py (or wview.py).
e.g.
in skin.conf (/etc/weewx/skins/Seasons/skin.conf)
you can add to
[ImageGenerator]
#
# ....................
#
[[day_images]]
# ..................
[[[daylightning]]]
[[[[lightning_strike_count]]]]
[[[daylightning2]]]
[[[[lightning_distance]]]]
and
in index.html.tmpl (/etc/weewx/skins/Seasons/index.html.tmpl)
you can then addnote that in index.html.tmpl a "#" is a valid syntax tag, not a commentary sign - commentary would be "##"
##
## you can add to the below plot group
<div id="plot_group">
<div id="history_widget" class="widget">
<div id="plot_title" class="widget_title">History:
<a class="button_selected" id="button_history_day"
onclick="choose_history('day')">Day</a>
<a class="button" id="button_history_week"
onclick="choose_history('week')">Week</a>
<a class="button" id="button_history_month"
onclick="choose_history('month')">Month</a>
<a class="button" id="button_history_year"
onclick="choose_history('year')">Year</a>
</div>
<div id="history_day" class="plot_container">
<img src="daybarometer.png" alt="$obs.label.barometer"/>
<img src="daytempdew.png" alt="$obs.label.outTemp" />
<img src="daytempfeel.png" alt="$obs.label.feel" />
<img src="dayhum.png" alt="$obs.label.outHumidity" />
<img src="daywind.png" alt="$obs.label.windSpeed" />
<img src="daywinddir.png" alt="$obs.label.windDir" />
<img src="daywindvec.png" alt="$obs.label.windvec" />
<img src="dayrain.png" alt="$obs.label.rain" />
## ........................
## ........................
#if $day.lightning_strike_count.has_data
<img src="daylightning.png" alt="$obs.label.lightning_strike_count" />
#end if
#if $day.lightning_distance.has_data
<img src="daylightning2.png" alt="$obs.label.lightning_distance" />
#end ifthe result should look like:
[ You are not allowed to view attachments ]
here the last strike was a couple of days ago at 24 km distance
once it works, you will have to add entries for week, month and year to skin.conf and index.html.tmpl - otherwise the pictures will occur only in the day view!!
If you want to see not only the pictures but also the current and high/low values in the left hand side pane of the Seasons skin,
you will have to add corresponding entries to current.inc and hilo.inc (which are loaded into index.html.tmpl).
That will also be current, week, month, year.
e.g. for current.inc (/etc/weewx/skins/Seasons/current.inc)
##.................
## WH57 lightning
#if $day.lightning_strike_count.has_data
<tr>
<td class="label">$obs.label.lightning_strike_count</td>
<td class="data">$current.lightning_strike_count</td>
</tr>
#end if
#if $day.lightning_distance.has_data
<tr>
<td class="label">$obs.label.lightning_distance</td>
<td class="data">$current.lightning_distance</td>
</tr>
#end if## ................
result (without the WH45 observations
)
[ You are not allowed to view attachments ]
there is also statistics.inc to be edited if you want to see the lightnings in the history table (click on "high/low").
The same/similar approach will need to be used for your WH51 SoilMoisture sensor.