precious - A Minimum kind of Ephemeris
Node package distribution of pyswisseph.
Eden depends on it.
More to come...
As lazy as possible, fetch ephemeris data with the convenient defaults:
precious {}
With specific time, "pprint" for a bit more readable output + names:
precious '{"utc": "1974-06-30T21:45Z", "out": "pprint"}'
No "utc" for right now, it also fetches the angles, given geo-location:
precious '{"geo": {"lat": 43.2166667, "lon": 27.9166667}}'
Modify the bin/defaults.json configuration according to preference. See precious-json(7) and eden(1) for further / friendlier options.
With the npm prerequisite, do npm install -g precious.
The -g for global, means the precious command can be run
regardless of what the current directory is.
There is a cake install task that is somewhat useful. It assumes that
Python, a C compiler and Node.js are already installed.
It's unknown how the project should be setup for Windows development / use. Contribution of such instructions would be great to have.
Some day, it would be preferable to have Node.js bindings directly to the Swiss Ephemeris, without going through Python or FFI. Emscripten stands out as a likely next step.
This is Unlicensed (free and unencumbered public domain software), except for LICENSE applying to the copy of pyswisseph with Swiss Ephemeris source and its conditions (located in swe.py/src).
precious(1), precious-coffee(1), precious-json(7), ephemeris-py(3), gravity(6), eden(1)