Files
weewx/docs_src/custom/derived.md
Tom Keffer 3147301106 Updated docs to mkdocs v1.5.
Mostly involved changing links to suppress warnings
2023-11-19 16:18:49 -08:00

692 B

Adding new, derived types

In the section Adding a second data source, we saw an example of how to create a new type for a new data source. But, what if you just want to add a type that is a derivation of existing types? The WeeWX type dewpoint is an example of this: it's a function of two observables, outTemp, and outHumidity. WeeWX calculates it automatically for you.

Calculating new, derived types is the job of the WeeWX XTypes system. It can also allow you to add new aggregation types.

See the Wiki article Extensible types (XTypes) for complete details on how the XTypes system works.