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

Any plans to do it for JS #3

Open
kriteesh opened this issue Jul 18, 2018 · 7 comments
Open

Any plans to do it for JS #3

kriteesh opened this issue Jul 18, 2018 · 7 comments

Comments

@kriteesh
Copy link

I was thinking of doing it in js, and before doing I found this library. I wanted to make a pwa, and since the logic/pseudo-code is sort of lost in the python lines, I could not figure it out. Could someone please point out the exact parts I need to write the code in js.

@vvasuki
Copy link
Collaborator

vvasuki commented Jul 18, 2018

Great idea!

Best to proceed in steps. Basic logic -

  • get basic data (position of sun, moon, possibly other planets in the sky given exact time, sunrise and sunset time given the location)
  • divide the sky into 27 lunar mansions and 12 raashi-s based on your favorite Ayanamsha.
  • now, you're able to determine the tithi at any given point in time by seeing where the moon lies. Similarly, you're able to get the solar rAshi using the sun's position.
  • now that you know the tithi - use some rules and tabulated data to determine the festivals of the day.

Please point us to the repo for the js library you develop.

@krishnakanthpps
Copy link

@vvasuki what is an authentic source to get the list of festivals of the day?

@vvasuki
Copy link
Collaborator

vvasuki commented Sep 7, 2018

Various dharmashaastra texts (eg. purANa-s and smRti-s). It's good to cite the provenance of a festival that way. In the meantime, you can use secondary sources such as the festival database available with this repository.

@vvasuki
Copy link
Collaborator

vvasuki commented Oct 10, 2020

@prolaxu
Copy link

prolaxu commented Jun 21, 2021

Great idea!

Best to proceed in steps. Basic logic -

* get basic data (position of sun, moon, possibly other planets in the sky given exact time, sunrise and sunset time given the location)

* divide the sky into 27 lunar mansions and 12 raashi-s based on your favorite Ayanamsha.

* now, you're able to determine the tithi at any given point in time by seeing where the moon lies. Similarly, you're able to get the solar rAshi using the sun's position.

* now that you know the tithi - use some rules and tabulated data to determine the festivals of the day.

Please point us to the repo for the js library you develop.

i am willing to create jotisha app in js and PHP but as i am new to astrology i have no guidance in calculations for it i search everything i could in internet i also tried to dig and play around jotisha python package what is your suggestion on learning calculation for get basic data (position of sun, moon, possibly other planets in the sky given exact time, sunrise and sunset time given the location) and all related calculations and topic i hope you can suggest me good resource to learning those. i prefer surya siddintha hope to get good suggestion on it thanks

@vvasuki
Copy link
Collaborator

vvasuki commented Jun 21, 2021

just implement whatever you currently understand and proceed from there. PS: we don't follow sUrya siddhAnta here - rather modern ephemerides (aka dRk) are used.

@arjunghimire
Copy link

Great idea!
Best to proceed in steps. Basic logic -

* get basic data (position of sun, moon, possibly other planets in the sky given exact time, sunrise and sunset time given the location)

* divide the sky into 27 lunar mansions and 12 raashi-s based on your favorite Ayanamsha.

* now, you're able to determine the tithi at any given point in time by seeing where the moon lies. Similarly, you're able to get the solar rAshi using the sun's position.

* now that you know the tithi - use some rules and tabulated data to determine the festivals of the day.

Please point us to the repo for the js library you develop.

i am willing to create jotisha app in js and PHP but as i am new to astrology i have no guidance in calculations for it i search everything i could in internet i also tried to dig and play around jotisha python package what is your suggestion on learning calculation for get basic data (position of sun, moon, possibly other planets in the sky given exact time, sunrise and sunset time given the location) and all related calculations and topic i hope you can suggest me good resource to learning those. i prefer surya siddintha hope to get good suggestion on it thanks

Hi @prolaxu Did you find the solution for surya siddintha ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants