You can pass a location to this web page by adding a query string to the URL. It should look something like these examples
| Cheltenham | ?Name='Cheltenham' |
| My Home in Winter | ?Name='My%20Home'&Lat=51.88&Lon=-2.12&TZ=0&DST=false |
| My Home in Summer | ?Name='My%20Home'&Lat=51.88&Lon=-2.12&TZ=0&DST=true |
| Chippewa Falls | ?Name='Chippewa%20Falls'&Lat=+44.93&Lon=-91.39&TZ=-6 |
The following references were of use in the coding.
Several people have kindly pointed out errors, suggested improvements and supplied code. The main contributors are Stephane Macrez and Nick Reid.
I used data from the US Naval Observatory to check my results.
I also recommend the heavens-above site for all sorts of astronomical tables and diagrams.
For those who want skymaps I have used and recommend
The atlas array defines the list of places. The code uses
the first entry as the default location. Add any others you need.
The place function defines how to describe other towns.
function place(name,latitude,ns,longitude,we,zone,dss,dse)
function observatory(dt,latitude,longitude)
year
month values in range 1-12
day
hours
minutes
seconds
tz timezone in minutes with any daylight saving (summer time) correction. See place above.
latitude
longitude