jyotish icon indicating copy to clipboard operation
jyotish copied to clipboard

Undefined array key "graha"

Open tufkan1 opened this issue 2 years ago • 5 comments

`$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);

tufkan1 avatar Jun 20 '22 19:06 tufkan1

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/

nitinmukesh avatar Jun 21 '22 13:06 nitinmukesh

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

tufkan1 avatar Jun 21 '22 13:06 tufkan1

Look here https://github.com/jscuba/jyotish-lambda

nitinmukesh avatar Jun 21 '22 13:06 nitinmukesh

im using laravel

tufkan1 avatar Jun 21 '22 13:06 tufkan1

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

nitinmukesh avatar Jun 21 '22 13:06 nitinmukesh