Thanks! The sensor data is already being collected and stored by another systemd-controlled process, so I would just need to modify that slightly to communicate it to the weewx function - probably via a file in /var/tmp. I think that binding to NEW_LOOP_PACKET does what I want better than just archiving the corrected data and modifying a skin for display. I may or may not save the console values in one of the 'extra' slots.
On Thursday, June 4, 2020 at 3:08:05 PM UTC-4, John Kline wrote: > > 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 <peterq...@gmail.com <javascript:>> > 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 < > weewx...@googlegroups.com <javascript:>> 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 weewx...@googlegroups.com <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/weewx-user/7800658a-f675-415c-b1f8-eae80f49429bo%40googlegroups.com >> >> <https://groups.google.com/d/msgid/weewx-user/7800658a-f675-415c-b1f8-eae80f49429bo%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > > > -- > 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 weewx...@googlegroups.com <javascript:>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/CAA1SM22-EGrdP1CwEfh01R1bZ0mSKGJQF0ndS84_FXDiJGGHtw%40mail.gmail.com > > <https://groups.google.com/d/msgid/weewx-user/CAA1SM22-EGrdP1CwEfh01R1bZ0mSKGJQF0ndS84_FXDiJGGHtw%40mail.gmail.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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/3e2696ec-c40b-42d5-8f63-65b4de28c584o%40googlegroups.com.