Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The API is returning incorrect data #21

Open
nitinmukesh opened this issue Dec 11, 2021 · 1 comment
Open

The API is returning incorrect data #21

nitinmukesh opened this issue Dec 11, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@nitinmukesh
Copy link

nitinmukesh commented Dec 11, 2021

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
Copy link
Owner

ryuphi commented Dec 14, 2021

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 👍

@ryuphi ryuphi added help wanted Extra attention is needed enhancement New feature or request and removed help wanted Extra attention is needed labels Dec 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants