chrisn-au/ninja_timeofday — pull request #2 by dannyclark (2014-01-10 23:10:01+00:00)
Title: fix a typo, add some logging, try next day if times are in past

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. I've also moved the daily recalc to midnight+5mins instead of midnight+50s (to make it work here in London)
* 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.