Hi,

Interesting project, I’ll make no comment on accuracy/usefulness (what happens 
for negative temperature or temperatures off the UV scale for example), guess 
some testing and development will show one way or another.

As for your questions these can be easily done, depending on exact 
requirements, without changing any python code. The StdCalibrate service 
(http://weewx.com/docs/usersguide.htm#StdCalibrate ) is your friend. You can 
use a ‘correction’ to alter an observation. So to assign you ‘UV’ value to 
extraTemp1 you could do something like this under [[Corrections]] (untested):

[[Corrections]]
    extraTemp1 = UV

you can even take care of your negative sign with:

     extraTemp1 = -UV

You can do more complex corrections as long as it can be expressed in a single 
line of python code, for example if a sensor sometime fails and provides a 
negative value you can filter those values out and set the observation to None 
(The python value None is used to typically represent an observation for which 
a sensor is present but there is no valid reading) using something like:

    extraTemp2 = sensor1 if sensor1 >= 0 else None

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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/44f4de5a-414f-401a-aee7-0765eea028c0%40googlegroups.com.

Reply via email to