and corresponding icons I use.
Hoping I can revise my script to find certain words in a variable and set my icon variable accordingly.
e,g, precip, mist to simply mist.
Here's the script I've been trying.
- Code: Select all
theText = indigo.variables[175134881].value
if "Clear" in theText:
indigo.variable.updateValue(175134881, value="Sunny")
elif "Cloudy" in theText and "Mostly" in theText:
indigo.variable.updateValue(175134881, value="Cloudy_Mostly")
Thanks,
Carl