Sunrise / sunset code based on location

Do you have a question on how to do something.
Ask in here.
89delta
Posts: 163
Joined: Mon Oct 15, 2012 7:21 pm
Location: Leesburg, GA

Re: Sunrise / sunset code based on location

Post by 89delta »

How would I incorporate your moon class into it lnevo.....thanks for your help.
89delta
Posts: 163
Joined: Mon Oct 15, 2012 7:21 pm
Location: Leesburg, GA

Re: Sunrise / sunset code based on location

Post by 89delta »

Sweet....thank lnevo. Will try it out tonight when i get home.

Sent from my SAMSUNG-SGH-I717 using Tapatalk
89delta
Posts: 163
Joined: Mon Oct 15, 2012 7:21 pm
Location: Leesburg, GA

Re: Sunrise / sunset code based on location

Post by 89delta »

So everything is working correctly with my sketch, Sunrise/sunset, Weather and moon phases. Although i've noticed that the sunrise/sunset times don't really change but by +/- 2 minutes. Is that normal for the most part? My Long/Lat is set to the GBR between Paul Reef and Storm Reef off of Queensland,AU.

sl.Init(-21.285833, 150.999722); // In decimal numbers (i.e. -18.285833, 147.699722)
sl.SetOffset(11,0,11,0); // rise_hour, rise_seconds, set_hour, set_seconds
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Sunrise / sunset code based on location

Post by lnevo »

Yep, try tracking it over the course of a month or two. Area's closer to the equator are going to have the smallest amount of shift daily as the fluctuation is only going to be +/- 2 hours or so over the course of the seasons.
89delta
Posts: 163
Joined: Mon Oct 15, 2012 7:21 pm
Location: Leesburg, GA

Re: Sunrise / sunset code based on location

Post by 89delta »

Ok, thanks for the clarification lnevo. Love everything you guys have done with coding and everything else.

Sent from my SAMSUNG-SGH-I717 using Tapatalk
Post Reply