Page 2 of 2

Re: Astronomy and control pages

PostPosted: Sun Oct 29, 2017 10:29 am
by FlyingDiver
haavarda wrote:

This looks promising, but what is ephem? And how do I install that?


Python library. I don't recall if it was pre-installed or if I needed to install it myself. If it's not installed, then
Code: Select all
sudo pip install ephem


Should do it.

Re: Astronomy and control pages

PostPosted: Sun Oct 29, 2017 2:43 pm
by haavarda
Thanks.
Any idea of how these calculations would be affected by daylight savings time? Here in Norway we have just subtracted one hour...


Sent from my iPhone using Tapatalk

Re: Astronomy and control pages

PostPosted: Sun Oct 29, 2017 2:57 pm
by FlyingDiver
haavarda wrote:
Thanks.
Any idea of how these calculations would be affected by daylight savings time? Here in Norway we have just subtracted one hour...


http://rhodesmill.org/pyephem/

For the specific code I posted, there's nothing to affect. The code returns the azimuth and elevation at the time the code is run. Doesn't matter what the local time is since the default is "now".