Reject value of 0?

41 views
Skip to first unread message

Jens-Jørgen Kjærgaard

unread,
Oct 1, 2020, 7:57:05 AM10/1/20
to weewx-user
I have added the temperature of my pond as extraTemp1 and using DS18B20 on the raspberry, runs fine.
Now I have also added the water level of the pond as extraTemp2 using ultrasound. Of course I get the reading as degree C when it should be in centimeters, but I don't mind - anyway, it works fine. 
But if I get a power outage, the extraTemp1 is just missing, as it should be, but extraTemp2 records a value of 0, producing a misleading graph. Is there any way to avoid this?

Tom Keffer

unread,
Oct 1, 2020, 8:01:45 AM10/1/20
to weewx-user
Hi, Jens

Best solution would be to solve the problem at its source. It sounds like the DS18B20 emits a zero, even though the power was off. Any way to change that?

Alternatively, you could tell StdQC to reject values outside a "known good" range:

[StdQC]
    [[MinMax]]
        extraTemp2 = 1.0, 1000.0


--
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/a6cc889d-fc86-46e4-8fc7-4798c516bb15n%40googlegroups.com.

Jens-Jørgen Kjærgaard

unread,
Oct 1, 2020, 8:50:56 AM10/1/20
to weewx-user
Thank you, Tom. 
I am using the HC-SR04 for the ultrasound measurement (and DS18B20 for temperature), and I haven't been able to find why it outputs zero on power outage.
I guess I have to use the StdQC option instead - though not so nice, as the value in fact may be zero sometimes (due to my "calculations" from cm to degree F).

Jens-Jørgen Kjærgaard
Tuenvej 818
9870 Sindal


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/A8N1YE8mebY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEDNb_VvaVQAdDT8b2o8YJ9ByCYPjvFfTAu4%3D6xQPLOPqg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages