Skip to content

WordPress plug-in that provides astronomical information based on location and date

License

Notifications You must be signed in to change notification settings

stleary/stars-at-night

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Stars At Night

The Stars at Night is a WordPress plugin. It is intended for use by amateur astronomers and others interested in tracking astronomical data for their location. For now, that includes tables for the Moon and planets visible from your local area.

The plugin is activated by the shortcode [stars-at-night]. Here is an example:

[stars-at-night name="COE Observing Field" lat=30.891 long=-97.4265 timezone=America/Chicago days=10]

  • name : (location name: can be anything)
  • lat : latitude. North of the equator is positive, South is negative.
  • long : longitude. East of the Prime Meridian is positive, West is negative.
  • timezone : A recognizable timezeone. For a list of valid values, see http://php.net/manual/en/timezones.php.
  • days : The number of days to predict. Must be a value from 1-10. Default is 3 days.

You can also display the individual data tables via more specific shortcodes:

  • [stars-at-night-sun-moon name="Mount Kilimanjaro" lat=-2.55 long=37.55 timezone=Africa/Nairobi]
  • [stars-at-night-planets name="Ushuaia" lat=-54.8 long=-68.33 timezone=America/Argentina/Ushuaia]
  • [stars-at-night-iss name="Mount Burnett Observatory" lat=-37.9 long=145.4 timezone=Australia/Melbourne days=7]

Credits

This is a WordPress plugin, so it is written in PHP. Since it is available on the WordPress plugin directory, it is also stored in a SVN repository. However, this GitHub project is the single source of truth for the plugin.

Installation

Preferred method:

Manual installation is also supported:

  • Create a "stars-at-night" directory in your WordPress installation, under wp-content/plugins
  • cd to the stars-at-night directory
  • git clone https://github.com/stleary/stars-at-night.git .
  • (enter your GitHub username and password if prompted)

About

WordPress plug-in that provides astronomical information based on location and date

Resources

License

Stars

Watchers

Forks

Packages

No packages published