Thank you Gary
Your input is greatly appreciated.
Regards

Wade




On Fri, Oct 11, 2019 at 5:53 PM gjr80 <gjroder...@gmail.com> wrote:

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

-- 
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/CAA%2B5DqxVhZTR0nc_SKRBh-hKKWK_%2BgZ6CHWg%3DJwKo59_602umw%40mail.gmail.com.

Reply via email to