1. In most cases, an xtype offers a new type or a new aggregation, in which case it doesn't matter if you prepend or append. This is the case of the examples in the xtype document. However, if an optimization is offered, that is, a specialized version of get_aggregate() then, yes, it should be prepended. I will make the wiki change.
2. I am not aware of a case where it's necessary to insert an xtype between the others. Let me know if I missed something. 3. As I have said repeatedly, V4.x *does less*. It does not "work fine" --- it doesn't work at all. For example, you can't do an aggregate of a synthetic type in V4.x. On Fri, Mar 1, 2024 at 11:49 PM Karen K <kk4468...@gmail.com> wrote: > Tom Keffer schrieb am Samstag, 2. März 2024 um 02:00:54 UTC+1: > > For an aggregate, for your xtype to be used, it must appear *before* > XTypeTable > ... > > > In the Wiki about XTypes <https://github.com/weewx/weewx/wiki/xtypes> all > the examples *append* the XType to the list. Not a single example does it > otherwise. And there are a lot of examples. I must confess I did not > realize that one sentence about prepending the XType there. By now I > thought you wanted users to always *append* their XTypes. And there is no > word that it may be necessary to insert the XType between others. May be > that confused developers. > > I wonder why WeeWX 4.X worked fine without get_aggregate() in XTypeTable. > > -- > 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 on the web visit > https://groups.google.com/d/msgid/weewx-development/1c5b42cc-07c8-4eb8-b83d-af6b077a4b64n%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-development/1c5b42cc-07c8-4eb8-b83d-af6b077a4b64n%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 on the web visit https://groups.google.com/d/msgid/weewx-development/CAPq0zEAWXPATWmFy0iakJDtcAORaiRJWbLqEAG_ersXEH%3DX1aw%40mail.gmail.com.