Good start!

I can see a few issues here.

1. All xtype extensions must be registered, otherwise the system has no way
of knowing of their existence. See the section *Registering your subclass
<https://github.com/weewx/weewx/wiki/WeeWX-V4-user-defined-types#registering-your-subclass>*
for
how to register your xtype.

2. From what I can tell, your extension only returns a value for 'GTSdate',
never for 'GTS'.

3. I don't quite follow the logic of the loop in get_scalar(), but it looks
like it is trying to keep a running total of something. Just a warning:
this could be very inefficient because an xtype can potentially get called
many times in a template. Would it be possible to refactor into a database
query?



On Sat, Feb 13, 2021 at 1:05 PM Karen K <[email protected]> wrote:

> And the cheetah generator's result is
>
> Karen K schrieb am Samstag, 13. Februar 2021 um 22:04:36 UTC+1:
>
>> test skin index.html.tmpl
>>
>> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-development/1f9090b4-308a-4029-9d84-fcfba0229171n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-development/1f9090b4-308a-4029-9d84-fcfba0229171n%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/CAPq0zEDVyw%3DHA0r%2BWozz792Y8NLfHGJgzNK6Hg1QKCr%3DkXr6AA%40mail.gmail.com.

Reply via email to