¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Use libastro in a C program


 

Hello everyone, would it be possible to use the libastro library, in a program that is not xephem?
?
I would need to use it to calculate the sunrise and sunset, to create an astronomical clock for switching on and off the lighting of an aquarium, I currently use pyephem, but I'm thinking of changing the microcontroller and so I have to write all the program in C.
?
All I need is an example.
?
Thank you
?
P.S. this is an online translation. sorry


Elwood Downey
 

Hello,

Thank you for asking. Yes, you may use libastro for your project.

Have fun and best wishes.

Elwood



On Mon, Mar 4, 2019 at 11:14 AM <vinnyvinny74@...> wrote:
Hello everyone, would it be possible to use the libastro library, in a program that is not xephem?
?
I would need to use it to calculate the sunrise and sunset, to create an astronomical clock for switching on and off the lighting of an aquarium, I currently use pyephem, but I'm thinking of changing the microcontroller and so I have to write all the program in C.
?
All I need is an example.
?
Thank you
?
P.S. this is an online translation. sorry


 

Thanks, but you could post me an example on how to calculate the sunrise and sunset, from the example in the repository I can not figure out how to do it.
?
Thank you
?
P.S. this is an online translation. sorry


 

Hello, I'm trying to use the libastro_sample.c file, but I can not figure out how to get the sunrise and sunset time, can someone help me?
?
Thank you
?
P.S. this is an online translation. sorry