I download the profile from here:
http://tasker.wikidot.com/sunrise-and-sunset-times
log:
http://dl.dropbox.com/u/20231158/log.txt
description:
Profile: Sunshine - Check (55)
Time: From 00:00 Till 00:01
Enter: Sun Data (52)
A1: Get Location [Source:Net Timeout (Seconds):30 Continue Task
Immediately:Off]
A2: Variable Split [Name:%LOC Splitter:, Delete Base:Off]
A3: Variable Split [Name:%DATE Splitter:- Delete Base:Off]
A4: HTTP Get [Server:Port:
www.earthtools.org Path:/sun/
%LOC1/%LOC2/%DAYM/%DATE1/-5/1 Attributes: Timeout:12 Mime Type:text/
xml Output File:]
A5: Variable Set [Name:%HTTPD0 To:%HTTPD Do Maths:Off Append:Off]
A6: Variable Split [Name:%HTTPD0 Splitter:</sunrise> Delete Base:Off]
A7: Variable Split [Name:%HTTPD01 Splitter:<sunrise> Delete Base:Off]
A8: Variable Set [Name:%Sunrise To:%DATE %HTTPD012 Do Maths:Off
Append:Off]
A9: Variable Split [Name:%HTTPD0 Splitter:</sunset> Delete Base:Off]
A10: Variable Split [Name:%HTTPD01 Splitter:<sunset> Delete Base:Off]
A11: Variable Set [Name:%Sunset To:%DATE %HTTPD012 Do Maths:Off
Append:Off]
A12: Variable Clear [Name:%HTTPD+ Pattern Matching:On]
A13: Variable Clear [Name:%LOC1 Pattern Matching:Off]
A14: Variable Clear [Name:%LOC2 Pattern Matching:Off]
A15: Variable Clear [Name:%DATE+ Pattern Matching:On]
A16: Variable Convert [Name:%Sunrise Function:Date Time to Seconds
Store Result In:%SunriseMin]
A17: Variable Convert [Name:%Sunset Function:Date Time to Seconds
Store Result In:%SunsetMin]
A18: Flash [Text:Sunshine Data retrieved for %LOC
%Sunrise - %Sunset Long:On]
Exit: Sun Calendar (53)
A1: Variable Set [Name:%DAYSTART To:%SunriseMin / 60 - %TIMES / 60 Do
Maths:On Append:Off]
A2: Variable Set [Name:%DAYLENGTH To:%SunsetMin / 60 - %SunriseMin /
60 Do Maths:On Append:Off]
A3: Variable Set [Name:%DAYSTART To:%DAYSTART + 1440 Do Maths:On
Append:Off] Variable Set [ %DAYSTART < 0 ]
A4: Variable Split [Name:%DAYSTART Splitter:. Delete Base:Off]
A5: Variable Split [Name:%DAYLENGTH Splitter:. Delete Base:Off]
A6: Calendar Insert [In / For (Minutes):%DAYSTART1 / %DAYLENGTH1
Calendar:Google:Tasker Title:Daytime Description: Location:
Available:Off]
A7: Variable Clear [Name:%DAY* Pattern Matching:On]
A8: Variable Clear [Name:%SunriseMin Pattern Matching:Off]
A9: Variable Clear [Name:%SunsetMin Pattern Matching:Off]
A10: Flash [Text:Sunshine Data saved to Calender Long:On]