Also will this trigger once?
+ TextTime: Text is "00:00:00" (Ignore case)
No, if someone runs your app on a 240 Hz monitor, this event will trigger 240 times per second and send 240 requests to the server.
Also, comparing the time to "00:00:00" to detect the start of a new day is a bad idea, because the app might not be active at that exact second. Instead, save the current day in a variable and compare it every few seconds. If the day has changed - update the variable and send a new request to the server.
As for comparing the time to sunrise - the server returns it in "HH:MM" format, you can use tokenat to extract the hours and minutes from the string.
Local string sunriseTime = 07:25
Local string currentTime = 04:07
Local number minutesToSunrise = 0
-----> System: Set minutesToSunrise to (int(tokenat(sunriseTime, 0, ":"))-int(tokenat(currentTime, 0, ":")))×60 + (int(tokenat(sunriseTime, 1, ":"))-int(tokenat(currentTime, 1, ":")))
--------+ If minutesToSunrise ≥ 0
---------> Text: Set text to int(minutesToSunrise÷60) & " hours " & zeropad(minutesToSunrise%60, 2) & " minutes to sunrise"
--------+ Else
---------> Text: Set text to "Past the sunrise time"
You can copy/paste this into your event sheet:
{"is-c3-clipboard-data":true,"type":"events","items":[{"eventType":"block","conditions":[],"actions":[],"children":[{"eventType":"variable","name":"sunriseTime","type":"string","initialValue":"07:25","comment":"","isStatic":false,"isConstant":false},{"eventType":"variable","name":"currentTime","type":"string","initialValue":"04:07","comment":"","isStatic":false,"isConstant":false},{"eventType":"variable","name":"minutesToSunrise","type":"number","initialValue":"0","comment":"","isStatic":false,"isConstant":false},{"eventType":"block","conditions":[],"actions":[{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"minutesToSunrise","value":"(int(tokenat(sunriseTime, 0, \":\"))-int(tokenat(currentTime, 0, \":\")))*60 +\r\n(int(tokenat(sunriseTime, 1, \":\"))-int(tokenat(currentTime, 1, \":\")))\r\n"}}],"children":[{"eventType":"block","conditions":[{"id":"compare-eventvar","objectClass":"System","parameters":{"variable":"minutesToSunrise","comparison":5,"value":"0"}}],"actions":[{"id":"set-text","objectClass":"Text","parameters":{"text":"int(minutesToSunrise/60) & \" hours \" & zeropad(minutesToSunrise%60, 2) & \" minutes to sunrise\""}}]},{"eventType":"block","conditions":[{"id":"else","objectClass":"System"}],"actions":[{"id":"set-text","objectClass":"Text","parameters":{"text":"\"Past the sunrise time\""}}]}]}]}]}