I tried $getVar('day(data_binding="my_binding").myobs).max. This results in the error message ERROR weewx.cheetahgenerator: **** Reason: cannot find 'day(data_binding="my_binding")'. I guess that is not the right way to do it. So how do I specify a binding if using $getVar()?
--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/8553aeba-a233-4eca-9c7c-abd9b87d489en%40googlegroups.com.
Instead, you'll have to break it apart and use getattr() (NOT TESTED):getattr("day(data_binding='my_binding')", "myobs").max
and that is compiled without errors.
The method, the old Seasons skin of WeeWX 4.5 and before did it, works, too.