if I get an ok, sure
--
Sent from a phone, apologies for poor formatting.
On 17 September 2025 14:17:13 Mikolaj Kucharski <[email protected]> wrote:
On Mon, Jun 09, 2025 at 06:38:26PM +0000, Mikolaj Kucharski wrote:
On Mon, Jun 09, 2025 at 10:37:32AM +0100, Stuart Henderson wrote:
> On 2025/06/09 09:21, Mikolaj Kucharski wrote:
> > Hi.
> >
> > I needed to get info about sunrise and sunset. I am aware of py3-astral
> > but wanted to compare both, ephem and astral.
>
> Given the warnings on https://rhodesmill.org/pyephem/, I'm wondering
> if this is really a good idea to import unless there's some other
> software intended to be ported that needs it? Skyfield (largely
> from the same author and more actively developed) generally seems
> a better idea, for sunrise and sunset calcs see e.g.
>
https://techoverflow.net/2022/06/19/how-to-compute-sunrise-sunset-in-python-using-skyfield/
>
> If it is still worthwhile, here's a slightly tweaked version.
>
Hm.. Right. I looked into skyfield and your other ports. Very useful,
but skyfield and the DSP file(s) and the dependency tree are much bigger
than pyephem. Not sure. Disk is cheap these days, so not a big issue.
I've also noticed that execution of skyfield is slower than pyephem,
but also not a big issue. I am okay to be a maintainer for pyephem,
if that helps. I think I need time to decided what I want and iterate
over the software a bit.
Anything which would allow me to show or calculate sunrise and sunset
on OpenBSD would be useful for me. Could you import kosmorro and related
dependencies into ports tree, Stuart?
I tested it at the time, when you send it and it worked well.
--
Regards,
Mikolaj