moon icons!!!!

Discussion in 'Weather Watcher - Suggestions' started by Ed_P, May 6, 2005.

  1. Ed_P

    Ed_P Well-Known Member

    Joined:
    Aug 7, 2004
    Messages:
    2,248
    Likes Received:
    0
    XML data for <cc> includes this:

    <moon>
    <icon>27</icon>
    <t>Waning Crescent</t>
    </moon>

    Where is weather.com getting icon "27"? And can it be included into WW's Current Conditions page?

    <font size="2"><font color="blue">Ed</font id="blue"></font id="size2">
     
  2. msinger

    msinger Administrator
    Staff Member

    Joined:
    Nov 6, 2002
    Messages:
    4,668
    Likes Received:
    0
    I poked around some, but I was not able to find them. I guess the best thing to do would be to find someone who is using them now.
     
  3. Ed_P

    Ed_P Well-Known Member

    Joined:
    Aug 7, 2004
    Messages:
    2,248
    Likes Received:
    0
    <blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"> I poked around some, but I was not able to find them.<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">
    Me too and me either. [:(]

    However I did find that the moon's phases can be computed, and even created, based on date using javascript!

    Moon Phases

    Could prove to be an interesting add to WW. [8D]

    <font size="2"><font color="blue">Ed</font id="blue"></font id="size2">
     
  4. msinger

    msinger Administrator
    Staff Member

    Joined:
    Nov 6, 2002
    Messages:
    4,668
    Likes Received:
    0
    EdP, your link doesn't work.
     
  5. Ed_P

    Ed_P Well-Known Member

    Joined:
    Aug 7, 2004
    Messages:
    2,248
    Likes Received:
    0
    [:0]!! No it doesn't does it.

    The link is coded properly, I just checked it in Edit mode. Your forum sw is dropping the "javascript" portion of "http://javascript.internet.com/messages/moon-phases.html" . It will be interesting to see if it does it this way also.

    Ok, the above works.

    So, we have 3 ways to express a link;

    plain HTTP: http://javascript.internet.com/messages ... hases.html
    URL,linkto,/URL tagged: "http://javascript.internet.com/messages/moon-phases.html"
    URL="linkto",desc,/URL tagged: desc

    So, there appears to be a bug in the Forum's URL tag processing.

    <font size="2"><font color="blue">Ed</font id="blue"></font id="size2">
     
  6. msinger

    msinger Administrator
    Staff Member

    Joined:
    Nov 6, 2002
    Messages:
    4,668
    Likes Received:
    0
    Yeah, weird. It seems to work if you just type the link as plain text... without clicking the "Insert Hyperlink" button.
     
  7. msinger

    msinger Administrator
    Staff Member

    Joined:
    Nov 6, 2002
    Messages:
    4,668
    Likes Received:
    0
    I wonder if that script is accurate.. and if your location matters?
     
  8. Ed_P

    Ed_P Well-Known Member

    Joined:
    Aug 7, 2004
    Messages:
    2,248
    Likes Received:
    0
    It does work, though with the missing IF brackets I don't know how, and it appears to accurate. There are several other sites I came across that use formulas to compute the phases also.

    I don't think location matters based on this link I visited yesterday.

    http://www.explorelearning.com/index.cf ... urceID=370

    Oops!! Wrong URL. Sorry. The updated one above is what I had originally intended. [:I]

    <font size="2"><font color="blue">Ed</font id="blue"></font id="size2">
     
  9. Ed_P

    Ed_P Well-Known Member

    Joined:
    Aug 7, 2004
    Messages:
    2,248
    Likes Received:
    0
    You can use this link to check the various moon phases for 2005.

    Phases of the Moon

    <font size="2"><font color="blue">Ed</font id="blue"></font id="size2">
     
  10. Ed_P

    Ed_P Well-Known Member

    Joined:
    Aug 7, 2004
    Messages:
    2,248
    Likes Received:
    0
    OK, I have found a better link for checking moon phases:

    http://aa.usno.navy.mil/data/docs/MoonPhase.html

    It covers a much larger period of time. [:)]

    In playing with the moon-phases javascript, that I posted previously, I have found that it is not as accurate as I originally hoped. However, I also found the error in it's variables causing the inaccuracy. It uses a date for the last blue moon of Feb 1996. That is incorrect for today. The last blue moon date for us is July 2004. And the next one is in 2007. Apparently the formula used by the script to compute the phases is an old one. [:)]

    So, to use the Javascript, change the line that sets the value of blueMoonDate to be:

    var blueMoonDate = new Date(2004, 6, 31, 18, 05, 0);

    And in two years change it to be:

    var blueMoonDate = new Date(2007, 5, 30, 13, 49, 0);

    You can also drop the word "approximately" from it's description of when the next Full Moon will occur. [8D]

    <font size="2"><font color="blue">Ed</font id="blue"></font id="size2">
     
  11. Ed_P

    Ed_P Well-Known Member

    Joined:
    Aug 7, 2004
    Messages:
    2,248
    Likes Received:
    0
    And a better link for the Moon_Phases script posted earlier, the website of it's author;

    http://www.eskimo.com/~jet/javascript/

    BTW The version of the script found above is more accurate displaying the time of the next Full Moon than the one at the original link.


    <font size="2"><font color="blue">Ed</font id="blue"></font id="size2">