I'm about to roll everything from Vera Plus to a Hubitat hub. I have a weather station that publishes the last hour windspeed gust to a file on my website. I have a scene setup in Vera to look every 10 minutes at the contents of an external file and if its over 15 the condition will come true and the action will be to retract the awning. The luup code is below. Can someone point me in the right direction on how this would be done in Hubitat.
Luup code in my vera today:
local threshold = 15
local a,b = luup.inet.wget "website/vera_windgust_hour.php"
local status = false -- by default, abandon scene execution
if a == 0 and b then
status = tonumber(b: match "%d+%.?%d*") > threshold