Can somebody share the code to get only the local current temperature value from the following XML file:
https://forecast.weather.gov/MapClick.php?lat=37.5237&lon=-122.2785&unit=0&lg=english&FcstType=dwml
Thank you in advance.
Can somebody share the code to get only the local current temperature value from the following XML file:
https://forecast.weather.gov/MapClick.php?lat=37.5237&lon=-122.2785&unit=0&lg=english&FcstType=dwml
Thank you in advance.
OK, Iām a noob, so pardon meā¦
BUT. I needed the temperature for some codeā¦
i installed the āVirtual Outdoor Temperature Sensorā (from APPS)
this gets the temp from that āsensorā (which gets it from the web)
local DEVICE_NO = 30 ā the virtual temp sensor device number
local LS_SID = āurn:upnp-org:serviceId:TemperatureSensor1ā ā the ID
local currentLevel = luup.variable_get (LS_SID, āCurrentTemperatureā, DEVICE_NO) or 0
currentLevel = tonumber(currentLevel)
i know itās not what you asked for, but returns the same result⦠the local temp.
Iāll look at the logs, maybe i can see exactly that the VOTS calls.
Iād like to be able to use my local outdoor temperature in Reactor scripts, but donāt know if Vera keeps this information available in a variable.
I do see the current temp outside shown on the Vera UI, so itās got to be coming from somewhere. Is that data exposed in Luup??
nope. This icon on the right is polled from by the vera web server from its cloud server. It is not done by the luup engine and is therefore not available in luup. You can certainly use a weather plugin to do that. (i.e Darksky)
Yep, in the intervening minutes, I discovered DarkSky (comes highly recommended!) and have it installed. Will do the trick for what little is needed.
Thanks!
DarkSky is excellent! @reneboer has done the community a real service!
Best Home Automation shopping experience. Shop at Ezlo!
Ā© 2024 Ezlo Innovation, All Rights Reserved. Terms of Use | Privacy Policy | Forum Rules