Page 1 of 1
Sunrise/Sunset Times
Posted: Fri Dec 21, 2018 12:19 am
by Cheesegeezer
Is there a way to get and display the sunset and sunrise Times from Demopad?
Thanks
Re: Sunrise/Sunset Times
Posted: Fri Dec 21, 2018 10:55 am
by DemoPad
Not directly no, but you should be able to create a Centro macro which runs at sunset, which sets a label to the current time, and similarly at sunrise - that at least would display yesterdays times.
Re: Sunrise/Sunset Times
Posted: Fri Dec 21, 2018 12:55 pm
by Cheesegeezer
Thanks, that could work. It’s only a couple of minutes after all.
I found a site that i can actually plug in a url and it returns a JSONP. Is there a way to capture this information and then use 2 way with regex to set a label.
Here is the URL
https://api.sunrise-sunset.org/json?lat=xxxxx&lng=xxxxx
Thanks