Hmm. I took another look at the code and I see there's a dictionary in 
units.py. I don't really want to modify the core code if I can avoid it. Is 
there a way to override the obs_group_dict? 

I also see that there are already PM2.5 and PM10 variables defined in 
group_concentration. I'll take another look at using these rather than 
rolling my own.

On Saturday, May 15, 2021 at 11:00:29 AM UTC-7 [email protected] wrote:

> Hi,
>
> I've built my own air quality meter and I'm hooking it up to Weewx. I'm 
> abusing the leafTemp1 and leafTemp2 fields to store PM2.5 and PM10 values. 
> I've customized the Acurite driver to put these into the database. I have 
> several other non-standard sensors that I added years ago to this driver 
> and I'm planning on forking the driver as soon as I've done this particular 
> customization. That's not the problem.
>
> The problem I'm having is that there's a conversion going on between degC 
> and degF for my data that's not a temperature. I can't find where the 
> fields declare what unit group they are part of. I can't find it in the 
> documentation or through a quick look in the codebase.
>
> I suppose what I should do is use the new tools to add 2 new fields and 
> remove the 2 leafTemp fields that I don't think I'd ever use, but I think 
> it would be easiest to just re-use the leafTemp fields if I change the unit 
> group.
>
> Worst come to worst, I have a super klugy solution of doing a degF to degC 
> conversion in the driver before I save the data, but that's too much a hack 
> even for me.
>
>

-- 
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/62dd2b7f-582a-4922-aff0-3ef5bdf4b82bn%40googlegroups.com.

Reply via email to