I'm trying to see if it's possible to get the $current value from a dynamic 
list. Take this example:

skin.conf contains:

    station_observations = "barometer", "visibility", "cloudbase", 
"dewpoint", "humidity", "rain", "UV", "radiation"


Within a skin tmpl file, I have this:

            #for $obs in $Extras.station_observations
            "$obs": "$current.$obs",
            #end for


It returns this:

"barometer": "<weewx.tags.CurrentObj object at 0x7f140ec75350>.barometer", 
"visibility": "<weewx.tags.CurrentObj object at 0x7f140ec75790>.visibility", 
"cloudbase": "<weewx.tags.CurrentObj object at 0x7f140ec75350>.cloudbase", 
"dewpoint": "<weewx.tags.CurrentObj object at 0x7f140ec75790>.dewpoint", 
"humidity": "<weewx.tags.CurrentObj object at 0x7f140ec75350>.humidity", 
"rain": "<weewx.tags.CurrentObj object at 0x7f140ec75790>.rain",
"UV": "<weewx.tags.CurrentObj object at 0x7f140ec75350>.UV", 
"radiation": "<weewx.tags.CurrentObj object at 0x7f140ec75790>.radiation",


Not the expected output. Is it possible to have this type of dynamic lookup 
with $current?

Thanks

Reply via email to