My thoughts.  You’ll want to hear others.

I would collect indoor temp on another thread and make the substitution in a 
function bound to NEW_LOOP_PACKET.  I typically do this for adding (e.g., 
pm2_5), but replacing should be no different.  You’ll want the separate thread 
to save off the current indoor temp and a time stamp.  When you go to insert it 
in NEW_LOOP_PACKET, if it is too old (by your definition), instead of 
replacing, remove the indoor temp from the packet. 

> On Jun 4, 2020, at 11:34 AM, p q <[email protected]> wrote:
> 
> 
> I've done this for outtemp. Should be possible with inside temp. I modified 
> the driver to do it, but there may be an easier way. 
> https://hackaday.io/project/101680-solar-powered-wifi-temperature-sensor-for-weewx
> 
>> On Thu, Jun 4, 2020 at 11:09 AM 'Peter Fletcher' via weewx-user 
>> <[email protected]> wrote:
>> My (Vantage Pro 2) weather station console is located in my office/computer 
>> room, which is typically the warmest place in my house. It consequently 
>> returns an indoor temperature which is higher than it 'should' be and an 
>> indoor (relative) humidity that is lower than it 'should' be. I do have 
>> sensors in the main part of my house, whose readings are monitored and 
>> stored on the Raspberry Pi on which I also run weewx, and correspond more 
>> closely to the inside temperature and humidity for the house as a whole. I 
>> know that I can fairly easily add the readings returned by the central 
>> sensor to weewx's records and reports, but what I would really like to do is 
>> to substitute them for the misleading values coming from the weather station 
>> console. Is this possible? I am a reasonably competent Python programmer.
>> -- 
>> 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/7800658a-f675-415c-b1f8-eae80f49429bo%40googlegroups.com.
> 
> 
> -- 
> Peter Quinn
> (415)794-2264
> -- 
> 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/CAA1SM22-EGrdP1CwEfh01R1bZ0mSKGJQF0ndS84_FXDiJGGHtw%40mail.gmail.com.

-- 
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/468F3D35-00CF-4CFB-AD88-05EC2DD4862B%40johnkline.com.

Reply via email to