Hi,

As long as the inDewpoint value being saved in your archive is consistemt 
with the unit system used by your archive you will not have to worry abput 
converting anything in your archive, you can easily get weeWX to take care 
of it. What inDewpoint values are saved in your archive? F or C? What unit 
system is being used by your database? You can check your unit system by 
looking at the target_unit option under the [StdConvert] section of 
weewx.conf. If it is US then your inDewpoint needs to be stored in F, 
otherwise it needs to be stored in C. If inDewpoint is being stored 
consistent with your unit system that is good. Nothing else needs to be 
done to the archive. If it is not stored correctly (eg C in a US unit syste 
or F in a METRIC or METRIC_WX unit system then you will need to convert you 
inDewpoint 
values in your archive table.

Working on the basis that it is stored correctly, you can easily work 
around the lack of inDewpoint (also assuming that is the field you used in 
your archive) in units.py by adding the following to bin/user/extensions.py:

import weewx.units weewx.units.obs_group_dict['inDewpoint'] = 
'group_temperature'
weewx.units.USUnits['inDewpoint'] = 'degree_F' 
weewx.units.MetricUnits['inDewpoint'] = 'degree_C'

Stop then start weeWX and you should now be able to use inDewpoint just as 
for any other observation.

Gary

On Monday, 24 April 2017 17:51:12 UTC+10, Cameron D wrote:
>
> I came across a problem trying to use the *inDewpoint *value.  (weewx 
> 3.7.1)
>
> It is built into wxservices and wxformulas, but does not have an entry in 
> the  *obs_group_dict *list in units.py, and so always generates results 
> in Fahrenheit.
>
> Now that I have managed to get it working, is there an easy way to get the 
> archive repopulated with sensible values?
>
> I could fix the F to C conversion with simple sql code, but I have months 
> of null entries because I used "indewpoint" instead of "inDewpoint" and 
> thought I was going to have to implement it by my own extension.
>

-- 
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