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 [email protected] 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/23fa9c2e-9111-4e91-a5ea-1b12d5134697n%40googlegroups.com.