Gary,
that didn't change anything unfortunally. Still several decimals...
This is how the last lines in my extension.py file looks like now:
import schemas.wview
schema_with_lightning_strikes = schemas.wview.schema + [('avg_distance',
'REAL'), ('lightning_strikes', 'REAL')]
import weewx.units
weewx.units.obs_group_dict['avg_distance'] = 'group_distance'
weewx.units.obs_group_dict['lightning_strikes'] = 'group_count'
Is this how it's supposed to look now?
Do I have to change anything in the weewx.conf file? Or in units.py maybe?
Mikael
Den fredag 12 juli 2019 kl. 00:39:30 UTC+2 skrev gjr80:
>
> Hi Mikael,
>
> Ah, I thought the only issue was with distance. Just as you did for
> avg_distance you also need to do the same for lightning_strikes. In this
> case there are no unit conversions that need to be defined
> (lightning_strikes is just a count so there are no other units to convert
> to/between) but you do need to give WeeWX the ability to format and label
> tags using lightning_strikes. This time we want to use group_count, so add
> something like the following to the bottom of extensions.py:
>
> weewx.units.obs_group_dict['lightning_strikes'] = 'group_count'
>
> Again restart after saving the changes.
>
> Gary
>
>
--
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/5455a5b4-512a-4bb4-a988-66dccbb71d0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.