This script change my daylight swith time depnedent of the season in the system:
- Code: Select all
# Indigo no longer supports execution of embedded AppleScripts. For help
# translating AppleScripts to python see: http://indigodomo.com/applescript
#
# The original AppleScript was:
#
# tell application "IndigoServer"
# if value of variable "strSeason" = "Winter" then
# set value of variable "dtSunrise" to (weekday of (calculate sunrise) as string) & " " & (time string of ((calculate sunrise) + (30 * minutes)) as string)
#
# set value of variable "dtSunset" to (weekday of (calculate sunset) as string) & " " & (time string of ((calculate sunset) - (30 * minutes)) as string)
# else if {"Spring", "autumn"} contains value of variable "strSeason" then
# set value of variable "dtSunrise" to (weekday of (calculate sunrise) as string) & " " & (time string of (calculate sunrise) as string)
#
# set value of variable "dtSunset" to (weekday of (calculate sunset) as string) & " " & (time string of (calculate sunset) as string)
# else -- Summer
# set value of variable "dtSunrise" to (weekday of (calculate sunrise) as string) & " " & (time string of ((calculate sunrise) - (30 * minutes)) as string)
#
# set value of variable "dtSunset" to (weekday of (calculate sunset) as string) & " " & (time string of ((calculate sunset) + (30 * minutes)) as string)
# end if
#
# end tell