Git Product home page Git Product logo

astrojson's Introduction

AstroJSON

AstroJSON is a simple wrapper for the Linux version of the Swiss Ephemeris command line astrology utility that combines one command into many.

After installing Swiss Ephemeris (apt-get install sweph on Debian / Ubuntu), you should be able to run the bundled shell scripts, which run all potential queries for a given data/time and location.

First argument: Path to astroiq.sh (which should have run permissions) Second argument: ISO 8601 datetime e.g. 2016-04-09T19:38:23 Third argument: Decimal longitude, latitide and elevation e.g. 56.3231,-3.7929,30

Installation

  1. CD over the directory with the source code.
  2. Run "cargo build --release" . This requires the Rust Package Manager for you system
  3. Install Swiss Ephemeris command line on Linux or swetest.exe on Windows. On Windows you will need Cygwin or the Ubuntu Subsystem on Windows 10
  4. Make sure all shell scripts and the core astro binary file have execute permissions
  5. Run the command e.g. ./astro ./scripts/astroiq-all.sh 1987-06-06T12:30:45 45.39383,4.3398,50

This bring back not only the positions of all celestial bodies for a given time and place, but also all ayanamsas and the most common house systems in both Western and Indian Astrologies as a complete range of aspects.

The JSON output can then be easily integrated with other Web or desktop applications.

I chose Rust rather than Go or NodeJS mainly to optimise performance. This is my first rust project and is used in production on AstroIQ.com.

However, the rest of the web site uses NodeJS and MongoDB at the backend with VueJS and D3. It has a separate repository.

astrojson's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.