Hello, Peter,

Under normal circumstances, an archive record starts in one of two ways:

1. If hardware generation is supported, then the hardware provides it.
2. If not, then it is extracted out of accumulated LOOP packets, which, in
turn, come from the hardware.

Either way, whether or not an observation type appears depends entirely on
whether the hardware supplies it. If the device driver doesn't emit inTemp,
then it will not appear in the archive records. There is no other source
for it.

Other types are synthesized (e.g., dewpoint) from measured observation
types, but that's not the case with inTemp.

Of course, I can't speak for a user supplied service. It may supply inTemp
in some other way or, indeed, it could even delete it.

Hope this answers your question.

-tk

On Tue, Apr 8, 2025 at 11:22 AM 'Peter Fletcher' via weewx-development <
weewx-development@googlegroups.com> wrote:

> Are there any circumstances under which event.record in the event
> structure passed to the NEW_ARCHIVE_RECORD handler would not be expected to
> contain the key 'inTemp' (or, indeed, any other key corresponding to a
> field in the database)? I ask because I am seeing some odd behavior in a
> user-written Service. Basically, under certain rare circumstances (which
> may be having to do with the service processing multiple Archive records
> before any Loop records are processed), the service code errors out
> reporting that the 'inTemp' key is not found in the dictionary.
>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to weewx-development+unsubscr...@googlegroups.com.
> To view this discussion visit
> https://groups.google.com/d/msgid/weewx-development/eeefc048-1139-497f-9cf3-827c2df27b6cn%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-development/eeefc048-1139-497f-9cf3-827c2df27b6cn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/weewx-development/CAPq0zECR5oiEWuSFdCy8ZSRJQ-Er%3Dxyh9QSroKOdbiZscuLJAw%40mail.gmail.com.

Reply via email to