@ramcna/capacitor-ephemeris
v0.0.4
Published
Capacitor plugin that integrates Swiss Ephemeris (JNI) to calculate accurate planetary positions using SEPLM, SEPL_18, and SE1 ephemeris data files.
Readme
@ramcna/capacitor-ephemeris
Capacitor plugin that integrates Swiss Ephemeris (JNI) to calculate accurate planetary positions using SEPLM, SEPL_18, and SE1 ephemeris data files.
Install
npm install @ramcna/capacitor-ephemeris
npx cap syncAPI
initialize(...)calculateHoroscope(...)calculateAstroDetails(...)getAscendant(...)getCusps(...)getSMLSubPositions(...)- Interfaces
initialize(...)
initialize(options: InitializeOptions) => Promise<void>| Param | Type |
| ------------- | --------------------------------------------------------------- |
| options | InitializeOptions |
calculateHoroscope(...)
calculateHoroscope(options: { context: string; }) => Promise<{ result: string; }>| Param | Type |
| ------------- | --------------------------------- |
| options | { context: string; } |
Returns: Promise<{ result: string; }>
calculateAstroDetails(...)
calculateAstroDetails(options: { jdUtc: number; context: string; }) => Promise<{ result: string; }>| Param | Type |
| ------------- | ------------------------------------------------ |
| options | { jdUtc: number; context: string; } |
Returns: Promise<{ result: string; }>
getAscendant(...)
getAscendant(options: { context: string; }) => Promise<{ ascendant: number; }>| Param | Type |
| ------------- | --------------------------------- |
| options | { context: string; } |
Returns: Promise<{ ascendant: number; }>
getCusps(...)
getCusps(options: { context: string; }) => Promise<{ cusps: number[]; }>| Param | Type |
| ------------- | --------------------------------- |
| options | { context: string; } |
Returns: Promise<{ cusps: number[]; }>
getSMLSubPositions(...)
getSMLSubPositions(options: { context: string; }) => Promise<{ result: string; }>| Param | Type |
| ------------- | --------------------------------- |
| options | { context: string; } |
Returns: Promise<{ result: string; }>
Interfaces
InitializeOptions
| Prop | Type | Description |
| ------------------ | ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ephPath | string | Local path to ephemeris files on device |
| ephemerisUrl | string | GitHub repository URL to ephemeris files Plugin will download all SE1 files from the repository's main branch Use raw GitHub URL or repository URL ending with 'main' or 'master' |
