Hang on. The bad data goes back more than a year? That sounds like a lot
more than a re-siting problem.

It could be that your Peet station has been emitting bad data.

On the Peet Brother stations, rain is calculated as the difference in field
"rain_total". For example, if the sensor has seen 0.23" of rain for the
day, then with the next LOOP packet it goes to 0.25", then WeeWX records
rain as 0.02" --- the amount of rain that must have fallen between LOOP
packets.

It is possible that instead of rain_total increasing monotonically, it is
going backwards, resulting in the large negative numbers you are seeing.

Set debug=1, then restart weewx. Let it run long enough to record a bad
rain value. Record the time of the bad value in your notes, then post the
log. Setting debug=1 will cause the driver to record the raw values
coming off the station. If it takes a while to encounter a bad value the
log will be voluminous, so you may want to upload it to pastebin.com or
similar site.

-tk

On Thu, May 7, 2026 at 2:27 PM Steve2Q <[email protected]> wrote:

> Dave; one question before I delve into this. The bad data extends back as
> far a one year (and maybe beyond). Will the clean up bad data procedure
> take care of it all?
>
> On Thursday, May 7, 2026 at 2:01:02 PM UTC-4 Tom Keffer wrote:
>
> Looks like you got some bad data in your database. See the wiki article 
> *Cleaning
> up old bad data
> <https://github.com/weewx/weewx/wiki/Cleaning-up-old-bad-data>*. Its
> instructions are oriented towards V5.x, but you should be able to figure it
> out. The biggest difference is that you will use `wee_database` instead of
> `weectl database`.
>
> On Thu, May 7, 2026 at 10:39 AM Steve2Q <[email protected]> wrote:
>
> Hello. I have not had a problem in quite a long time, but something
> cropped up, and I'm not sure where to start.
>
> I have a Peet Bros station, and am running Weewx V 3.8.2. I found it does
> everything I want, so I never saw the point in upgrading. Anyway, this is
> the problem.
>
> I had to relocate my rain sensor. After starting up, I see that the graph
> for rain looks like the attached screen shot. Several years ago, I add the
> "Rain 2 minutes" the chart, and it worked fine until yesterday. Before
> relocating the rain sensor, I stopped Weewx and turned off the RPi that is
> running the program. When I started back up, the chart looks like this with
> the - rates. I don't know if a file got corrupted or where to start
> looking, I would appreciate any insight into what may be going on.  Thanks
> in advance.
>
>
> --
> 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/dd37cabc-43c7-4be2-8c42-f54619eb994en%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/dd37cabc-43c7-4be2-8c42-f54619eb994en%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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zED22XbRTBebQ8LmcfvUUjGRyOjHVypsL5P6tTvLvw07HQ%40mail.gmail.com.

Reply via email to