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
+45 21204417
www.jensjk.dk


Den tor. 1. okt. 2020 kl. 14.01 skrev Tom Keffer <[email protected]>:

> 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
>
>
> On Thu, Oct 1, 2020 at 4:57 AM Jens-Jørgen Kjærgaard <[email protected]>
> wrote:
>
>> 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?
>>
>> --
>> 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/a6cc889d-fc86-46e4-8fc7-4798c516bb15n%40googlegroups.com
>> <https://groups.google.com/d/msgid/weewx-user/a6cc889d-fc86-46e4-8fc7-4798c516bb15n%40googlegroups.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/A8N1YE8mebY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/CAPq0zEDNb_VvaVQAdDT8b2o8YJ9ByCYPjvFfTAu4%3D6xQPLOPqg%40mail.gmail.com
> <https://groups.google.com/d/msgid/weewx-user/CAPq0zEDNb_VvaVQAdDT8b2o8YJ9ByCYPjvFfTAu4%3D6xQPLOPqg%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 on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAJPduSRFk6LOqzoAx_egKxxR4GAPbzdv4_fjiaWNYj06XaYqGw%40mail.gmail.com.

Reply via email to