Hello,
I have installed the Google Weather plugin. This is working fine, can see all the items on the dashboard and can create an event when temperatur drops below a certain degree for example.
However, following code is not working :
local lul_cond=luup.variable_get(“urn:demo-micasaverde-com:device:weather:1”,“Condition”,6)
luup.log(lul_cond)
if( lul_cond == “Icy” ) then
**** do something ***
end
In the log I can see that lul_cond has value ‘null’.
Has anybody some experience in checking the ‘Condition’ and possibly know what I am doing wrong?
I’ve tweaked both the Weather Plugin Wiki page (on code.mios.com) as well as the Luup_Variables wiki page in the Main Wiki, to better link these together.
in other words, it has an extra “[tt]upnp-[/tt]” bit on the front. I believe I previously had 1/2 the code using it and 1/2 not, so the change was to align to a single serviceId, lest they every actually validate it