Results 1 to 6 of 6

Hybrid View

  1. #1

    Default Day and night world map

    I added a "Day and Night World Map" to the Dawn-Dusk Times tiddler.

    Just add this code:
    Code:
    <html><img src="http://www.timeanddate.com/scripts/sunmap.php?iso=<<today 'YYYY0MM0DDT0hh0mm'>>"></html>
    It will render a map of the world with the actual day, twilight (civil, nautical and astronomical) and night areas with actual positions of Sun and Moon.

    Cheers,

    Jeffrey

  2. #2
    Join Date
    Nov 2005
    Location
    Virgil, NY
    Posts
    5,390

    Default

    That's really nifty! Thanks for sharing that.

    EDIT:

    Hi, Jeff,

    I created a separate tiddler for this because I couldn't get the map to show below the table in the Dawn-Dusk Times tiddler.

    Also, note that if you use width="100%" and omit height, the graphic will always adjust to the width of the browser's window. Also, I didn't see that the "<<today...>>" part did anything, so I omitted it, too.

    Thanks again for posting this little gem.

    EDIT #2:

    It is possible to put the graphic below the table (which I think improves the look) by editing the dawndusk.asp script and putting the following lines near the very bottom:

    Code:
    ...
    Response.write("\n----\n");    
    Response.Write("<html><img width='100%'  src='http://www.timeanddate.com/scripts/sunmap.php'></img></html>");
    Response.write("\n----\n");    
    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, and Jeffrey Jongmans^^//");
    %>
    If that URL ever breaks or goes away, that will be a problem to fix then.
    Attached Images Attached Images
    Last edited by Dick Berg; Feb 1, 2014 at 14:37. Reason: enhancement
    Dick
    www.VirgilObservatory.us
    Pier-mounted Meade 12-inch SCT "classic"
    w. focal reducer to f/5.3 ~ FL 1630mm
    Optec TCF-S focuser
    SBIG CFW-8A and ST7-XME
    FOV ~ 15' x 10'
    H-alpha, BVRI, RGB & Clear filters
    MaxIm and, of course, ACP!
    AAVSO Code: BRIC

  3. #3
    Join Date
    Oct 2005
    Location
    Mesa, AZ
    Posts
    29,824

    Default

    Wow!! Thanks!! Moving to the ACP Add-Ons section now.

    Of course this could be put into a tiddler by itself too. The big problem is the damn MainMenu tiddler which needs to be edited to add a selection for other tiddlers. I hate "tiddler" too. I tried to rename it to "item" in ACP's docs, but peeking at the sources blows its cover.
    -- Bob

  4. #4
    Join Date
    Jul 2012
    Location
    Northern Sweden
    Posts
    30

    Default

    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
    Last edited by Jonas Grinde; Feb 4, 2014 at 20:23. Reason: Uploaded missing images

  5. #5
    Join Date
    Oct 2005
    Location
    Mesa, AZ
    Posts
    29,824

    Default

    Jonas --

    I physically deleted the (deleted) message from you and it seems to have deleted your images in the other one!! You can edit it and replace them. I apologize!!
    -- Bob

  6. #6
    Join Date
    Nov 2005
    Location
    Virgil, NY
    Posts
    5,390

    Default

    Fantastic. I love it. What a great product ACP is that it can enable these enhancements so easily. Thanks, Jonas
    Dick
    www.VirgilObservatory.us
    Pier-mounted Meade 12-inch SCT "classic"
    w. focal reducer to f/5.3 ~ FL 1630mm
    Optec TCF-S focuser
    SBIG CFW-8A and ST7-XME
    FOV ~ 15' x 10'
    H-alpha, BVRI, RGB & Clear filters
    MaxIm and, of course, ACP!
    AAVSO Code: BRIC

 

 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Using pointing corrector from night to night
    By David Rossitter in forum Pre-Sales Technical Questions and Help
    Replies: 4
    Last Post: Sep 2, 2010, 20:38

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •