I use this library to predict the suns location in the sky to position solar cells. It may help with determining some factors that may be useful. One way I see the library as useful is to use the length of day calculation as a template for LED behavior.