It's not specially an Indigo 6 question but does anybody know how I can get
the Sunrise and Sunset time info in a Control page?
Thanks for the help and kind regards,
John
tell application "IndigoServer"
set value of variable "sunrise" to "Sunrise: " & (weekday of (calculate sunrise) as string) & " " & (time string of (calculate sunrise) as string)
set value of variable "sunset" to "Sunset: " & (weekday of (calculate sunset) as string) & " " & (time string of (calculate sunset) as string)
end tell
tell application "IndigoServer"
if the (value of variable "isDaylight") is "false" then
set value of variable "LeftSun" to "Sunrise: " & (weekday of (calculate sunrise) as string) & " " & (time string of (calculate sunrise) as string)
set value of variable "RightSun" to "Sunset: " & (weekday of (calculate sunset) as string) & " " & (time string of (calculate sunset) as string)
else if the (value of variable "isDaylight") is "true" then
set value of variable "LeftSun" to "Sunset: " & (weekday of (calculate sunset) as string) & " " & (time string of (calculate sunset) as string)
set value of variable "RightSun" to "Sunrise: " & (weekday of (calculate sunrise) as string) & " " & (time string of (calculate sunrise) as string)
end if
end tell
ckeyes888 wrote:Here's a couple icons that are sized for your page if you like.
Users browsing this forum: No registered users and 5 guests