the commented out lines are ref of the original formulas i'm trying to implement. i tried breaking them into summing variables in an effort to help with the multiply by error. i'm pretty sure i'm not handing the indigo variables properly, just can't figure it out...

Script Error schedule "weather update every 15min" embedded script error:

Script Error can't multiply sequence by non-int of type 'float'

Script Error Exception Traceback (most recent call shown last):

embedded script, line 76, at top level

TypeError: can't multiply sequence by non-int of type 'float'

- Code: Select all
`if cnthumid == "- data unavailable -":`

vardew = wthrStation.states['dewPointC']

vartemp = wthrStation.states['temperatureC']

import math

argdew = math.exp((17.625 * vardew)/(243.04 + vardew)). --- THIS IS LINE 76

argtem = math.exp((17.625 * vartemp)/(243.04 + vartemp))

cnthumid = round(100 * (argdew / argtem), 2)

#cnthumid = 100 * {math.exp[17.625 * wthrStation.states['dewPointC']/(243.04 + wthrStation.states['dewPointC'])] / math.exp[17.625 * wthrStation.states['temperatureC']/(243.04 + wthrStation.states['temperatureC'])]}

#ref RH = 100 × {exp[17.625 × Dp/(243.04 + Dp)]/exp[17.625 × T/(243.04 + T)]}.

indigo.variable.updateValue(1163325337, "alt")

else:

indigo.variable.updateValue(1163325337, "")