Sunrise/Sunset Times

Forum to ask for any help
Post Reply
User avatar
Cheesegeezer
Posts: 47
Joined: Wed Mar 02, 2016 10:15 pm
Location: On an oil rig somewhere

Sunrise/Sunset Times

Post by Cheesegeezer » Fri Dec 21, 2018 12:19 am

Is there a way to get and display the sunset and sunrise Times from Demopad?

Thanks

User avatar
DemoPad
Site Admin
Posts: 769
Joined: Thu Jun 14, 2012 10:46 am
Contact:

Re: Sunrise/Sunset Times

Post by DemoPad » Fri Dec 21, 2018 10:55 am

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.

User avatar
Cheesegeezer
Posts: 47
Joined: Wed Mar 02, 2016 10:15 pm
Location: On an oil rig somewhere

Re: Sunrise/Sunset Times

Post by Cheesegeezer » Fri Dec 21, 2018 12:55 pm

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

Post Reply