I'm being an idiot. It's no sweat to add a new field to database and 
mucking around changing the units on existing field is pointless. I've 
added new fields.

No need for a response.

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

> 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/99dc7eaa-dd54-4bd6-9bdd-2af4795c98cfn%40googlegroups.com.

Reply via email to