panchangam icon indicating copy to clipboard operation
panchangam copied to clipboard

Any plans to do it for JS

Open kriteesh opened this issue 6 years ago • 7 comments

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.

kriteesh avatar Jul 18 '18 08:07 kriteesh

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.

vvasuki avatar Jul 18 '18 08:07 vvasuki

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

krishnakanthpps avatar Sep 07 '18 09:09 krishnakanthpps

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 avatar Sep 07 '18 13:09 vvasuki

https://groups.google.com/forum/#!topic/sanskrit-programmers/JrHhmI0YEBY is pertinent here.

vvasuki avatar Oct 10 '20 02:10 vvasuki

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

prolaxu avatar Jun 21 '21 04:06 prolaxu

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.

vvasuki avatar Jun 21 '21 15:06 vvasuki

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 ?

arjunghimire avatar Mar 09 '24 02:03 arjunghimire