I have the sunrise time on a CP that I’m anal enough to want to correct for the sun’s rise over the mountain range that delays
it by 17 mins.
Maybe someway to do that with a script?
Thanks,
Carl
import datetime as dt
adjusted_sunrise = indigo.server.calculateSunrise() + dt.timedelta(minutes=17)
result = dt.datetime.strftime(adjusted_sunrise, "%-I:%M")
indigo.variable.updateValue(VARIABLEIDHERE, value=result)
Users browsing this forum: No registered users and 0 guests