Moon Server
We describe the implementation of a dynamical HTML page in Prolog
that displays the moon phase seen from the northern hemisphere for
a given day. The code demonstrates a HTTP server addition
available for the platforms JavaScript, Python and Java.
- Synodic Month: We compute the moon phase from epoch
time in milliseconds using the length of the synodic month. More...
- Server Graphics: We generate server side continuously
varying graphics depending on the given floating point value of
the moon phase. More...
- HTML Page: By means of the library(spin) we wrote a
HTTP server that does serve two pages /style.css and /moon.cgi.
More...
- Example Uses: The server can be run with either
Dogelog Player for JavaScript, Python or Java. A browser will
show a document with the moon phase. More...
Comments