Decimal units in PM2_5 and pm10_0

45 views
Skip to first unread message

carlo74

unread,
Mar 18, 2022, 12:00:51 PM3/18/22
to weewx-user
Until weewx 4.5.1 I have one decimal in the particulate matter result.
Now with weewx 4.6 and 4.7 I have only the exact value without the comma.

particulate.jpg
It is possible to modify to view like temperature?

temp.jpg
Can I modify the units options or "microgram_per_meter_cubed" in weewx.conf?
Thanks.
Carlo

Tom Keffer

unread,
Mar 18, 2022, 12:26:26 PM3/18/22
to weewx-user
Yes you can. Go into weewx.conf and add a stanza for [[[[StringFormats]]]] if it's not already there. Then add a setting for microgram_per_meter_cubed under it. When you're done, it will look something like this:

[StdReport]
  ...
  [[Defaults]]
    ...
    [[[Groups]]]
      ...
      [[[[StringFormats]]]]
        ...
        microgram_per_meter_cubed = "%.1f"

Then restart weewxd.

-tk


--
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/a8ae19ce-6105-4efc-9b89-49ca7c7d8fe2n%40googlegroups.com.

carlo74

unread,
Mar 18, 2022, 1:47:06 PM3/18/22
to weewx-user
It works !
Thanks.
Carlo

Reply all
Reply to author
Forward
0 new messages