I want the script to update the yearlyHighTemp and yearlyLowTemp as the temperature outsides rises above or below the current hig and low. This is what I have so far:
- Code: Select all
nowTemp = indigo.variables[1403030637].value
yearHigh = indigo.variables[762466133].value
yearLow = indigo.variables[128906629].value
if nowTemp > yearHigh
indigo.variable.updateValue(762466133, value=float(nowTemp.value))
I get the following error when I try it:
Script Error embedded script: invalid syntax
Script Error around line 5 - "if nowTemp > yearHigh"
Can someone please help?
Thanks in advance.