If I am understanding your question correctly, the current temperature can
be obtained from NEW_ARCHIVE_RECORD event:

    def new_archive_record(self, event):
        temperature = event.record['outTemp']
        ...

Is that what you need?

Be aware that the value may be None, or even missing. So a better approach
is:

    def new_archive_record(self, event):
        temperature = event.record.get('outTemp')
        if temperature is not None:
            # Calculate wet bulb temperature
            ...

-tk

On Fri, Apr 24, 2020 at 10:33 AM Bernhard Walser <[email protected]>
wrote:

> Hello Im using a rasperry 3 weewx  v3.9.2 and i want to add some special
> data and also use this for some pin outputs (heating on-of for melting snow
> and so one).
>
> Therefore i installed your filepille extension and add some code.
>
> I now have to import data like outTemp to calculate an wetbulb temperatur.
> I tried many parses and it worked in wxformulas but only for HTML but there
> are no recordet data for images or max min values.
>
> Does anybody know the right import and parsing to put in filepille.py, for
> a value like current.outTemp?
>
> --
> 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/a5b7be97-4dc6-4db1-8cb1-38043aed4812%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/a5b7be97-4dc6-4db1-8cb1-38043aed4812%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAPq0zEDQsC%3DJJYmqvp%3D4n93hWJe6Bh0FrNzwcvNi0EvTb7gynA%40mail.gmail.com.

Reply via email to