I think you're not getting a response because the question is a little
confusing.

As I understand it, you have added some new observation types, and now
you're wondering why they are not working with V5.0? Is that correct?

First, adding the unit group assignments to units.py is never a good idea,
because units.py will get replaced in the next upgrade. Instead, you should
add them to any user code (that is, code that lives under the subdirectory
'bin/user') because that never gets touched. Most customizations involve
some bit of Python code (such as a search list extension, etc.), and that's
a good place to put the assignment. Alternatively, if there is no Python
code involved, you can put it in user/extensions.py --- that's what it's
there for.

Second, I hope you did not literally make the additions to units.py that
you showed below. That would cause obs_group_dict to forget all the WeeWX
native types! Same with USUnits.

Instead, you should follow the outline in the section *Customizing unit
groups <https://www.weewx.com/docs/5.1/custom/units/>* in the Customization
Guide.

Give it a look. If you're still confused, come back here and we'll see if
we can straighten things out.


On Tue, Jul 9, 2024 at 8:12 AM [email protected] <[email protected]> wrote:

> Sorry to keep going on this but I have no takers so far.
>
> I have added this to weewx.conf:
> [[StandardReport]]
>         # This is the old "Standard" skin. By default, it is not enabled.
>         skin = Standard
>         enable = true
>
>          [[[Units]]]
>             [[[[Groups]]]]
>                 group_fraction     = ppm                #added for CO2
> monitor 11/30/21
>                 group_severt       = µSv
>                 group_conductivity = dSm
>                 group_cpm          = cpm
>          [[[[StringFormats]]]]
>                 ppm                = %.0f  # 12/2/21
>                 cpm                = %.0f
>                 µSv                = %.2f
>                 dSm                = %.2f
>
> and this to units.py:
>
> obs_group_dict = ListOfDicts({
> "signal1"                   : "group_cpm",
>     "signal2"                   : "group_severt",
>
> USUnits = ListOfDicts({
> "group_severt"      : "µSv",
>
> As mentioned earlier, this is working fine in 4.10.2 but I just can't get
> going in 5.1 (pip install). Everything else seems to be working well.
> Any help would be greatly appreciated.
> Cheers,
> Bob
> grattans.org/wx
>
> On Thursday, July 4, 2024 at 3:06:51 PM UTC-4 [email protected] wrote:
>
>> Hello all,
>> I am slowly moving my weewx 4.10.2 ubuntu VP2+ station to an RPI5 with
>> Bookworm. Lacking in indepth knowledge of html and python, I'm having lots
>> of trouble with formats and units. I had it working on the Standard skin
>> (see attache file) but many things have changed on how this is now done.
>> Before I was adding to weewx.conf but it appears more complicated for 5.0.
>> The file shows my present Standard page and then the attempted version in
>> 5.0. I'm not sure how to add the "µ" symbol or to round data with too many
>> decimal places.
>> What I have in 5.0 seems to be running but doesn't look very nice.
>> Could someone please point me in the correct direction? I have looked at
>> the customization section of the wiki but am not sure how to proceed. The
>> Geiger counter data is stored in Signal1 and Signal2 of weewx.sdb.
>>
>> MQTT section from weewx.conf
>>         ##################
>>         ## Radmon+ Geiger counter from emonpi
>>         ##################
>>
>>         [[[gccpm]]]
>>             name = signal1
>>             [[[[message]]]]
>>                 type = individual
>>         [[[gcdose]]]
>>             name = signal2
>>             [[[[message]]]]
>>                 type = individual
>>         ####################################
>>         ## Soil Moisture / Soil Temp from emoncms
>>         ####################################
>>         [[[4103]]]
>>             name = soilMoist1
>>             [[[[message]]]]
>>                 type = individual
>>         [[[4102]]]
>>             name = soilTemp3
>>             [[[[message]]]]
>>                 type = individual
>>         [[[4108]]]
>>             name = signal3
>>             [[[[message]]]]
>>                 type = individual
>>
>> Thanks in advance. Everything is rtunning with no errors so far.
>> 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/b95fcbf4-c577-4908-b941-516dfa21e7e9n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/b95fcbf4-c577-4908-b941-516dfa21e7e9n%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/CAPq0zED%2B%3DOhYBry-J4cLyvzx2oqx5v104Xk_DKZ4YnGLTzj9eA%40mail.gmail.com.

Reply via email to