chrisn-au/ninja_timeofday — pull request #1 by dannyclark (2014-01-10 09:12:31+00:00)
Title: fix daily recalc & cope with times in the past from SunCalc & add logging

Hi,

Would appreciate it if you can merge these changes.

* The daily recalc wasn't happening, I think because of a typo, it was calling the updateNinja function instead of the setdayTimes function.
* SunCalc sometimes returns times in the past as well as in the future: in this case, I call it again for 1 day later and get the next time for the next day (which is in the window of the next 24 hours).
* I've added some logging, which I think will help people diagnose whether it's working for them. Hope it's no too verbose.

Thanks,
Dan.

n.b. I don't know why the 2nd commit went in as jzGreen. Both were me. I think possibly because I did it from my ninjablock and maybe there's some residue of git config on there from the base install.