Found out that 1) Moon data has a different format after moonset.
Code: Select all
<td style="padding: 3px; border-bottom: 1px solid CCC;">Moon</td>
<td style="border-bottom: 1px solid #CCC;">
3:28 AM PDT (5/23)
</td>
<td style="border-bottom: 1px solid #CCC;">
4:41 PM PDT (5/23)
</td>
As far as the precip code not closing sockets, the problem was occurring when my ISP's dns took a dump and wasn't responding, so some of the returns didn't close it, so I just added catch {close $wzsock} all around before the returns.