panchangam
panchangam copied to clipboard
Any plans to do it for JS
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.
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 what is an authentic source to get the list of festivals of the day?
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.
https://groups.google.com/forum/#!topic/sanskrit-programmers/JrHhmI0YEBY is pertinent here.
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
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.
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 ?