jdempcy / hdkit

Open source Human Design programming toolkit
MIT License
81 stars 35 forks source link

Where to get data for calculating? (sign, degree, minutes, seconds) #1

Closed igor9007 closed 11 months ago

igor9007 commented 2 years ago

I figured out the main file in the lib is https://github.com/jdempcy/hdkit/blob/master/sample-data/charts/jonah-dempcy-chart.js. So we need to have sign, degree, minutes, seconds for every planet. Ok.

I investigated that I can receive "degree, minutes, seconds" data from this lib https://github.com/skyfielders/python-skyfield. Great. Finally, it remains to get zodiac sign for every planet. Looks like it is possible via https://github.com/cosinekitty/astronomy lib. Cause the logic is described here https://astronomy.stackexchange.com/questions/34286/how-do-i-find-the-signs-that-planets-are-in-during-any-given-date (look at the last bottom comment from PM 2Ring Feb 10, 2021 at 12:12).

So we need to get the ecliptic for each planet. For this, we can use these functions: https://github.com/cosinekitty/astronomy/tree/master/source/js#barystatebody-date--statevector => https://github.com/cosinekitty/astronomy/tree/master/source/js#eclipticequ--eclipticcoordinates. But upward logic ignores coordinates on Earth for each birth place/city. I think there is possible to correct ecliptic data via these ones: https://github.com/cosinekitty/astronomy/tree/master/source/js#ObserverVector => https://github.com/cosinekitty/astronomy/tree/master/source/js#eclipticequ--eclipticcoordinates

appinteractive commented 2 years ago

@igor9007 any luck so far?

tjohnman commented 1 year ago

Hi there. I found this repository because I was considering writing something similar.

The go-to method to get data for astrological applications is to use the Swiss Ephemeris library. There is the official swisseph library by Astrodienst. The library also needs the actual astronomical data for the period of time with which you want to work. You can download these files from the Astrodienst FTP for free. More information here.

There are a lot of wrappers and bindings for this, including Node bindings (swisseph and swisseph-api packages for the bindings and the client-server API respectively).

I successfully used the example C utility via a PHP wrapper/parser to get data asynchronously for a little web-based React natal chart generator. The library has a lot of features, but a couple of functions is all you need to get the planetary positions and speeds needed for a chart. For this you need to pass a UTC date and a pair of coordinates to the library, and out comes a list of planetary bodies and their properties at the time.

UTC conversion for the dates can be done in PHP as well or in JavaScript using third party libraries (I don't think JavaScript has any way to get UTC dates for different cities or timezones out of the box, not to mention UTC conversion for historical dates as opposed to current date only).

Aside from the UTC date, you need the coordinates of the city of birth. I got those from a very long file I constructed (4188 cities) containing city names and coordinates in plain text. I can post that file here if you want it.

appinteractive commented 1 year ago

Thanks @tjohnman for the Tipps, could you share that file as a gist and link it here? 🤝

robbiedood commented 1 year ago

Same question, was wondering if there is a way to get (sign, degree, minutes, seconds).

@jdempcy @tjohnman @appinteractive

tjohnman commented 1 year ago

Thanks @tjohnman for the Tipps, could you share that file as a gist and link it here? 🤝

Here you go: https://gist.github.com/tjohnman/f30ef58ff8dadbc765132234dd88bf7e

robbiedood commented 1 year ago

@tjohnman thanks for the city coordinates! Do you know why a city coordinator is required for human design chart ? I see many human design charts, and found that charts would be the same when input the same UTC date/time.

Hope to hear your expertise.

Thanks @tjohnman for the Tipps, could you share that file as a gist and link it here? handshake

Here you go: https://gist.github.com/tjohnman/f30ef58ff8dadbc765132234dd88bf7e

tjohnman commented 1 year ago

@tjohnman thanks for the city coordinates! Do you know why a city coordinator is required for human design chart ? I see many human design charts, and found that charts would be the same when input the same UTC date/time.

Hope to hear your expertise.

Thanks @tjohnman for the Tipps, could you share that file as a gist and link it here? handshake

Here you go: https://gist.github.com/tjohnman/f30ef58ff8dadbc765132234dd88bf7e

I have no expertise on this, at all! I have no idea why the online graph generating websites I have looked into ask for the city of birth, but I assume it's the same as in astrology. In astrology it is used to calculate the ascendant. But now that you mention it, I have no idea if human design actually uses that.

jdempcy commented 1 year ago

You can use UTC time to calculate, the city coordinates would just be for calculating the timezone so you can get UTC from a local time.

Jonah Dempcy T 206.226.2857 | E @.*** Follow on Facebook https://www.facebook.com/jdempcy | @jdempcy http://www.twitter.com/jdempcy | /in/jdempcy http://www.linkedin.com/in/jdempcy

On Tue, Dec 13, 2022 at 9:36 AM tjohnman @.***> wrote:

@tjohnman https://github.com/tjohnman thanks for the city coordinates! Do you know why a city coordinator is required for human design chart ? I see many human design charts, and found that charts would be the same when input the same UTC date/time.

Hope to hear your expertise.

Thanks @tjohnman https://github.com/tjohnman for the Tipps, could you share that file as a gist and link it here? handshake

Here you go: https://gist.github.com/tjohnman/f30ef58ff8dadbc765132234dd88bf7e

I have no expertise on this, at all! I have no idea why the online graph generating websites I have looked into ask for the city of birth, but I assume it's the same as in astrology. In astrology it is used to calculate the ascendant. But now that you mention it, I have no idea if human design actually uses that.

— Reply to this email directly, view it on GitHub https://github.com/jdempcy/hdkit/issues/1#issuecomment-1349011678, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAXLTLGZ3D36BVWRA5WUGTWNCQZFANCNFSM5PBF4JCQ . You are receiving this because you were mentioned.Message ID: @.***>

sachinrcz commented 1 year ago

Most of libraries gives one data only for sign, degree, minutes, seconds. But in chart we use two things, personality and design. If I understand correctly, data we get is in Personality. Where does design comes from?

jdempcy commented 1 year ago

Design is 88° retrograde of the Sun from the time of birth. So you find when the Sun was 88° before and calculate all planetary positions for that time.

On Thu, Feb 23, 2023 at 12:02 AM Sachin @.***> wrote:

Most of libraries gives one data only for sign, degree, minutes, seconds. But in chart we use two things, personality and design. If I understand correctly, data we get is in Personality. Where does design comes from?

— Reply to this email directly, view it on GitHub https://github.com/jdempcy/hdkit/issues/1#issuecomment-1441289424, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAXLTOHKSJNATX2MPFH5WDWY4DSBANCNFSM5PBF4JCQ . You are receiving this because you were mentioned.Message ID: @.***>

--

Jonah Sage Dempcy T 206.226.2857 | E @.*** Follow on Facebook https://www.facebook.com/jdempcy | @jdempcy http://www.twitter.com/jdempcy | /in/jdempcy http://www.linkedin.com/in/jdempcy

jdempcy commented 1 year ago

Sorry I am not able to assist in this. The math has all been laid out by Ra in his works.

I hope to release a new version of hd kit with documentation that makes it more clear.

South node and earth are exactly 180° opposite north node and sun so just calculate them. But I’ll have to ask that we end this conversation now as I am not available to assist in these calculations. My time spent in this area is working on a new back end rather than helping people understand the math which is all laid out by Ra, in any case.

On Tue, Feb 28, 2023 at 12:32 AM Sachin @.***> wrote:

Could you give me direction for South Node and Earth too. How is Earth's position calculated. If I understand correctly, all planets are calculated with respect to Earth so Earth is idea 0, 0. So I am confused about Earth in sample Personality data.

same for South Node. I get that North Node is True lunar node but not sure how to get South Node from astro libs.

Thank you

— Reply to this email directly, view it on GitHub https://github.com/jdempcy/hdkit/issues/1#issuecomment-1447707957, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAXLTO3X4QWXI4KC5ZCYWDWZWSYDANCNFSM5PBF4JCQ . You are receiving this because you were mentioned.Message ID: @.***>

--

Jonah Sage Dempcy T 206.226.2857 | E @.*** Follow on Facebook https://www.facebook.com/jdempcy | @jdempcy http://www.twitter.com/jdempcy | /in/jdempcy http://www.linkedin.com/in/jdempcy

appinteractive commented 1 year ago

Maybe someone could contribute an example for this case 😊

appinteractive commented 1 year ago

@jdempcy what do you mean with working on another backend?

jdempcy commented 1 year ago

Yes exactly!

That would be great Kyle!

It will need a form to input birth details, then it will need to get lat/long for the given location (you can query a Google api for this), then use tz database to get timezone for given lat long.

Once it has the universal time you’ll need to query Swiss ephemeris to get planetary positions.

I have a proof of concept of all this working but it’s not ready for public consumption. But if you want to take the lead and put that together, and submit a PR that would be wonderful!

On Wed, Mar 29, 2023 at 4:56 AM kylehi2222 @.***> wrote:

Hey @jdempcy https://github.com/jdempcy I would love to help you with the project and can dedicate time to get it working again.

Am I right in thinking, its missing:

  • form to get birth details
  • Astrological data
  • Bodygraph interface

?

— Reply to this email directly, view it on GitHub https://github.com/jdempcy/hdkit/issues/1#issuecomment-1488377903, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAXLTPLS45AGKBUWRGRBBLW6QIM5ANCNFSM5PBF4JCQ . You are receiving this because you were mentioned.Message ID: @.***>

--

Jonah Sage Dempcy T 206.226.2857 | E @.*** Follow on Facebook https://www.facebook.com/jdempcy | @jdempcy http://www.twitter.com/jdempcy | /in/jdempcy http://www.linkedin.com/in/jdempcy

Divinely5782 commented 1 year ago

Yes exactly! That would be great Kyle! It will need a form to input birth details, then it will need to get lat/long for the given location (you can query a Google api for this), then use tz database to get timezone for given lat long. Once it has the universal time you’ll need to query Swiss ephemeris to get planetary positions. I have a proof of concept of all this working but it’s not ready for public consumption. But if you want to take the lead and put that together, and submit a PR that would be wonderful! On Wed, Mar 29, 2023 at 4:56 AM kylehi2222 @.> wrote: Hey @jdempcy https://github.com/jdempcy I would love to help you with the project and can dedicate time to get it working again. Am I right in thinking, its missing: - form to get birth details - Astrological data - Bodygraph interface ? — Reply to this email directly, view it on GitHub <#1 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAXLTPLS45AGKBUWRGRBBLW6QIM5ANCNFSM5PBF4JCQ . You are receiving this because you were mentioned.Message ID: @.> -- -- Jonah Sage Dempcy T 206.226.2857 | E @.*** Follow on Facebook https://www.facebook.com/jdempcy | @jdempcy http://www.twitter.com/jdempcy | /in/jdempcy http://www.linkedin.com/in/jdempcy

Trying to implement what you have said, but have misunderstanding with planet minutes and seconds. What does it actually is?

jdempcy commented 1 year ago

Planet minutes and seconds refer to DMS (Degrees Minutes Seconds) - You can see here how they translate to Decimal Degrees.

https://en.wikipedia.org/wiki/Decimal_degrees

So you have 360º in a circle, 1.0 in Decimal Degrees is 1º0'00" in DMS. They are just two different notational systems.

You can find out more about DMS here: https://en.wikipedia.org/wiki/Degree_(angle)#:~:text=Use%20of%20degrees%2Dminutes%2Dseconds,decimal%20fractions%20of%20an%20arcsecond .

--

Jonah Sage Dempcy

Director, The Center for Human Design

T 206.226.2857 | E @.***

Follow on Facebook https://www.facebook.com/jdempcy | @jdempcy http://www.instagram.com/jdempcy | /in/jdempcy http://www.linkedin.com/in/jdempcy

On Mon, Jul 24, 2023 at 3:45 AM Divinely5782 @.***> wrote:

Yes exactly! That would be great Kyle! It will need a form to input birth details, then it will need to get lat/long for the given location (you can query a Google api for this), then use tz database to get timezone for given lat long. Once it has the universal time you’ll need to query Swiss ephemeris to get planetary positions. I have a proof of concept of all this working but it’s not ready for public consumption. But if you want to take the lead and put that together, and submit a PR that would be wonderful! On Wed, Mar 29, 2023 at 4:56 AM kylehi2222 @.> wrote: Hey @jdempcy https://github.com/jdempcy https://github.com/jdempcy https://github.com/jdempcy I would love to help you with the project and can dedicate time to get it working again. Am I right in thinking, its missing: - form to get birth details - Astrological data - Bodygraph interface ? — Reply to this email directly, view it on GitHub <#1 (comment) https://github.com/jdempcy/hdkit/issues/1#issuecomment-1488377903>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAXLTPLS45AGKBUWRGRBBLW6QIM5ANCNFSM5PBF4JCQ https://github.com/notifications/unsubscribe-auth/AAAXLTPLS45AGKBUWRGRBBLW6QIM5ANCNFSM5PBF4JCQ . You are receiving this because you were mentioned.Message ID: @.> -- -- Jonah Sage Dempcy T 206.226.2857 | E @.*** Follow on Facebook https://www.facebook.com/jdempcy | @jdempcy https://github.com/jdempcy http://www.twitter.com/jdempcy | /in/jdempcy http://www.linkedin.com/in/jdempcy

Trying to implement what you have said, but have misunderstanding with planet minutes and seconds. What does it actually is?

— Reply to this email directly, view it on GitHub https://github.com/jdempcy/hdkit/issues/1#issuecomment-1647576404, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAXLTM2SBAGAPKLQJGXCADXRY73VANCNFSM5PBF4JCQ . You are receiving this because you were mentioned.Message ID: @.***>

jdempcy commented 11 months ago

@igor9007 @Divinely5782 @appinteractive @lukelu520 @tjohnman and others, I've updated this repo with some sample apps. The PDF Generator sample app in particular has useful code for calling Google APIs forL= lat/long, using tz database to convert lat/long to offset, adjusting the entered time and using that to query the Swiss Ephemeris, then getting the resulting planetary data and converting that to Gate, Line, Color, Tone, Base. (What we might call GLCTB notation—in the vein of DMS, Degrees-Minutes-Seconds).

Also note that I have renamed the main branch from master to main so you can execute these commands to update from your local clone:

git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a
jdempcy commented 11 months ago

Please create a new issue if you have any other questions related to generating bodygraphs or performing Human Design-related calculations. Happy to help, and also happy to take submissions of any new sample apps. Eventually I'd like to make an hdkit framework that is available as an npm module for Node and React apps, or even a Ruby gem, but for now I'm happy to collect sample apps and work on standardizing things as we go.