Morning Peter, I responded to this thread because AlltimeSeasons was mentioned, and there was a question about its origins. Reading the whole thread I now see that you have some rather specific requests that center around the unique piezo rain gauge. I can't help with that, but I can give you a run through on integrating its values into the AlltimeSeasons page.
Have a look at the All-time section at... http://cgm.id.au/weewx/ Also have a look at the NOAA tables there (Top right, drop down buttons) That's what I'm talking about. As I outlined in the previous post, weewx is doing all the work. The Alltime skin is just repackaging existing values. The first, and most critical step. What is the database field that is being used by the piezo data? And it's best if it's one of the following... Weewx already has 3 database fields that are suitable for rain, ie: they are part of the rain_group and therefore weewx knows how to handle the accumulation, averaging, etc of the data, These are... rain hail snow My 2nd rain gauge stores its data in the hail field (I also use snow, but that's a duplicate) Neither hail nor snow support rain_rate, but they do handle the accumulation of the data correctly. I've never played with the rain_day aspect. In the skin.conf file it is linked to rain (the rain field in the database). I would expect that you could change that to hail / smow. You could no doubt duplicate that table to display each of them as well, just as you can for the rain fall data. An untidy diff of skin.conf shows that there are 2 extra tables. one for hail and one for rain. These are basically clones of the [[rain]] entry. I'm assuming from your replies that you are familiar with the diff output, and while these are not complete, they should give a few hints... hopefully. The line numbers will be meaningless. @@ -290,6 +291,29 @@ summary_column = true summary_heading = Total + [[hail]] + obs_type = hail + aggregate_type = sum + minvalues = 0, 25, 50, 75, 100, 150 # Override default temperature colour scheme with rain specific scale + maxvalues = 25, 50, 75, 100, 150, 1000 + colours = "#E0F8E0", "#A9F5A9", "#58FA58", "#2EFE2E", "#01DF01", "#01DF01" + fontColours = "#000000", "#000000", "#000000", "#000000", "#000000", "#000000" + + summary_column = true + summary_heading = Total + + [[snow]] + obs_type = snow + aggregate_type = sum + minvalues = 0, 25, 50, 75, 100, 150 # Override default temperature colour scheme with rain specific scale + maxvalues = 25, 50, 75, 100, 150, 1000 + colours = "#E0F8E0", "#A9F5A9", "#58FA58", "#2EFE2E", "#01DF01", "#01DF01" + fontColours = "#000000", "#000000", "#000000", "#000000", "#000000", "#000000" + + summary_column = true + summary_heading = Total + + [[rain_days]] obs_type = rain units = Days # Override default table units label @@ -304,6 +328,19 @@ summary_column = true summary_heading = Total + [[NOAA] So, that will draw the tables, providing there is data to read. To get that data you need the NOAA tables to be populated with the database data for that/those field/s 08:24 AM $ diff -Naur NOAA-%Y-%m.txt.tmpl.trimmed NOAA-%Y-%m.txt.tmpl.snow.hail --- NOAA-%Y-%m.txt.tmpl.trimmed 2024-10-27 16:44:37.038908551 +1100 +++ NOAA-%Y-%m.txt.tmpl.snow.hail 2024-10-27 16:21:36.893695844 +1100 @@ -29,12 +29,12 @@ ----------------------------------------------------------------------------------------------------- #for $day in $month.days #if $day.outTemp.has_data or $day.rain.has_data or $day.wind.has_data -$day.dateTime.format($D, add_label=False) $day.outTemp.avg.format($Temp,$NONE,add_label=False) $day.outTemp.max.format($Temp,$NONE,add_label=False) $day.outTemp.maxtime.format($Time,add_label=False) $day.outTemp.min.format($Temp,$NONE,add_label=False) $day.outTemp.mintime.format($Time,add_label=False) $day.heatdeg.sum.format($Temp,$NONE,add_label=False) $day.cooldeg.sum.format($Temp,$NONE,add_label=False) $day.rain.sum.format($Rain,$NONE,add_label=False) $day.wind.avg.format($Wind,$NONE,add_label=False) $day.wind.max.format($Wind,$NONE,add_label=False) $day.wind.maxtime.format($Time,add_label=False) $day.wind.vecdir.format($Dir,$NONE,add_label=False) +$day.dateTime.format($D, add_label=False) $day.outTemp.avg.format($Temp,$NONE,add_label=False) $day.outTemp.max.format($Temp,$NONE,add_label=False) $day.outTemp.maxtime.format($Time,add_label=False) $day.outTemp.min.format($Temp,$NONE,add_label=False) $day.outTemp.mintime.format($Time,add_label=False) $day.heatdeg.sum.format($Temp,$NONE,add_label=False) $day.cooldeg.sum.format($Temp,$NONE,add_label=False) $day.rain.sum.format($Rain,$NONE,add_label=False) $day.hail.sum.format($Rain,$NONE,add_label=False) $day.snow.sum.format($Rain,$NONE,add_label=False) $day.wind.avg.format($Wind,$NONE,add_label=False) $day.wind.max.format($Wind,$NONE,add_label=False) $day.wind.maxtime.format($Time,add_label=False) $day.wind.vecdir.format($Dir,$NONE,add_label=False) #else $day.dateTime.format($D) #end if #end for #if $month.outTemp.has_data or $month.rain.has_data or $month.wind.has_data --------------------------------------------------------------------------------------- - $month.outTemp.avg.format($Temp,$NONE,add_label=False) $month.outTemp.max.format($Temp,$NONE,add_label=False) $month.outTemp.maxtime.format($D,add_label=False) $month.outTemp.min.format($Temp,$NONE,add_label=False) $month.outTemp.mintime.format($D,add_label=False) $month.heatdeg.sum.format($Temp,$NONE,add_label=False) $month.cooldeg.sum.format($Temp,$NONE,add_label=False) $month.rain.sum.format($Rain,$NONE,add_label=False) $month.wind.avg.format($Wind,$NONE,add_label=False) $month.wind.max.format($Wind,$NONE,add_label=False) $month.wind.maxtime.format($D,add_label=False) $month.wind.vecdir.format($Dir,add_label=False) + $month.outTemp.avg.format($Temp,$NONE,add_label=False) $month.outTemp.max.format($Temp,$NONE,add_label=False) $month.outTemp.maxtime.format($D,add_label=False) $month.outTemp.min.format($Temp,$NONE,add_label=False) $month.outTemp.mintime.format($D,add_label=False) $month.heatdeg.sum.format($Temp,$NONE,add_label=False) $month.cooldeg.sum.format($Temp,$NONE,add_label=False) $month.rain.sum.format($Rain,$NONE,add_label=False) $month.hail.sum.format($Rain,$NONE,add_label=False) $month.snow.sum.format($Rain,$NONE,add_label=False) $month.wind.avg.format($Wind,$NONE,add_label=False) $month.wind.max.format($Wind,$NONE,add_label=False) $month.wind.maxtime.format($D,add_label=False) $month.wind.vecdir.format($Dir,add_label=False) #end if I realize that the above will probably fall well short of what you actually need for a working version, but it's a starting point. The first critical step is to get the rain data from your database into your NOAA tables. I'm limited in my time, but we'll see how it goes. We should be able to get you something, so long as there is data in the correct format. Also. You will see huge variations between my rain gauges (ignore the identical clone #3, it's a dupe). One gauge measures at 0.25 mm tip, the other at 0.5mm tip. Different rain gauges, different quality, slightly different locations. We also keep manual records and they display yet another set of figures. So much depends on gauge location, quality, rain intensity and wind deflectors / vortexes that getting identical values can be a real stretch. Plus there will always be missed rain with a tipping bucket. I don't see how you can use the data from one gauge to supplement the data from another. They are different instruments. Far better to just show the data, warts and all and they make decisions based on that. Cheers Glenn Various WeeWx addons at https://github.com/glennmckechnie On Sun, 13 Jul 2025 at 05:14, DrVet52 <[email protected]> wrote: > > > > Glenn McKechnie <[email protected]> schrieb am Sa., 12. Juli > 2025, 05:07: > >> Weewx does all the calculations, AlltimeSeasons takes them from the NOAA >> tables. >> >> If there is an entry in the files in the NOAA directory (for a 2nd rain >> gauge there won't be), those daily summaries are correctly generated (no >> extreme errors in data) then half the work is done. Editing the NOAA >> templates is interesting, but quite do-able. >> >> It then relies on the alltimes skin.conf and the historygenerator.inc >> page having a definition for those daily summaries. With that done, they >> can be displayed. >> That is all reasonably straightforward. YMMV. >> >> You're talking serious magic to select the "better" sensor and display it >> accordingly. Ditto with the mean. It could be done, but you're on your own >> there. >> Far easier to include both rain gauge types in the displayed data. IMHO >> that is more informative too as you'll see the differences as they happen, >> know which one has gone offline or started pulling its stats from mercury. >> >> I have 2 rain gauges. My allTimeSeason stats page displays them both. >> >> I do have an unreleased, tweaked version which installs as a separate >> skin, but is ultimately incorporated into the Seasons skin via the >> index.html page. >> It's in an unfinished state, and you would need to parse what I've done >> and troubleshoot as you go. I'll obviously help but you'll need to do some >> hard yards too. >> >> Contact me off-list and I'll send it, as time becomes available (mainly >> me) we should be able to get it working for a 2nd rain gauge. >> >> My email address is in the install.py file. >> >> Cheers >> Glenn >> >> Various WeeWx addons at >> https://github.com/glennmckechnie >> >> >> >> On Sat, 12 Jul 2025 at 01:48, DrVet52 <[email protected]> wrote: >> >>> Thanks, Glenn! I am glad with AlltimeSeasons, as is now. Nicht to see, >>> that is now installable, and does not need to be installed manually. >>> Although, when manually installed, it was necessary to have a look into the >>> diff files, which gateway e good feeling, what was changed compared to >>> standard Seasons skin. >>> So, I think, that you know about the mechanisms of summarizing rain >>> data. I think, it is a better approach to do this calculations in weewx, >>> and not in alltimeSeasons. Because, it would be important, not to sum up >>> the same rain from different sensors, but either chose one ( preferably the >>> "better" sensor ), or, if ther is no bias, calculate sort of statistical >>> mean value of the sensor data. In case of piezo vs tipping sensor, I tend >>> to a biased version: when tipping gives no data, take that of Piezo, >>> otherwise that of the tipping bucket. >>> What is your opinion? >>> >>> Glenn McKechnie <[email protected]> schrieb am Fr., 11. Juli >>> 2025, 01:42: >>> >>>> >>>> >>>> On Thu, 10 Jul 2025 at 23:03, Vetti52 <[email protected]> wrote: >>>> [...] >>>> >>>> >>>>> And, second, I would like to see the this sum in the allTime table ( >>>>> https://github.com/glennmckechnie/alltimeSeasons), I have integrated >>>>> into my Season skin. As far as I can look into it, this is a small >>>>> version of the fuzzy-archer skin, Michael has used, right >>>> >>>> >>>> It's a fork of gedgers repo >>>> https://github.com/gedger/alltimeSeasons/ >>>> which (in its first release in 2020) attributes >>>> https://github.com/brewster76/fuzzy-archer >>>> >>>> Yes, It's a simpler version and because of that origin timing it won't >>>> have any of the extras that the latest version of fuzzy-archer may have / >>>> has added. >>>> >>>> I added an extra totals column, changed some colors, then packaged it >>>> as an installable skin (per weewx style), and that's about it. >>>> Anything else would need to be adapted from the current fuzzy-archer >>>> and incorporated into it, or a new fork. >>>> >>>> >>>> Cheers >>>> Glenn >>>> >>>> Various WeeWx addons at >>>> https://github.com/glennmckechnie >>>> >>>> >>>> -- >>>> You received this message because you are subscribed to a topic in the >>>> Google Groups "weewx-user" group. >>>> To unsubscribe from this topic, visit >>>> https://groups.google.com/d/topic/weewx-user/rwdy_SwGW8o/unsubscribe. >>>> To unsubscribe from this group and all its topics, send an email to >>>> [email protected]. >>>> To view this discussion visit >>>> https://groups.google.com/d/msgid/weewx-user/CAAraAzgLusKPepML6VWPiu1O2a5FPm5X-AsbPA7jALevp0V87A%40mail.gmail.com >>>> <https://groups.google.com/d/msgid/weewx-user/CAAraAzgLusKPepML6VWPiu1O2a5FPm5X-AsbPA7jALevp0V87A%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- >>> 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 [email protected]. >>> To view this discussion visit >>> https://groups.google.com/d/msgid/weewx-user/CAO%3D2E3ktpNVSTM0Ee9uXxF7Ygysc%3DBBWbYPJO3fe8hp9J635OQ%40mail.gmail.com >>> <https://groups.google.com/d/msgid/weewx-user/CAO%3D2E3ktpNVSTM0Ee9uXxF7Ygysc%3DBBWbYPJO3fe8hp9J635OQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "weewx-user" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/weewx-user/rwdy_SwGW8o/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> To view this discussion visit >> https://groups.google.com/d/msgid/weewx-user/CAAraAzgE%3DuhAZ-iS%3D4TswJcMwefCHqkBSfQ%3D1%3D%3DuoVR1VxF6fA%40mail.gmail.com >> <https://groups.google.com/d/msgid/weewx-user/CAAraAzgE%3DuhAZ-iS%3D4TswJcMwefCHqkBSfQ%3D1%3D%3DuoVR1VxF6fA%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > 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 [email protected]. > To view this discussion visit > https://groups.google.com/d/msgid/weewx-user/CAO%3D2E3m08ekbw26xDG_RaGDSY_jqtDrJGtConQ-yp5hH%2BZW0dA%40mail.gmail.com > <https://groups.google.com/d/msgid/weewx-user/CAO%3D2E3m08ekbw26xDG_RaGDSY_jqtDrJGtConQ-yp5hH%2BZW0dA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion visit https://groups.google.com/d/msgid/weewx-user/CAAraAziriK1Oym2RDBmN9Uqsyk2g7sxY4-pJW%2BJi6HJtzWdJCw%40mail.gmail.com.
