One option would be to put this in [StdCalibrate]

[StdCalibrate]
  [[Corrections]]
    windSpeed = 0 if windSpeed is None else windSpeed

That will actually save the value 0 (zero) in your database.

Another option, not so drastic, is to interpret None as zero in your
templates. Instead of

<p>The current windspeed is $current.windSpeed</p>

use

<p>The current windspeed is $current.windspeed.format(None_string="0")</p>

-tk

On Mon, Feb 10, 2020 at 9:58 AM wysiwyg <[email protected]> wrote:

> Hello Thomas,
> Thanks for clarifying $latest tag, now I understand!
>
> Regarding the 15min... Well, I'm happy with 5min interval :D. It's a good
> trade off to keep database reasonable but with reactivity to capture short
> events (like a thunderstorm rain in my place with very high rainrate for a
> few minutes then slow down) Or to have shorter wait when debugging :-).
>
> But some data does not have anything interesting to show every 5min: like
> when there's no wind or no rain, reporting 0,0,0...for hours or days...
> That's why I tried this trick on my sensor, to save battery.
>
> Anyway, if my battery can deal with it, I can switch all to 5min interval
> (whatever there's wind or not). I have to do some experiments.
>
> --
> 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/70e582bd-8e1a-49c3-ba5a-5ad02249b643%40googlegroups.com
> .
>

-- 
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/CAPq0zEDrUVfkQoFmrFhP1m_LzUkYB34Ydk_a28bq4ikxT2YTSg%40mail.gmail.com.

Reply via email to