Can the weather conditions (clear,cloudy etc) be accessed in a script

Hi,

When I log into Vera my local temp and weather conditions are shown on the upper right hand side of the screen. Is it possible to read them as variables in a script?

I want to use the clear/cloudy conditions to modify the trigger time of a scene.

I was planning on using the Wundergound plug-in however if Vera already has the information I would prefer to go directly to Vera.

Thanks

JohnRob

Hi JohnRob

Yes - go to the advanced tab for device. Hover above the variable you want to access (for example condition" and it will highlight the service. In the case of the weatherunderground app, you can access the [Sky] condition by:

local SENSOR = “urn:pnp-micasaverde-com:serviceId:Weather1”
local Condition = luup.variable_get(SENSOR,“Condition”,DEV_ID )

Be sure to replace DEV_ID with the actual device # found in the “advanced tab.” The Condition returns a string with [for example] “cloudy” or “sunny” etc. You can do this for any returned variable.

Z

@Zoro,

Thank you, the syntax you provided will definitely help.

BR

JohnRob