I might try that, in the meantime I patch wxservices.py with 
def calc_extraTemp1(self, data, data_type):
        if 'inTemp' in data and 'outTemp' in data:
           try:
                data['extraTemp1']= round(data['inTemp'] - data['outTemp'],1
)
           except:
                pass


I needed to use the try/except as it was crashing if there was 
incorrect/null data in outTemp. This worked perfectly in 3.5, now I'm back 
to having problems with F -> C conversion. My db is in MetricWX, 
It appears that WeeWx is still working with degF, before conversion, 

Data InTemp OutTemp CalcDifff 
ActDiff InF OutF DiffF DiffFtoC 
2017-03-08 23:31:00  22.4        9.1         -4.5              22.40 9.10 
-4.50 
13.3 72.32 48.38 23.94 -4.47777777777778 
2017-03-08 23:41:00  22.4        9.1         -4.5              22.40 9.10 
-4.50 
13.3 72.32 48.38 23.94 -4.47777777777778 
2017-03-08 23:51:01  22.4        9.1         -4.5              22.40 9.10 
-4.50 
13.3 72.32 48.38 23.94 -4.47777777777778 
Is it anything to do with changes related to the wrm200 driver?

On Wednesday, 8 March 2017 23:55:04 UTC, gjr80 wrote:
>
> Hi,
>
> One approach for a simple calculation like this could be to use the 
> StdCalibrate service to set extraTemp1. In weewx.conf something 
> like(untested):
>
> [StdCalibrate]
>     [[Corrections]]
>         extraTemp1 = inTemp - outTemp
>
> This will not be overwritten during upgrade and should achieve the same 
> result. One thing to be aware of when using temperature differences is that 
> weewx unit conversion will not work on a temperature difference. For 
> example, if the driver for your station emits F and your database uses US 
> units, but you try to display extraTemp1 in C it will be wrong. If you only 
> display F you will be fine.
>
> Gary
>
>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to