yellowseed.org.

planets.py

This page is a demonstration of how to use the planets.py service from a web page. For example, here is where some planets are right now, according to a heliocentric, or Sun-centred, ephemeris:

Your browser loaded this information from ephemeris.yellowseed.org and reloading the page will update the positions. Some of the planetary symbols may not show up correctly on systems with old font libraries. To put this in another HTML page, just copy and paste this code:

<div id="now" />
<script src="http://yellowseed.org/planets.py/planets.js"></script>
<script type="text/javascript">
  planets.url = "http://ephemeris.yellowseed.org/0.1/";
  planets.helio(null, function(days) {
    document.getElementById('now').innerHTML =
      '(JD:' + days[0].jd + ')<br/>' +
      '&#9791; ' + days[0].bodies[2].lon + '&deg;<br/>' +
      '&#9792; ' + days[0].bodies[3].lon + '&deg;<br/>' +
      '&#8853; ' + days[0].bodies[14].lon + '&deg;<br/>' +
      '&#9794; ' + days[0].bodies[4].lon + '&deg;<br/>' +
      '&#9795; ' + days[0].bodies[5].lon + '&deg;<br/>' +
      '&#9796; ' + days[0].bodies[6].lon + '&deg;<br/>' +
      '&#9797; ' + days[0].bodies[7].lon + '&deg;<br/>' +
      '&#9798; ' + days[0].bodies[8].lon + '&deg;<br/>' +
      '&#9799; ' + days[0].bodies[9].lon + '&deg;';
  });
</script>

These positions are calculated using the Swiss Ephemeris via the pyswisseph project.