Gary, Thanks! Just tried this and works like a charm. Data from outTemp isn't needed because of the inaccurate readings, so i used the first option. Really grateful for the help.
Kind regards Steven Op woensdag 18 november 2020 om 22:18:22 UTC+1 schreef gjr80: > Hi, > > If a driver does not support sensor mapping you can in some cases use the > StdCalibrate service to achieve a similar outcome. For example, to have > your second sensor fill outTemp/outHumidity you could place something like > the following under [StdCalibrate] in weewx.conf (untested): > > [StdCalibrate] > [[Corrections]] > outTemp = extraTemp1 > outHumidity = extraHumid1 > > Of course this relies on the driver placing the data you seek in > extraTemp1 and extraHumid1. This will result in your extraTemp1 value > appearing in both outTemp and extraTemp1. You could use a further > correction to set extraTemp1 to None, but that would interfere with archive > records as corrections are applied to both loop packets and archive > records. Likewise for extraHumid1. > > If you did want to keep your original outTemp data you could first place > it in another field, say extraTemp2 by including something like: > > [StdCalibrate] > [[Corrections]] > extraTemp2 = outTemp > outTemp = extraTemp1 > > If saving the original outTemp to database is not important you could > instead save it to a new field, say outTemp_orig. This would make the > current (original outTemp) data available in reports via the > $current.outTemp_orig tag but it would not be saved to database. > Againlikewise for outHumidity. > > There are a couple of caveats though; first you need to be using WeeWX > v4.2.0 or later. Second is that order matters with the lines under > [[Corrections]], corrections are applied in the order they appear. > > Gary > > On Thursday, 19 November 2020 at 01:36:08 UTC+10 steven...@gmail.com > wrote: > >> Hello >> >> My main unit from the Garni935pc gets too hot when the sun is all out. So >> i tried to make my second sensor in the Stevenson screen make the default >> sensor for reporting to website/WU/WOW but can't make it to work. >> >> I tried the following: >> >> [WS6in1] >> driver = user.ws6in1 >> [[sensor_map]] >> outTemp = extraTemp1 >> outHumidity = extraHumid1 >> >> But makes no difference. How do i make this work? >> >> Kind regards >> Steven >> >> >> -- 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/87b5fa97-99dc-4835-9d3b-900e5de76340n%40googlegroups.com.