I would guess that the driver is not calculating "rain" correctly.
WeeWX uses "rain" for the values in the archive table and daily summaries. The WU uses some mysterious combination of "dayRain" and "hourRain" (they don't say) for rain totals. The driver calculates "rain" as the difference in some rain total (I think differences in "dayRain", but it's hard to tell from the code). This is as it should be. You say that the "spikes" occur after power outages. I'm thinking the value for "dayRain" also changes. I hate to "pass the buck," but I've taken this as far as I can. I don't think there's a problem in the WeeWX code --- after all, it works correctly for thousands of users and many different drivers. The only unusual circumstances in your case is the use of metric units in the database, and the use of the ws6in1 driver. Please ask the author of the driver to double check the calculations for rain. Ask him to try a power failure and see what happens to "dayRain". -tk On Wed, Jan 17, 2024 at 1:22 AM Ξ <fckyou...@gmail.com> wrote: > Hi Tom, > > Yes, that's exactly the ws6in1 driver I'm using, ever since July 2022. > target_unit is set to METRICWX and that's how I've always had it since I > started running weewx 5 years ago on this R-Pi initially with an Acurite > station. > > Thanks a bunch! > > On Monday, January 15, 2024 at 1:03:41 AM UTC+2 Tom Keffer wrote: > >> I think I'm getting close to figuring this out. Can you confirm the >> following: >> >> - You are using the "ws6in1" driver, right? This one >> <https://github.com/BobAtchley/weewx-ws6in1>. >> - What unit system are you using in your database? This is the setting >> for option "*target_unit*". >> >> -tk >> >> On Sun, Jan 14, 2024 at 10:56 AM Ξ <fcky...@gmail.com> wrote: >> >>> and the NOAA reports show it too: >>> >>> MONTHLY CLIMATOLOGICAL SUMMARY for Sep 2023 >>> >>> NAME: Dolni Okol >>> ELEV: 1010 meters LAT: 42-29.40 N LONG: 023-29.70 E >>> >>> >>> TEMPERATURE (C), RAIN (mm), WIND SPEED (m/s) >>> >>> HEAT COOL AVG >>> MEAN DEG DEG WIND >>> DOM INSIDE INS >>> DAY TEMP HIGH TIME LOW TIME DAYS DAYS RAIN SPEED >>> HIGH TIME DIR HIGH LOW >>> >>> ----------------------------------------------------------------------------------------------------- >>> 01 16.7 28.7 15:30 8.5 07:30 1.3 0.0 0.0 0.1 >>> 2.7 14:30 165 22.8 20.3 >>> 02 18.6 33.0 16:15 10.7 07:30 0.0 0.6 0.0 0.0 >>> 2.1 16:30 186 23.1 20.7 >>> 03 18.8 32.7 16:15 10.0 07:30 0.0 0.8 0.0 0.1 >>> 2.2 10:45 168 23.2 20.6 >>> 04 12.3 16.5 00:15 11.1 20:15 5.7 0.0 25.6 0.1 >>> 4.2 07:30 95 22.5 19.0 >>> 05 13.3 20.0 15:45 11.5 07:30 4.7 0.0 11.6 0.0 >>> 2.0 02:00 282 19.0 18.3 >>> 06 15.7 25.1 16:07 10.5 04:40 2.3 0.0 0.0 0.0 >>> 2.1 14:02 161 18.8 17.6 >>> 07 17.2 25.7 16:02 14.0 07:19 0.8 0.0 0.8 0.0 >>> 2.6 12:09 152 19.4 18.3 >>> 08 17.3 30.3 15:36 10.3 07:18 0.7 0.0 0.8 0.0 >>> 2.5 10:30 161 20.4 18.4 >>> 09 16.9 32.8 16:19 9.2 07:33 1.1 0.0 0.0 0.1 >>> 2.2 15:13 188 21.0 18.7 >>> 10 14.9 29.4 16:24 6.1 06:52 3.1 0.0 0.0 0.1 >>> 2.2 14:40 184 21.1 17.9 >>> 11 15.2 32.1 15:30 6.5 06:01 2.8 0.0 0.0 0.0 >>> 1.9 15:10 163 21.2 18.0 >>> 12 15.5 34.3 17:10 5.3 07:07 2.5 0.0 0.0 0.0 >>> 2.0 12:38 155 20.9 17.7 >>> 13 16.0 36.0 17:17 7.0 07:08 2.0 0.0 0.0 0.0 >>> 2.1 15:20 168 21.5 18.1 >>> 14 18.0 32.7 15:41 10.1 03:42 0.0 0.0 0.0 0.1 >>> 2.2 14:23 86 21.9 19.3 >>> 15 18.0 29.2 16:13 11.1 07:04 0.0 0.0 0.0 0.0 >>> 2.0 11:07 185 22.6 20.0 >>> 16 17.5 28.7 17:15 13.9 23:45 0.5 0.0 59.2 0.0 >>> 1.7 15:02 188 22.0 20.7 >>> 17 16.0 29.0 16:20 11.2 23:54 2.0 0.0 0.8 0.0 >>> 1.1 16:16 172 20.9 19.6 >>> 18 16.4 29.9 15:55 9.8 23:53 1.6 0.0 0.0 0.0 >>> 2.0 15:16 182 20.4 19.0 >>> 19 14.6 29.6 16:43 7.1 06:42 3.4 0.0 0.4 0.0 >>> 1.8 23:47 146 20.0 17.8 >>> 20 16.6 31.8 17:33 9.3 07:27 1.4 0.0 9.6 0.1 >>> 2.5 00:04 164 21.2 18.3 >>> 21 16.8 33.2 17:23 10.6 02:41 1.2 0.0 0.4 0.0 >>> 2.0 20:39 295 20.6 19.1 >>> 22 19.7 33.1 16:33 11.2 07:13 0.0 1.7 0.0 0.1 >>> 4.2 15:00 290 22.3 19.2 >>> 23 21.2 36.6 15:47 11.7 07:30 0.0 3.2 0.0 0.0 >>> 2.2 12:23 289 23.6 20.5 >>> 24 17.8 24.7 15:31 12.8 04:53 0.2 0.0 0.0 0.0 >>> 1.8 10:08 243 23.4 21.5 >>> 25 17.9 28.8 16:26 14.7 05:33 0.1 0.0 0.0 0.1 >>> 2.3 10:52 168 22.3 21.2 >>> 26 16.2 27.2 16:20 9.9 07:32 1.8 0.0 0.0 0.1 >>> 3.6 14:22 168 21.6 19.6 >>> 27 15.5 26.6 15:14 9.4 06:00 2.5 0.0 0.0 0.1 >>> 3.0 11:47 169 21.5 19.1 >>> 28 14.7 26.1 15:53 7.8 05:53 3.3 0.0 0.0 0.0 >>> 2.1 13:01 216 20.1 18.6 >>> 29 15.2 26.7 15:29 9.8 23:51 2.8 0.0 0.0 0.1 >>> 2.8 13:59 205 20.1 18.3 >>> 30 14.5 26.9 17:13 8.7 07:55 3.5 0.0 0.0 0.1 >>> 2.3 12:57 201 20.5 17.8 >>> >>> ----------------------------------------------------------------------------------------------------- >>> 16.5 36.6 23 5.3 12 51.2 6.3 109.2 0.0 >>> 4.2 04 176 23.6 17.6 >>> >>> >>> >>> ===================================================================================================== >>> >>> For December >>> >>> MONTHLY CLIMATOLOGICAL SUMMARY for Dec 2023 >>> NAME: Dolni Okol >>> ELEV: 1010 meters LAT: 42-29.40 N LONG: 023-29.70 E >>> >>> >>> TEMPERATURE (C), RAIN (mm), WIND SPEED (m/s) >>> >>> HEAT COOL AVG >>> MEAN DEG DEG WIND >>> DOM INSIDE INS >>> DAY TEMP HIGH TIME LOW TIME DAYS DAYS RAIN SPEED >>> HIGH TIME DIR HIGH LOW >>> >>> ----------------------------------------------------------------------------------------------------- >>> 01 9.4 14.7 13:30 -1.1 00:18 8.6 0.0 0.0 0.6 >>> 6.6 11:58 326 7.8 5.0 >>> 02 7.6 17.5 15:23 2.7 20:58 10.4 0.0 0.0 0.1 >>> 3.3 14:38 325 7.9 7.2 >>> 03 4.9 12.0 00:26 -2.0 23:56 13.1 0.0 13.2 0.1 >>> 3.3 13:02 33 7.9 7.1 >>> 04 -2.3 11.7 15:39 -6.3 07:48 20.3 0.0 0.0 0.0 >>> 2.3 03:53 117 8.7 6.1 >>> 05 -0.8 1.4 14:51 -2.5 07:23 18.8 0.0 0.0 0.0 >>> 1.4 11:35 303 6.4 4.8 >>> 06 0.7 1.3 14:03 -0.1 00:00 17.3 0.0 0.4 0.0 >>> 0.6 02:03 307 4.8 4.2 >>> 07 0.3 3.7 11:02 -2.0 23:16 17.7 0.0 0.0 0.1 >>> 3.0 13:48 56 4.2 3.7 >>> 08 -2.3 -0.9 13:18 -3.8 22:07 20.3 0.0 0.0 0.0 >>> 0.0 00:00 90 3.7 2.9 >>> 09 -2.1 1.0 14:38 -4.4 05:04 20.1 0.0 0.0 0.0 >>> 0.9 14:42 161 2.9 2.4 >>> 10 -0.8 10.6 15:17 -4.0 05:44 18.8 0.0 4.0 0.0 >>> 2.3 13:02 316 4.4 2.1 >>> 11 0.3 7.2 14:56 -3.6 07:52 17.7 0.0 0.8 0.0 >>> 2.0 12:04 138 5.7 3.0 >>> 12 3.8 13.6 15:35 0.1 21:58 14.2 0.0 0.8 0.0 >>> 3.0 05:10 14 6.2 4.1 >>> 13 3.2 11.1 14:28 0.4 04:02 14.8 0.0 0.0 0.0 >>> 1.2 15:36 302 5.5 4.7 >>> 14 5.7 11.7 10:36 0.6 02:20 12.3 0.0 7.2 0.1 >>> 3.1 04:20 41 5.6 4.9 >>> 15 1.1 2.1 03:06 -0.7 23:56 16.9 0.0 42.0 0.0 >>> 2.8 05:17 56 5.5 4.7 >>> 16 -2.0 -0.5 13:54 -3.7 23:59 20.0 0.0 0.0 0.0 >>> 0.0 00:00 90 4.8 3.7 >>> 17 -5.7 0.5 13:58 -10.5 07:32 23.7 0.0 0.0 0.0 >>> 0.0 00:00 90 5.4 2.7 >>> 18 -3.0 9.9 15:34 -8.1 01:40 21.0 0.0 18.8 0.0 >>> 0.0 00:00 90 5.4 2.3 >>> 19 -0.9 12.1 15:20 -4.6 07:04 18.9 0.0 4.8 0.0 >>> 0.0 00:00 90 6.4 3.1 >>> 20 1.4 9.2 15:04 -5.2 06:31 16.6 0.0 5.2 0.1 >>> 2.6 16:48 315 6.2 3.8 >>> 21 1.0 10.6 15:13 -3.5 20:04 17.0 0.0 0.8 0.1 >>> 2.5 22:09 47 7.5 4.3 >>> 22 1.9 3.7 03:57 0.1 23:01 16.1 0.0 4.0 0.2 >>> 4.4 00:41 320 5.6 4.6 >>> 23 2.4 5.3 11:23 -0.5 17:43 15.6 0.0 0.8 0.3 >>> 4.5 21:58 348 5.2 4.3 >>> 24 6.4 13.5 15:33 3.1 06:08 11.6 0.0 0.0 0.2 >>> 4.2 16:06 337 7.2 4.3 >>> 25 8.7 17.6 15:33 2.6 23:45 9.3 0.0 0.0 0.2 >>> 3.2 14:08 331 9.2 5.9 >>> 26 6.8 16.6 15:18 -0.3 05:13 11.2 0.0 0.0 0.1 >>> 2.2 09:18 330 10.7 7.4 >>> 27 4.3 16.0 15:26 -1.4 23:57 13.7 0.0 0.0 0.0 >>> 2.8 01:21 51 11.7 8.7 >>> 28 2.6 18.6 15:55 -2.7 07:19 15.4 0.0 0.0 0.1 >>> 2.3 14:41 169 11.4 8.4 >>> 29 2.7 15.1 15:49 -2.0 05:40 15.3 0.0 0.0 0.0 >>> 2.0 13:05 162 11.4 8.4 >>> 30 1.9 8.7 13:26 -2.4 04:34 16.1 0.0 0.0 0.1 >>> 2.7 14:40 35 10.7 8.2 >>> 31 2.3 15.5 15:20 -1.2 08:30 15.7 0.0 0.0 0.0 >>> 1.8 11:30 177 10.7 7.9 >>> >>> ----------------------------------------------------------------------------------------------------- >>> 2.0 18.6 28 -10.5 17 498.6 0.0 102.8 0.1 >>> 6.6 01 342 11.7 2.1 >>> >>> >>> *sqlite> select dateTime, date(dateTime,'unixepoch','localtime'), >>> sum(rain) from archive where >>> date(dateTime,'unixepoch','localtime')=='2023-12-03';1701554400|2023-12-03|13.2* >>> whereas 4.32 mm on Wunderground for 03/12/2023 >>> https://www.wunderground.com/dashboard/pws/I5302/graph/2023-12-3/2023-12-3/daily >>> >>> >>> *sqlite> select dateTime, date(dateTime,'unixepoch','localtime'), >>> sum(rain) from archive where >>> date(dateTime,'unixepoch','localtime')=='2023-12-15';1702591200|2023-12-15|42.4* >>> whereas 13.97 mm on Wunderground for 15/12/2023 >>> https://www.wunderground.com/dashboard/pws/I5302/graph/2023-12-15/2023-12-15/daily >>> >>> >>> *sqlite> select dateTime, date(dateTime,'unixepoch','localtime'), >>> sum(rain) from archive where >>> date(dateTime,'unixepoch','localtime')=='2023-12-18';1702850400|2023-12-18|18.8* >>> whereas 4.83 mm on Wunderground for 18/12/2023 >>> https://www.wunderground.com/dashboard/pws/I5302/graph/2023-12-18/2023-12-18/daily >>> >>> -- >>> 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/99cfce92-99d1-4a94-9274-87384af079f5n%40googlegroups.com >>> <https://groups.google.com/d/msgid/weewx-user/99cfce92-99d1-4a94-9274-87384af079f5n%40googlegroups.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 weewx-user+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/36d9c7e5-59a8-4442-9d63-1be15ed6393en%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/36d9c7e5-59a8-4442-9d63-1be15ed6393en%40googlegroups.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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEAUDLnKhSx3CDSCk%2BUfvME9PvAEDMXNfGo2t%2BOYoR4uLg%40mail.gmail.com.