Customizable timespan tags in Cheetah

59 views
Skip to first unread message

Karen K

unread,
Dec 31, 2023, 9:51:29 AM12/31/23
to weewx-user
If I want to make a skin customizable I can use $getVar(). So instead of writing

$day.radiation.max

I can write

#set $obs = 'day.radiation.max'
...
$getVar($obs)

But how to do that with other bindings than the standard binding?

I tried

#set $obs = 'day(data_binding="xyz_binding").xyz.max'
...
$getVar($obs)

but that does not work (and yes, "xyz_binding" is defined, and there is an observation type "xyz" in it, and $day(data_binding="xyz_binding").xyz.max shows a value).

Is there a way to use a binding, if the tag is defined by an expression?

Remark: These are examples. At the end I want to use it within a #for loop.

michael.k...@gmx.at

unread,
Dec 31, 2023, 11:03:34 AM12/31/23
to weewx-user
I don't know if I got you, but maybe this templates contains what you need or is at least helpful:

Karen K

unread,
Dec 31, 2023, 11:14:09 AM12/31/23
to weewx-user
Thank you

I now see, I asked that question before: https://groups.google.com/g/weewx-user/c/25fDk0RDdAg

Reply all
Reply to author
Forward
0 new messages