Closed velkyvont closed 2 years ago
I just made it work! I use the following version - which is probably too cumbersome but at least it works.
sunrise = Datetime.fromJD(swe.rise_trans(jd_start=swe.julday(int(self.date.strftime("%Y")), int(self.date.strftime("%m")), int(self.date.strftime("%d"))), body=swe.SUN, lon=self.long, lat=self.lat, rsmi=swe.CALC_RISE | swe.BIT_HINDU_RISING)[1][0], offsetformated)
I try to use the functions nextSunrise, nextSunset, lastSunrise, lastSunset. I noticed that the data differs from my astrology software Maitreya8.
For example for 2022/04/07,
I get:
however Maireya8 shows me: 2022-04-07 Sunrise: 07:02:43 Sunset: 19:40:09 2022-04-08 Sunrise: 07:01:28 Sunset: 19:40:51
That's quite a big difference.
So I found swisseph manual which states:
So I tried the following code:
But what I'm getting is very crazy data:
Any idea what I'm doing wrong here?
Thanks for any help!