VedAstro.Python icon indicating copy to clipboard operation
VedAstro.Python copied to clipboard

life prediction example

Open hpeter36 opened this issue 1 year ago • 12 comments

Hello,

Could you please add an example to life prediction with similar chart shown on the main website or at main project github? Or just describe the process in nutshell how to do it.

Thanks, Peter

hpeter36 avatar Mar 11 '24 20:03 hpeter36

If i understand you correctly, you want to generate life prediction SVG via python code? If that is the case: then it should technically be already possible, since full VedAstro lib is accesible from python, you just have to find out how to access via the pythonnet clr interop.....so instead of using await as in c# you use, .Result(), otherwise code should 100% same

sengiv avatar Mar 11 '24 20:03 sengiv

join slack or arrange a google meet i can help you get this sorted....another similar question on youtube today, not sure if that was you......hopefully by the end of this we can have working example, where you get SVG saved to local file

sengiv avatar Mar 11 '24 20:03 sengiv

Hello sengiv,

yes I was on yt too :), maybe my question was too quick, I just started analyize the source code and total new in vedic astro.

it is enough for me to give a python example which returns the necessary data to construct the chart in python or js frontend.

Thanks for your lighting fast reply :)

hpeter36 avatar Mar 11 '24 21:03 hpeter36

Hello guys, i am facing some issue while running the project, can i get slack link or somehow connect with you in order to understand this, i also want to get that SVG chart using python. plz help

Regards: Rick Spark

rickspark4 avatar Mar 22 '24 11:03 rickspark4

@hpeter36 sorry to say at the time of writing there is no ready demo code for python to make life predictor related stuff (i'll start work on this soon)

sengiv avatar Mar 22 '24 12:03 sengiv

@rickspark4 yeah this should be very possible, till the demo code is done you can try use the API first image

sengiv avatar Mar 22 '24 12:03 sengiv

hey @sengiv, thanks for quick reply there is another issue i am having , you provided python demo code in this repo which is continiously throwing below error "TypeError: No method matches given arguments for Person..ctor:" could you please help me with this error ?

rickspark4 avatar Mar 22 '24 18:03 rickspark4

@hpeter36 sorry to say at the time of writing there is no ready demo code for python to make life predictor related stuff (i'll start work on this soon)

Thanks for your effort, no problem, I am still working on another project, but curious about the python demo.

hpeter36 avatar Mar 22 '24 19:03 hpeter36

@hpeter36

.....data to construct the chart in python or js frontend.

for js front end just make http GET call to LifeChart API link, the settings for the chart is set in the call url, sample below :

https://api.vedastro.org/EventsChart/SteveJobs1955/Start/00:00/24/02/1955/End/00:00/05/02/2030/+08:00/29.122/PD1,PD2,PD3,PD4,PD5,PD6,PD7/General,IshtaKashtaPhalaDegree,PlanetStrengthDegree/Ayanamsa/Raman

sengiv avatar Mar 25 '24 02:03 sengiv

@sengiv thank you, it is very nice, is there a short description, what the different options means?

If I use the python lib. the calculations will happen on my local machine, there isn't API calls behind it right? or is there a local server under the hood?

hpeter36 avatar Mar 26 '24 08:03 hpeter36

Description for options can be found in advanced options panel in life predictor page Also there are comments in code

Yes, it will use your local machine. Technically, you should be already able to do this. Since possible in c#

If you get working demo code please post it here. It would help others for sure.

sengiv avatar Mar 26 '24 10:03 sengiv

@sengiv thanks, I will play with it and of course post a working code if achieved, thanks for the great support!

hpeter36 avatar Mar 26 '24 16:03 hpeter36