Here between Seattle+Tacoma the Pacific North Wet laughs at your thresholds :-)
Not a bad year here, pretty typical. About 37 inches and 160 days rain. We've had worse in both directions. Rainiest month here was dec'2015 at 11.05" rain I suspect those in hurricane country just think "so you had 11 inches one month eh - dude that was yesterday here..." On Saturday, December 31, 2022 at 3:21:07 PM UTC-8 [email protected] wrote: > When I set up my station <https://www.oceanbeach.org/weewx/index.html>I > wrote in 2 rain gauges, a weekly and an annual. I had never seen more than > 3 inches of rain in a week so I set a 4 rain inch high graphic for the > week. In this single past week we got more rain then we got all year. Who'd > a thunk that? > Here's my autoscaling code for daily rain. Salt to taste for weekly rain with different thresholds... <canvas id="rainTotalCanvasGauge"></canvas> <script> // these will come from weewx eventually // var rainValue = 0.17 var rainValue = $day.rain.sum.formatted // change scale based on value for readability if (rainValue < 100) { maxValue = 15; minorTicks = 4; majorTicks = [ '0','5','10','15' ] }; if (rainValue < 5) { maxValue = 5; minorTicks = 5; majorTicks = [ '0','1','2','3','4','5' ] }; if (rainValue < 3) { maxValue = 3; minorTicks = 10; majorTicks = [ '0','0.5','1','1.5','2','2.5','3' ] }; if (rainValue < 1) { maxValue = 1; minorTicks = 10; majorTicks = [ '0','0.2','0.4','0.6','0.8','1.00' ] }; var rainTotalGauge = new LinearGauge({ value: rainValue, renderTo: rainTotalCanvasGauge, width: 100, height: 200, borders: true, strokeTicks: true, barBeginCircle: false, borderShadowWidth: "0", units: "inches", valueDec: 2, valueInt: 1, minValue: 0, maxValue: maxValue, valueBox: 1, colorBarProgress: "lightsalmon", colorBar: "white", minorTicks: minorTicks, majorTicks: majorTicks, }); rainTotalGauge.draw(); </script> -- 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 on the web visit https://groups.google.com/d/msgid/weewx-user/085f1143-624e-49a8-9627-7cd86cf2fc26n%40googlegroups.com.
