This code relies on services from several resources, including SunCalc. It is all available through the public domain but has simply been collected here for simplicity. Please note that there are licensing and copyright restrictions on its use, as well as limitations to liability should you inappropriately use the code in a way that is unintended. This page is intended for private, personal, professional use only.