Skip to content
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

Undefined array key "graha" #32

Open
tufkan1 opened this issue Jun 20, 2022 · 5 comments
Open

Undefined array key "graha" #32

tufkan1 opened this issue Jun 20, 2022 · 5 comments

Comments

@tufkan1
Copy link

tufkan1 commented Jun 20, 2022

`$Locality = new Locality([

    'longitude' => "11.09",

    'latitude' => "79.6",

    'altitude' => 0,

]);

$DateTime = new DateTime();

$DateTime->setTimezone(new DateTimeZone('Europe/Istanbul'));

$DateTime->setDate(1999,4,3);

$DateTime->setTime(5,45);

$Ganita = new Swetest(["swetest" => $_SERVER["DOCUMENT_ROOT"]."/../vendor/kunjara/swetest/win/"]);

$data = new Data($DateTime, $Locality,$Ganita);

$data->calcParams();`

the last line works externally. I get the error Undefined array key "graha" in the last line.

vendor/kunjara/jyotish/src/Ganita/Method/Swetest.php : 251
$longitudeKe = Math::oppositeValue($dataParams['graha'][Graha::KEY_RA]['longitude'], 360);

@nitinmukesh
Copy link

Working fine for me in windows

Check JSON data
https://pastebin.com/DcsFcugM

Check here (You can mouse over or click on grahas)
https://adorable-daffodil-7bc3b0.netlify.app/

@tufkan1
Copy link
Author

tufkan1 commented Jun 21, 2022

I'm running it on cPanel, what do I need to do with the json? It's a shame there is no documentation

@nitinmukesh
Copy link

@tufkan1
Copy link
Author

tufkan1 commented Jun 21, 2022

im using laravel

@nitinmukesh
Copy link

I don't know much about PHP, i am just developing on local

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants