Files
weewx/docs_src/custom/derived.md
Tom Keffer 2fe42433fe Rename docs subdirectories.
docs -> docs_src
html_docs -> docs

This puts the names closer to the end product.
2023-04-04 07:27:42 -07:00

15 lines
695 B
Markdown

# Adding new, derived types
In the section [*Adding a second data source*](../service_engine/#Adding_2nd_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)*](https://github.com/weewx/weewx/wiki/xtypes)
for complete details on how the XTypes system works.