I merely used uv index as an example. It could be any observation (temperature, wind speed, humidity, dewpoint, etc.) So the definition of minimum is the lowest value of whatever observation it is looking at. Yes, UV or solar radiation may be 0 by default (unless you're in Alaska during the period where the sun never sets) but for temperature or dewpoint or wind speed it may not be zero.
What I'm basically wanting to do is be able to write something like $daylightHours.outTemp.avg or $daylightHours.UV.avg (similar to $day.outTemp.avg or $day.UV.avg except would only calculate the average using values for the observation when it is daylight.)
I have written a couple of other custom search "extensions" for weewx like last7days and last24hours which gather values for the last week or last 24 hours but wondering if something like daylightHours as above is even possible and/or how it could be done.
And you're example of clouds enters into it. We get a lot of clouds in MI. And being able to get the average UV index or solar radiation but not factor in all the zero values that were either before dawn or after sundown is roughly what I'm looking for.