theriftlab / immanuel-python Goto Github PK
View Code? Open in Web Editor NEWQuickly produce both human-readable and JSON-formatted astrology chart data based on the Swiss Ephemeris and astro.com.
License: GNU Affero General Public License v3.0
Quickly produce both human-readable and JSON-formatted astrology chart data based on the Swiss Ephemeris and astro.com.
License: GNU Affero General Public License v3.0
Hi,
first of all, awesome work you did there.
I just have a question regarding the progressed chart.
I have a person, born in Berlin on 1.1.1970
native = charts.Subject('1970-01-01 00:00', 52.490134, 13.3365914)
I want to calculate the daily horoscope for Tuesday - 17 January 2024, like on astro-seek.com:
So my approach is to do this:
progressed = charts.Progressed(native, '2024-01-17 00:00')
The birthchart is right, but for some reason i get very different data to astro.com & astro-seek.com for the progressed chart.
e.g. The Moon should be in the 7th house, but in the progressed chart its in the 11th house.
import datetime
from time import strftime
from immanuel.setup import settings
import swisseph as swe
from immanuel import charts
from immanuel.const import chart, calc
from immanuel.tools import position
import json
from immanuel.classes.serialize import ToJSON
native = charts.Subject(
date_time='1992-01-14 12:00:06',
latitude='57N00',
longitude='00W00',
)
natal = charts.Natal(native)
print(natal.aspects[chart.SUN][chart.MARS])
KeyError: 4000005
Do I need to make changes in the settings options, and how can I do it? I am a beginner, thank you.
Hi Robert,
Really digging Immanuel, it's been super useful. Ever thought about adding support for other languages? Noticed a lot of astrology libs are doing it.
I'm actually using Immanuel in Brazilian Portuguese and got quite a bit translated already. Happy to help with Spanish translations too.
Think it'd make Immanuel even more awesome for folks worldwide.
What do you say?
Hi @theriftlab
Check this out:
from immanuel import charts
subject = charts.Subject('2024-04-29 06:15', '22S54', '43w06')
natal= charts.Natal(subject)
print(natal.objects[6000007])
The answer was:
True Lilith 16°27'33" in Libra, 6th House, Direct
But looking in Astro.com, it should be Virgo, 19º, 5th House, as you can see in the image.
Do you have any idea what I'm doing wrong?
Hi @theriftlab .
I have an idea for the Aspect class: start and end dates.
For sure, it doesn't make sense in a Natal chart, but It will be very useful in some particular situations:
I know it can be tricky with some objects not moving in their typical direction, but, if possible, it will be very cool.
您好,想要相位数据,需要怎么设置
native = charts.Subject(
date_time='2024-04-11 16:44',
latitude='39.55',
longitude='116.28',
)
settings.set({
'house_system': chart.CAMPANUS,
'mc_progression_method': calc.DAILY_HOUSES,
})
settings.aspect_rules[chart.ASC] = settings.default_aspect_rule
settings.objects.append(chart.CERES)
settings.aspects.append(calc.OPPOSITION)
settings.aspects.append(calc.SESQUISQUARE)
natal = charts.Natal(native)
progressed = charts.Progressed(native, '2024-04-11 16:44')
for object2 in progressed.objects.values():
print("===",object2)
I don't know if it's on any plan you have for the library.
I've being exploring the find function, which is very cool, but I encontered a limitattion: it only deals with planets (the "4000000" objects). I don't know how difficult it will be, but I think it will be great if we could work with other objects.
Let me give three examples:
1 - I wanna calculate the sunrise for a given day. So I could ask it to find when the Sun and the ASC will make a conjunction. But it gives me an error, because it calls functions that need information I can't provide.
2 - I could use it to find when a given object will be in a given sign
3 - Or it could help find, when a planet it will enter my 10th house.
Whenever you are thinking about upgrades on the find funcion (os similar function), it will be great if it receive these options.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.