Great work guys, very similar to the variant I'm using in my weather-display:
daynight.jpg
I've been using the chart from USNO together with a .png marker icon fixed at my observatory-location.
To make this available to the rest of you and also using the map Jeffrey posted, I've made some modifications to the dawndusk.asp.
It will read your observatory-coordinates from ACP and convert those to equirectangular X/Y coordinates compatible with the map-image, and place a red * symbol on the map along with the observatory name.
Code:
Response.write("\n----\n");
var MapX = (Math.round(-2+((Telescope.SiteLongitude+180)*(720/360))));
var MapY = (Math.round(20+(((Telescope.SiteLatitude*-1)+90)*(360/180))));
Response.Write("<html><style>");
Response.Write(".marker{position:relative;left:" + MapX + "px;top:" + MapY + "px;z-index:10;border:0px;opacity:1.00;}");
Response.Write(".map{position:relative;left:0px;top:0px;z-index:1;border:0px;}</style>");
Response.Write("<div class='marker'><font color=red><b>*</b></font> - " + Prefs.SiteName + "</div>");
Response.Write("<div class='map'><IMG SRC=http://www.timeanddate.com/scripts/sunmap.php border=0></div></html>");
Response.Write("//~~Contributed by Dick Berg, author of the [[ACP Reference Guide|http://solo.dc3.com/ar/ACPRefGuide.html]]~~//\n");
Response.Write("//^^Computational improvements by Robert Wahlstrom, Erik Young, Jeffrey Jongmans and Jonas Grinde^^//");
Remove the following if you don't want your observatory name on the map next to the marker.
Code:
- " + Prefs.SiteName + "
newdaynight.jpg
Hope this works for the rest of you as well!
Best Regards
Jonas Grinde
http://www.grinderphoto.se