Skip to content
Frank Thomas Tveter edited this page Sep 17, 2020 · 26 revisions

astro-api standalone webservice for yr.no

The astro-api repository contains the software that makes the astronomical calculations for yr.no, serving some 50,000 new requests per hour. The astro-api software uses the unbeatable JPL ephemeride tables and the top notch SOFA astronomical library, along with state of the art algorithms for quick and precise searches, all to provide you with high quality astronomical data on demand. Typical astronomical data is the sun/moon rise/set, twilight, polar day/night, moon phase, eclipse, solstice times.

The astro-api repository contains all code and setup instructions for installing and running the astro-api on an Apache2 webserver on Ubuntu Xenial. The repository also contains a wep-page demonstration which is available online at http://astro.met.no/astro.

The astro-api can basically be used in two ways, either by cgi-bin/event.pl to find the time of an astronomical event, like the time of next Moon phases, or cgi-bin/state.pl to get the state of the solar system at given times. Legacy calls to former api.met.no/sunrise are supported by cgi-bin/short.pl.

More information:

RSS feed