Skip to content
Frank Thomas Tveter edited this page Mar 28, 2019 · 26 revisions

astro-api standalone webservice for yr.no

The astro-api repository contains all code and setup instructions for installing and running the astro-api for yr.no 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