ver 1.4.2 rewrote to detect day ,night & twilight

This rewrite auto detects day, night and twilight conditions
automatically.  See Readme.txt for details