Powerful open-source vedic astrology calculator library
$ dotnet add package VedAstro.LibraryAnybody who has studied Vedic Astrology knows well how accurate it can be. But also how complex it can get to make accurate predictions. It takes decades of experience to be able make accurate prediction. As such this knowledge only reaches a limited people. This project is an effort to change that. </br>
<!-- # Help us and get paid! Complete tasks for this project and get paid instantly! Each task has a different value based on complexity. To get started fork the repo, make your edits and submit pull request. Contact us for task details. Task | Value | Status --- | --- | --- Improve API chart generator performance by 2x | $10 |  Show name of planet state in Horoscope page (combust, exalted, debilited) | $2 |  Generate traditional Rasi, Navamsa South/North style chart | $5 |  Find a spelling mistake in VedAstro.org content | $1 |  Show name of planet motion in Horoscope page (retrograde, direct, stationary) | $1.5 |  -->Our goal is to make Vedic Astrology easily accessible to anybody. So that people can use it in their daily lives for their benefit. Vedic Astrology in Sanskrit mean "Light". And that is exactly what it is. It lights our future so we can change it. And it lights our past, to understand our mistakes. </br>
By using modern computational technologies & methods we can simplify the complexity of Vedic Astrology. For example, calculating planet strength (Bhava Bala) used to take hours, now with computers we can calculate it in milliseconds. And using databases & innovative programming methods, there is no need to remember thousands of planetary combinations, allowing you to make accurate predictions with little to no knowledge.
The first line of code for this project was written in 2014. Back then it was a simple desktop software, with no UI and only text display. With continued support from investors & users, this project has steadily developed to what it is today. Helping people from all over the world.
<img src="https://www.vedastro.org/images/bv-raman-pic.jpg" alt="Alt text" title="Optional title" style="display: inline-block; margin: 0 auto; max-width: 300px"> <img src="https://www.vedastro.org/images/b-suryanarain-rao-pic.jpg" alt="Alt text" title="Optional title" style="display: inline-block; margin: 0 auto; max-width: 300px"> </br> Thanks to B.V. Raman and his grandfather B. Suryanarain Rao. Information from their books is the source material & inspiration for this project. Please buy their books to show your support. Astronomical calculation was made possible by "SwissEphNet" & "SWISS EPHEMERIS". Last but not least, we thank users like you who keep this project going.
Key design notes to understand the internals of the program better.
The main part of the program is the prediction/event generator. It works by combining logic on how to calculate a prediction with data about that prediction. This is done everytime a "Calculate" button is clicked. Below you will see a brief explanation of this process. This method was choosen to easily accommodate the thousands of astrological calculation possibilities.
CREATION OF AN EVENT/PREDICTION
STEP 1
Hard coded event data like name is stored in XML file.
A copy of the event name is stored as Enum to link
Calculator Methods with data from XML.
These static methods are the logic to check
if an event occured. No astro calculation done at this stage.
This is the linking process of the logic and data.
-------+
|
+-----------------+ |
| Event Data (xml)| |
+-----------------+ |
+ |
+------------------+ |
|Event Names (Enum)| +-----> Event Data (Instance)
+------------------+ |
+ |
+------------------+ |
|Calculator Methods| |
+------------------+ |
|
------+
STEP 2
From the above step, list of Event Data is generated.
Is occuring logic of each Event Data is called with time slices,
generated from a start time & end time (inputed at runtime).
An Event is created if IsOccuring is true.
This's a merger of Time and EventData to create an
Event at a specific time. This Event is then used
throughout the progam.
Event Data + Time Range
List List
|
|
|
v
Event List
+--------+ +------------------------+ +------------------+
| User | <------+ | Website | -------------> | API |
| | +------> | - Blazor WebAssembly | <------------- | -Azure Functions |
+--------+ GUI | - Azure Static WebApp | XML | |
| | | |
+------------------------+ +------------------+
These are randomly ordered notes on why a feature was implemented in a certain way.<br/> Will prove usefull when debugging & upgrading code.
Shows only clean & nice html index for bots from best known SEs
for direct access Blazor page via static storage without 404 error since no page acctually exists at page url, blazor takes url and runs the page as app using rule engine this is possible rules also make sure not to redirect file & api access only page access
web : vedastro.org -> domain registra -> azure DNS -> azure cdn -> web blob storage api stable : vedastro.org/api -> domain registra -> azure DNS -> azure cdn -> stable api server (render) api beta : beta.vedastro.org/api -> domain registra -> azure DNS -> azure cdn -> beta api server (azure) domain cert managed by lets encyrpt acme bot azure func
via Azure CDN Rules Engine, this allows the use of vedastro.org/api/... & vedastro.org/api/nlp/...
Since not documented by BV. Raman, code here is created through experimentation by repeating relationship between Dasa planet & Bhukti planet.
Not all data regarding an event is hardwired. Generating gochara, antaram, sukshma and others is more effcient if description was created by Astronomical calculator At the moment EventDataList.xml is the source of truth, meaning if an event exists in xml file, then it must exist in code.
The default timezone generated for all svg charts will be based on client timezone. Timezone does not matter when full life charts are made, but will matter alot when short term muhurtha charts are generated. Since most users are not living where they were born, it is only logical to default it client browser's timezone. This timezone must be visible/changeable to users who need to use otherwise.
Built on reference to, Hindu Predictive Astrology pg. 254
Asthavarga bindus are different from shadbala and it is to be implemented soon.
Asthavarga bindus are not yet account for, asthavarga good or bad nature of the planet. It is assumed that Shadbala system can compensate for it.
This passage on page 255 needs to be clarified "It must be noted that when passing through the first 10 degrees of a sign, Mars and the Sun produce results."
It's intepreted that Vendha is an obstruction and not a reversal of the Gochara results So as for now the design is that if a vedha is present than the result is simply nullified.
In Horoscope predictions methods have "time" & "person" arguments available, obvioulsy "time" is not needed, but for sake of semantic similarity with Muhurtha methods this is maintained.
Option 1 : generate a high res image (svg/html) and zoom horitontally into it - very fast - image gets blurry
Option 2 : Regenerate whole component in Blazor - very slow - hard to implement with touch screen
Option 3 : Generate multiple preset zooms, than place them on top of each other, and only make visible what is needed via selector - complicated, needs documentation - easy touch screen implimentation - very fast
Thus Option 3 was choosen.