Coder Social home page Coder Social logo

jyotish's People

Contributors

kunjara avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jyotish's Issues

[SOLUTION] How to get planet sitting in which Bhav (house)

Use the following code in index.php

echo '<pre>'; print_r($Analysis -> getBodyInBhava('D1')); echo '</pre>';

OUTPUT

Array
(
[Sy] => 12
[Ch] => 12
[Ma] => 11
[Bu] => 11
[Gu] => 3
[Sk] => 11
[Sa] => 4
[Ra] => 4
[Ke] => 10
[Lg] => 1
[MLg] => 9
[IL] => 10
[SL] => 6
)

The degrees are not correct

I finally managed to run this library.

I just need help on the degrees that are displayed, some of them are incorrect.

Name Degree Sign
Lg 30.5641445 2
MLg 284.8969428 10
IL 319.0930604 11
SL 186.0767753 7
Sy 12.6340374 1
Ch 19.0930604 1
Ma 351.8991198 12
Bu 346.0644504 12
Gu 97.005043 4
Sk 341.1123327 12
Sa 133.6469937 5
Ra 141.5129365 5
Ke 321.5129365 11

Correct

Ascendant 1 - Krittika Sun 0° 35′ Taurus Venus
Jupiter 3 8,11 Pushya Saturn 7° 00′ Cancer Moon
Saturn 4 9,10 Purva Phalguni Venus 13° 39′ Leo Sun
Rahu 4 10 Purva Phalguni Venus 21° 31′ Leo Sun
Mercury 11 2,5 Uttara Bhadrapada Saturn 16° 04′ Pisces Jupiter
Venus 11 1,6 Uttara Bhadrapada Saturn 11° 07′ Pisces Jupiter
Mars 11 7,12 Revati Mercury 21° 54′ Pisces Jupiter
Sun 12 4 Ashwini Ketu 12° 38′ Aries Mars
Moon 12 3 Bharani Venus 19° 06′ Aries Mars
Ketu 10 7 Purva Bhadrapada Jupiter 21° 31′ Aquarius Saturn

Please help what is wrong

$Locality = new Locality([
            'longitude' => "77.70",
            'latitude' => "28.98",
            'altitude' => 0,
            ]);


$DateTime = new DateTime();
$DateTime->setTimezone(new DateTimeZone('Asia/Kolkata'));
$DateTime->setDate(1979, 4, 27);
$DateTime->setTime(6,45);

AshtakaVarga

How to generate AshtakaVarga details? I am not able to use anything under Bala ... There is no direct function to call it?

Please could someone share the dependencies

I am trying to setup on local machine and getting errors while using composer install

- Downloading symfony/yaml (3.4.x-dev 88289ca)
  - Downloading sebastian/version (2.0.1)
  - Downloading sebastian/resource-operations (1.0.0)
    Failed to download kunjara/swetest from dist: curl error 28 while downloading https://api.github.com/repos/kunjara/swetest/zipball/b7c1e1bd2acd0597926f0e0071724beae1e39587: Connection timed out after 10000 milliseconds
    Now trying to download from source
  - Syncing kunjara/swetest (1.0) into cache
    Failed to download hamcrest/hamcrest-php from dist: curl error 28 while downloading https://api.github.com/repos/hamcrest/hamcrest-php/zipball/26968e9810ff0d1aa48f6d67a862559d92a51884: Connection timed out after 10000 milliseconds
    Now trying to download from source
  - Syncing hamcrest/hamcrest-php (1.2.x-dev 26968e9) into cache

If I try to access these links using browser than the file download fine. At the end the vendor folder only have folders but no files.

Please could someone share the complete vendor folder as zip file. I am not familiar with PHP.

[SOLUTION] How to get Rashi in each Bhav (House)

Use the following code in index.php.

echo '<pre>'; print_r($Analysis -> getRashiInBhava('D1')); echo '</pre>';

OUTPUT

Array
(
[2] => 1
[3] => 2
[4] => 3
[5] => 4
[6] => 5
[7] => 6
[8] => 7
[9] => 8
[10] => 9
[11] => 10
[12] => 11
[1] => 12
)

NOTE: Rashi is first and then house number

[SOLUTION] How to get Bhav (House) ruler by House number

Use the following code in index.php.

echo '<pre>'; print_r($Analysis -> getBhavaRulers(['1','2','3','4','5','6','7','8','9','10','11','12'], 'D1')); echo '</pre>';

Please note there is an issue in code and it does not display all house rulers. To fix this
\src\Base\Analysis.php

comment the following line
$rulers = array_unique($rulers);

public function getBhavaRulers(array $bhavas, $vargaKey = Varga::KEY_D1)
    {
        $vargaKeyUcf = ucfirst($vargaKey);
        $data = $this->getVargaData($vargaKeyUcf);
        
        $rulers = [];
        foreach ($bhavas as $bhava) {
            $Rashi = Rashi::getInstance($data['bhava'][$bhava]['rashi']);
            $rulers[] = $Rashi->rashiRuler;
        }
        //$rulers = array_unique($rulers);
        return $rulers;
    }

output

Array
(
[0] => Sk
[1] => Bu
[2] => Ch
[3] => Sy
[4] => Bu
[5] => Sk
[6] => Ma
[7] => Gu
[8] => Sa
[9] => Sa
[10] => Gu
[11] => Ma
)

NOTE: 0 means 1st house and so on.

East Style Display has problems

When i checked the output for following birthrate, east style and north style display has problems. (East style is incorrectly rendered)

$datetime_data = new DateTime('1987-09-09 14:27:00', new DateTimeZone('Asia/Colombo'));
$locality_data = array(
'longitude' => 79.51,
'latitude' => 6.53,
'altitude' => 0.01
);

using problem

Hi ,
I am facing problem that how to use it.
please upload any documentation or any documentation .I am very forward to use it.

Thanks in advance

Notice: Undefined offset

I was able to setup the code and run index.php using XAMPP using PHP 5.6 version.

index.php

<?php

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"]);

I am however getting the following errors and no idea what is wrong. I also checked "vendor\kunjara\swetest\win" for swetest.exe and it is present. Please any help on solving the issue


Notice: Undefined offset: 2 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 281

Notice: Undefined offset: 2 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 283

Notice: Undefined offset: 3 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 283

Notice: Undefined offset: 5 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 284

Notice: Undefined offset: 6 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 284

Notice: Undefined offset: 3 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 281

Notice: Undefined offset: 2 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 283

Notice: Undefined offset: 3 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 283

Notice: Undefined offset: 5 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 284

Notice: Undefined offset: 6 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 284

Notice: Undefined offset: 4 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 281

Notice: Undefined offset: 2 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 283

Notice: Undefined offset: 3 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 283

Notice: Undefined offset: 5 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 284

Notice: Undefined offset: 6 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 284

Notice: Undefined offset: 5 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 281

Notice: Undefined offset: 2 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 283

Notice: Undefined offset: 3 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 283

Notice: Undefined offset: 5 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 284

Notice: Undefined offset: 6 in D:\xampp\htdocs\jyotish\src\Ganita\Method\Swetest.php on line 284

Warning: Division by zero in D:\xampp\htdocs\jyotish\src\Panchanga\AngaDefiner.php on line 267

Raja Yoga Calculations

Raja Yoga Calculations

it will be good if you can have something like below can be generated from this easily ?

Raj Yogas

Raj Yoga found as 7th (Kendra) House Lord Moon and 5th (Kone) lord Venus in 11th house Scorpio (Brischik)
Raj Yoga found as 7th (Kendra) House Lord Moon and 1st (Kone) lord Saturn in 11th house Scorpio (Brischik)
Raj Yoga found as 4th (Kendra) House Lord Mars and 5th (Kone) lord Venus in is house exchange
Exchange House Raj Yoga : Lord of Scorpio (Brischik) Mars in Libra (Tula) and Lord of Libra (Tula) Venus in Scorpio (Brischik)
Raj Yoga found as 10th (Kendra) House Lord Venus and 1st (Kone) lord Saturn in 11th house Scorpio (Brischik)
Raj Yoga found as 1st (Kendra) House Lord Saturn and 5th (Kone) lord Venus in 11th house Scorpio (Brischik)
Exchange House Raj Yoga : Lord of Sagittarius (Dhanu) Jupiter in Leo (Simha) and Lord of Leo (Simha) Sun in Sagittarius (Dhanu)

Anapha Yogas

Anpha Yoga Present as Mars, present on 12 House (Libra (Tula)) of Moon. The person born in this Yoga will be Well-formed organs, majestic appearance, good reputation, polite, generous, self-respect, fond of dress and sense Pleasures. In the later life, renunciation and austerity.Mars in this position makes the person powerful, self-controlled and a leader of persons engaged in undesirable activities.

Ubhayachari Yogas

Ubhayachari Yoga Present as Mercury, present on 2nd House (Capricorn (Makara)) of Sun and Venus, Saturn, present on 12th House (Scorpio (Brischik)) of Sun. The person born in this Yoga will be is sweet tongued, extremely famous, scheming and extremely wealthy

Vasi Yogas

Vasi Yoga Present as Venus, Saturn, present on 12th House (Scorpio (Brischik)) of Sun. The person born in this Yoga will be will be happy, prosperous, liberal and the favourite of the ruling classes.

Vesi Yogas

Vesi Yoga Present as Mercury, present on 2nd House (Capricorn (Makara)) of Sun. The person born in this Yoga will be will be will be fortunate,happy, virtuous, famous and aristocratic.

Amala Yogas

Amala Yoga Present as Jupiter is in 10th Position from Moon in Leo (Simha), Person born in this yoga will be philanthropic and benevolent attitude towards mankind, may have career in the social sector

Undefined array key "graha"

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.