-
Notifications
You must be signed in to change notification settings - Fork 120
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
Using It #1
Comments
I am also planning to use it.. I just want to know whether this repo is ready for using in production environment !! |
Documentation coming soon. |
jyotish.su looks great!! I am very much looking forward to the documentation to use for Panchanga and natal charts. I have been trying to make the swetest.exe work but it always ends up with the wrong output. |
Is it possible to get hindu month name for current tithi using this api? |
is it possible to add the matching capability to this ? plus ability to change the charkra to East indian style will be great. |
You can choose one of three styles: East, North or South |
This is great library, i know little bit about astrology, i got your library which is ganita and base is the core for passing the arguments of date, time, timezone, etc... , eventhough some confusion occurs, so we all waiting for your documentation, Thank you for this great work. |
Documentation will be after library should be released stable. |
What is the main function to call to get a chart calculation? Like on your demo website, which function are you calling with the button Calculate -> Chakra (Chart)? Some pointers would be great :) |
Hi, how do i use your library to calculate Rasi of a person based on his date of birth, time of birth and place of birth ? |
any documentation? |
Hi,
require './vendor/autoload.php';
use Jyotish\Base\Data;
use Jyotish\Base\Locality;
use Jyotish\Base\Analysis;
use Jyotish\Ganita\Method\Swetest;
use Jyotish\Dasha\Dasha;
$Locality = new Locality([
'longitude' => "11.09",
'latitude' => "79.6",
'altitude' => 0,
]);
$DateTime = new DateTime();
$DateTime->setTimezone(new DateTimeZone('Asia/Kolkata'));
$DateTime->setDate(2017,09,26);
$DateTime->setTime(19,18);
$Ganita = new Swetest(["swetest" => "./vendor/kunjara/swetest/win/"]);
// for linux
// run sudo apt install libswe-dev
// after that use
// $Ganita = new Swetest(["swetest" => "/usr/bin/"]);
$data = new Data($DateTime, $Locality, $Ganita);
// To Calculate Panchangam
$data->calcParams();
$data->calcRising();
$data->calcPanchanga();
// To calculate Upagraha
$data->calcUpagraha();
// To calculate Birth chart Divisions
$data->calcVargaData(["D1","D2","D3","D4","D7","D9","D10","D12",
"D16","D20","D24","D27","D30","D40","D45","D60"]); you will get the degrees of planets with correct lagna Update: Thanks to @mattchambers for pointing out the error in timezone settingUpdate: Thanks to @eaglehawkstudio fixed an error in swetest path for windows |
You're example works great but when I used it, the data returned from the library was inaccurate. I realized it was due to the timezone being stated after the date and time for the DateTime object. Here's what I did and everything works like a charm using your example. Thank you $DateTime = new DateTime();
$DateTime->setTimezone(new DateTimeZone('America/New_York'));
$DateTime->setDate(2017,09,26);
$DateTime->setTime(19,18); |
Thank you, by using your example am able to get accurate data and I have updated the code in my above post |
With this code I get a lot of notices (like 50) and the data is incomplete: |
@Kalianey |
what OS are you developing in and plan to deploy in? |
Thank you for the instructions above Having the same issue as @Kalianey - On Mac OSX locally and Linux remotely. Any luck finding a mac version of Swetest? |
@eaglehawkstudio I have not been able to find any solution to make it work in mac, my suggestion is to use a Linux or Windows machine to develop |
Thank you @nagarajan010 - Now have it working beautifully on Windows. A couple of notes:
|
I just followed the above given steps but getting the following error. Notice: Undefined variable: DateTime in C:\xampp\htdocs\astro1\jyotish\index.php on line 15 Fatal error: Call to a member function setTimezone() on null in C:\xampp\htdocs\astro1\jyotish\index.php on line 15 Please help! Thanks |
@imviv3k please add this like before you set the time zone |
Hellow @nagarajan010 Notice: Undefined offset: 2 in C:\xampp\htdocs\astro1\jyotish\src\Ganita\Method\Swetest.php on line 283 Notice: Undefined offset: 3 in C:\xampp\htdocs\astro1\jyotish\src\Ganita\Method\Swetest.php on line 283 Notice: Undefined offset: 5 in C:\xampp\htdocs\astro1\jyotish\src\Ganita\Method\Swetest.php on line 284 Notice: Undefined offset: 6 in C:\xampp\htdocs\astro1\jyotish\src\Ganita\Method\Swetest.php on line 284 Notice: Undefined offset: 3 in C:\xampp\htdocs\astro1\jyotish\src\Ganita\Method\Swetest.php on line 281 Notice: Undefined offset: 2 in C:\xampp\htdocs\astro1\jyotish\src\Ganita\Method\Swetest.php on line 283 Notice: Undefined offset: 3 in C:\xampp\htdocs\astro1\jyotish\src\Ganita\Method\Swetest.php on line 283 Notice: Undefined offset: 5 in C:\xampp\htdocs\astro1\jyotish\src\Ganita\Method\Swetest.php on line 284 Notice: Undefined offset: 6 in C:\xampp\htdocs\astro1\jyotish\src\Ganita\Method\Swetest.php on line 284 Notice: Undefined offset: 4 in C:\xampp\htdocs\astro1\jyotish\src\Ganita\Method\Swetest.php on line 281 Notice: Undefined offset: 2 in C:\xampp\htdocs\astro1\jyotish\src\Ganita\Method\Swetest.php on line 283 Notice: Undefined offset: 3 in C:\xampp\htdocs\astro1\jyotish\src\Ganita\Method\Swetest.php on line 283 Notice: Undefined offset: 5 in C:\xampp\htdocs\astro1\jyotish\src\Ganita\Method\Swetest.php on line 284 Notice: Undefined offset: 6 in C:\xampp\htdocs\astro1\jyotish\src\Ganita\Method\Swetest.php on line 284 Notice: Undefined offset: 5 in C:\xampp\htdocs\astro1\jyotish\src\Ganita\Method\Swetest.php on line 281 Notice: Undefined offset: 2 in C:\xampp\htdocs\astro1\jyotish\src\Ganita\Method\Swetest.php on line 283 Notice: Undefined offset: 3 in C:\xampp\htdocs\astro1\jyotish\src\Ganita\Method\Swetest.php on line 283 Notice: Undefined offset: 5 in C:\xampp\htdocs\astro1\jyotish\src\Ganita\Method\Swetest.php on line 284 Notice: Undefined offset: 6 in C:\xampp\htdocs\astro1\jyotish\src\Ganita\Method\Swetest.php on line 284 Warning: Division by zero in C:\xampp\htdocs\astro1\jyotish\src\Panchanga\AngaDefiner.php on line 267 and nothing is being displayed thereafter. I will be very much thankful for your kind help. |
@imviv3k |
@imviv3k |
changing swetest.exe to the folder where index.php is there will solve your problem. |
@astrosanthosh that did not help! |
Hi, Thanks, |
How to access public functions like getRahuKala() ? |
May i know step by step process.I am unable to do where to start and where to put index.php |
Hi Can u help me how to use this project .I have Wamp instaled but when i accessing from www. Its nothing so anything.what is wrong |
when I was run window swisstest file getting error its showing splc_18.se is not found in the path. using Moshier eph. |
@chakracharyulu Please go through this script. You can find here http://www.cc.kyoto-su.ac.jp/~yanom/sanskrit/pancanga/pancanga3.14 |
This is not working on ubuntu as there is an exe file associatted with it |
I am getting the error invalid numeric litrals |
for linux |
you can google and download the missing .se data files and add them |
What is D1 to D12? |
I have downloaded the clone and placed in my wamp directory then i installed composer Panchanga
|
@nanoakhi require './vendor/autoload.php'; |
I am getting same error.... I just want vimshottari code... |
I also agree that the data is not correct, if one use the script available in this threads. I am sure that the api provides the correct data, one must only be able to use it. Was anyone able to use the api correctly? Please support. |
Yeah, it works. |
Could u pls help me with that, may be share a piece of correct code. I would be very thankful to you. |
I think you need to give the library the local date/time for the locality of the chart you're pulling. You can use moment-timezone to adjust for timezone. |
I am using the local timezone using the script provided in thread. The Script works well, only the output of lagna and dashas is incorrect. Maybe some one who has a correct running script can support.
|
Change Ayanamsa like that: $Ganita->setOptionAyanamsha('Raman'); |
@Abhirama108 |
This is a relatively simple way to get this library up and running on AWS Lambda. https://github.com/jscuba/jyotish-lambda I posted this a few places in the issues. I thought I'd post it here in the "docs" too. I hope it helps. |
THank you |
Please help. I have Error. Warning: Trying to access array offset on value of type null in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 251 Warning: Trying to access array offset on value of type null in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 251 Warning: Undefined array key "graha" in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 252 Warning: Trying to access array offset on value of type null in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 252 Warning: Trying to access array offset on value of type null in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 252 Warning: Undefined array key "graha" in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 257 Warning: Trying to access array offset on value of type null in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 257 Warning: Trying to access array offset on value of type null in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 257 Warning: Undefined array key "graha" in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 258 Warning: Trying to access array offset on value of type null in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 258 Warning: Trying to access array offset on value of type null in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 258 Warning: Undefined array key "graha" in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 262 Warning: Trying to access array offset on value of type null in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 262 Warning: Trying to access array offset on value of type null in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 262 Warning: Undefined array key 2 in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 282 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 282 Warning: Undefined array key 2 in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 284 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 284 Warning: Undefined array key 3 in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 284 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 284 Warning: Undefined array key 5 in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 285 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 285 Warning: Undefined array key 6 in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 285 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 285 Warning: Undefined array key 3 in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 282 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 282 Warning: Undefined array key 2 in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 284 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 284 Warning: Undefined array key 3 in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 284 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 284 Warning: Undefined array key 5 in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 285 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 285 Warning: Undefined array key 6 in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 285 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 285 Warning: Undefined array key 4 in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 282 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 282 Warning: Undefined array key 2 in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 284 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 284 Warning: Undefined array key 3 in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 284 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 284 Warning: Undefined array key 5 in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 285 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 285 Warning: Undefined array key 6 in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 285 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 285 Warning: Undefined array key 5 in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 282 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 282 Warning: Undefined array key 2 in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 284 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 284 Warning: Undefined array key 3 in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 284 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 284 Warning: Undefined array key 5 in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 285 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 285 Warning: Undefined array key 6 in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 285 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php on line 285 Warning: Undefined array key "Ch" in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Panchanga/AngaDefiner.php on line 76 Warning: Trying to access array offset on value of type null in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Panchanga/AngaDefiner.php on line 76 Warning: Undefined array key "Sy" in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Panchanga/AngaDefiner.php on line 77 Warning: Trying to access array offset on value of type null in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Panchanga/AngaDefiner.php on line 77 Fatal error: Uncaught Jyotish\Panchanga\Exception\InvalidArgumentException: Tithi with the key '0' does not exist. in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Panchanga/Tithi/Tithi.php:171 Stack trace: #0 /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Panchanga/AngaDefiner.php(82): Jyotish\Panchanga\Tithi\Tithi::getInstance() #1 /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Panchanga/AngaDefiner.php(342): Jyotish\Panchanga\AngaDefiner->getTithi() #2 /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Base/Data.php(396): Jyotish\Panchanga\AngaDefiner->generateAnga() #3 /var/www/www-root/data/www/vptk.info/module/moon4.mod.php(37): Jyotish\Base\Data->calcPanchanga() #4 /var/www/www-root/data/www/vptk.info/core/router.php(109): include('...') #5 /var/www/www-root/data/www/vptk.info/index.php(6): include('...') #6 {main} thrown in /var/www/www-root/data/www/vptk.info/libs/vendor/kunjara/jyotish/src/Panchanga/Tithi/Tithi.php on line 171 |
yes, I can fix the error for that you need to pay me if you are agree then contact me on my email thanks. @alex-webmaster |
The problem was that I used the code for Windows, but I have Linux I commented line: //$Ganita = new Swetest(["swetest" => BASEDIR.'libs/vendor/kunjara/swetest/win/']); Run: sudo apt install libswe-dev uncommented: $Ganita = new Swetest(["swetest" => "/usr/bin/"]); Now it works! ;) |
Is there any way to get a specific time instead of left?
|
i tried every possibilities but no results sorry @alex-webmaster |
How to use this library ??
The text was updated successfully, but these errors were encountered: