Yes, of course, your assumption is right. I looked into hilo.inc of the Seasons skin and tried to do the same for "my_binding".
[email protected] schrieb am Mittwoch, 23. November 2022 um 22:40:39 UTC+1: > Instead, you'll have to break it apart and use getattr() (NOT TESTED): > > getattr("day(data_binding='my_binding')", "myobs").max > I tested it with the string <p>$getattr("day(data_binding='snmp_binding')","upsOutputVoltage").max</p> Unfortunately it did not work. The error messages were: Nov 24 06:40:54 LokalWiki weewx[111567] ERROR weewx.cheetahgenerator: Evaluation of template /etc/weewx/skins/airQ/IT.html.tmpl failed with exception '<class 'AttributeError'>' Nov 24 06:40:54 LokalWiki weewx[111567] ERROR weewx.cheetahgenerator: **** Ignoring template /etc/weewx/skins/airQ/IT.html.tmpl Nov 24 06:40:54 LokalWiki weewx[111567] ERROR weewx.cheetahgenerator: **** Reason: 'str' object has no attribute 'upsOutputVoltage' Nov 24 06:40:54 LokalWiki weewx[111567] ERROR weewx.cheetahgenerator: **** Traceback (most recent call last): Nov 24 06:40:54 LokalWiki weewx[111567] ERROR weewx.cheetahgenerator: **** File "/usr/share/weewx/weewx/cheetahgenerator.py", line 348, in generate Nov 24 06:40:54 LokalWiki weewx[111567] ERROR weewx.cheetahgenerator: **** unicode_string = compiled_template.respond() Nov 24 06:40:54 LokalWiki weewx[111567] ERROR weewx.cheetahgenerator: **** File "cheetah__etc_weewx_skins_airQ_IT_html_tmpl_1669268454_729354_33635.py", line 550, in respond Nov 24 06:40:54 LokalWiki weewx[111567] ERROR weewx.cheetahgenerator: **** AttributeError: 'str' object has no attribute 'upsOutputVoltage' I checked against <p>$day(data_binding='snmp_binding').upsOutputVoltage.max</p> and that is compiled without errors. The method, the old Seasons skin of WeeWX 4.5 and before did it, works, too. I hope you have some idea. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/79f3ffb3-9497-4297-932c-da302ac0eee2n%40googlegroups.com.
