ryuphi / astrology-api

Astrology API Rest
GNU Affero General Public License v3.0
133 stars 47 forks source link

The API is returning incorrect data #21

Open nitinmukesh opened 2 years ago

nitinmukesh commented 2 years ago

Many thanks to author for creating this. I think I am doing something wrong and nothing to do with this project.

I have the following details 27-Apr-1979 06.45 AM Meerut (Uttar Pradesh) +5.30

I setup the project locally and pass the information Got the longitude/Latitude values from here https://www.latlong.net/

http://localhost:3000/horoscope?time=1979-04-27T06%3A45%3A00%2B05%3A30&latitude=28.984463&longitude=77.706413

Unescaped URL (for ref only) http://localhost:3000/horoscope?time=1979-04-27T06:45:00+05:30&latitude=28.984463&longitude=77.706413

The result I am getting is incorrect, like Sun degree is 6 degree and sign is 2 which is incorrect. Kindly help with this, not sure what I am doing wrong.

Correct data

image

ryuphi commented 2 years ago

Hi! thanks you to report!

I think maybe you make a mistake when calculate the info in the screenshot.

In all sources where I tested the birth info that you share, I got the sun in 6th degrees in Taurus 🤔. Maybe you made a mistake when you input the latitude & longitude when you tried to test in the screenshot.

This is my test in the sweph test tool:

https://www.astro.com/cgi/swetest.cgi?b=1.1.2002&n=1&s=1&p=&e=-ejpl&f=fPLBRS%2Bhead-hor&arg=-b27.04.1979+-g+-house77.706413%2C28.979191P+-ut0%3A00+-pd

image

This is my test in https://carta-natal.es:

image

image

So, Can you repeat or review the info using in your test (screenshot)?

The other option... Maybe you are comparing the api result with information in sidereal time. In that case, I don't have a quick solution, because this api has not contemplated in the short term to support sidereal time in its calculations.

Maybe you can fork this project and do a pull request with the support to sidereal time 👍