I used Browser.execJS because I wanted to get the time for London and I wasnt sure about how to do it with Date plug=in.
This is all the AJAX I use:
+ System: On start of layout
-> AJAX: Request "https://api.aladhan.com/v1/timingsByCity?city=Blackburn&country=United%20Kingdom&method=2" (tag "")
+ AJAX: On "" completed
-> JSON: Parse JSON string AJAX.LastData
-> TextSunrise: Set text to "Sunrise:" &newline&JSON.Get("data.timings.Sunrise")
-> TextSunset: Set text to "Sunset:"&newline&JSON.Get("data.timings.Sunset")
+ TextTime: Text is "00:00" (Ignore case)
-> Timer: Start Timer "TimerMidnight" for 1 (Once)
-> AJAX: Request "https://api.aladhan.com/v1/timingsByCity?city=Blackburn&country=United%20Kingdom&method=2" (tag "")
heres the link:
api.aladhan.com/v1/timingsByCity
Also will this trigger once?
+ TextTime: Text is "00:00:00" (Ignore case)
rather that "00:00"?