Planetary
Planetary calculates planetary alignments for a given date, as viewed from Earth (geocentric).
Installation
- Install Node, if you haven't already:
http://nodejs.org/
- NPM install Planetary:
npm install planetary
Example
var planetary = require('planetary');
var now = new Date();
var maxSeparation = 8;
var alignments = planetary.alignments( now, maxSeparation );
The result is an array of planetary alignments for the given date. Each alignment is, itself, an array, listing the planets in the alignment.
Source
Derived from https://github.com/lhartikk/AstroBuild