In the absence of any information about what unit group a measurement
belongs to, WeeWX formats the number as a string, which usually leads to an
abundance of digits beyond the decimal point.

Be sure to assign the measurement to a unit group. See the section *Assigning
a unit group
<https://www.weewx.com/docs/5.0/custom/units/#assigning-a-unit-group>* in
the Customizing Guide.

On Sun, Feb 4, 2024 at 9:07 AM [email protected] <[email protected]> wrote:

> I have added a Geiger counter to my weewx (4.10.2) Standard page and am
> getting too many decimal points:
>           Radiation Level CPM 13.500000 at 11:45
> The format (I think) should be:
>             [[[[StringFormats]]]]
>                         cpm = %.0f
>
> Data topic is coming from MQTTsubscribe in weewx.conf:
>      [[[gccpm]]]
>                 name = signal1
>                 [[[[message]]]]
>                         type = individual
>
> I've read the wiki sections about how to customize but can't figure out
> what I'm doing wrong. The gccpm data is being stored in "signal1" of
> weewx.sdb.
> Thanks in advance for any help.
>
> Cheers,
> Bob
> http://grattans.org/wx
>
> --
> 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/057f0012-e18e-4db8-9940-96fcf66e8fa0n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/057f0012-e18e-4db8-9940-96fcf66e8fa0n%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 on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zECLkGyOZ%3DWWgubZ4NAec8BBuYBnEG9Hzuy%2B3mTj-9qy%2BA%40mail.gmail.com.

Reply via email to