micropython-lib icon indicating copy to clipboard operation
micropython-lib copied to clipboard

New module `suntime` for sunrise and sunset time

Open lorcap opened this issue 4 years ago • 4 comments

Approximated calculation of sunrise and sunset time. Adapted from https://github.com/SatAgro/suntime.

lorcap avatar Sep 27 '21 19:09 lorcap

This looks like a useful addition, however SatAgro/suntime is LGPL which is incompatible with micropython-lib's MIT license...

mattytrentini avatar Sep 28 '21 00:09 mattytrentini

I started from scratch with the formula provided by Wikipedia's Sunrise equation and it works. I'll provide a new clean and neat code under MIT license in the following days.

lorcap avatar Sep 28 '21 21:09 lorcap

I just pushed a commit with the new module implementation. I rebased it on datetime branch (see PR #449) because it depends on that.

lorcap avatar Oct 06 '21 10:10 lorcap

Just rebased on top of datetime.

lorcap avatar Oct 31 '21 06:10 lorcap