} else {
     $iconUrl = $arr['defailtIconUrl'];
 }
 #
 $textString = '';
 if ($txtFound) {
     $textString = $arr['weatherTxt'];
     if ($textString == '') {
         $textString = wsnoaafcttransstr('Clear');
     }
 }
 $wsFcstTable .= '<td><img src="' . $iconUrl . '" alt ="icon"  style=" width: ' . $wsIconWidth . '; vertical-align: bottom;" title="icon"/></td>';
 $wsFcstTable .= '<td>' . $textString . '</td>';
 #	normal temperature
 $temp = $arr['tempNU'];
 $tempString = noaacommontemperature($temp);
 #	app temperature
 if ($appFound && $arr['tempAppNU'] != '') {
     $diff = abs($arr['tempNU'] - $arr['tempAppNU']);
     if ($diff >= $appTempDiff) {
         $tempString .= '<br /><small>' . wsnoaafcttransstr('Feels like') . ' ' . round($arr['tempAppNU']) . $uomTemp . '</small>';
     }
 }
 $wsFcstTable .= '<td>' . $tempString . '</td>';
 # precipitation rain and or snow ??
 $rainString = $popString = '';
 if ($rainFound && 1.0 * $arr['liquidNU'] > 0) {
     $rainString .= $arr['liquid'] . '<br />' . wsnoaafcttransstr('for next 6 hours');
     $itRained = 2;
 }
 if ($popFound && $arr['pop'] != '' && $arr['pop'] != 0) {
Exemplo n.º 2
0
        $iconImg .= $arr['defaultIconurl'];
    }
    $iconImg .= '" style="width: ' . $wsIconWidth . ';" title="' . $arr['weatherDescShort'] . '" alt="' . $arr['weatherDescShort'] . '">';
    $icon .= $first . $iconImg . '</td>';
    if ($showPoP && $arr['PoP'] > 0) {
        $PoP .= $first . 'PoP: ' . $arr['PoP'] . '%</td>';
        $PoPNeeded = true;
    } else {
        $PoP .= $first . '</td>';
    }
    $descTxt = str_replace('Slight Chc', 'Slight&nbsp;Chc', trim($arr['weatherDescShort']));
    $desc .= $first . $descTxt . '</td>';
    if (isset($arr['tempMin'])) {
        $temp .= $first . '<span style="color: blue;">Lo: </span>' . noaacommontemperature($arr['tempMin']) . '</td>';
    } else {
        $temp .= $first . '<span style="color: red;">Hi: </span>' . noaacommontemperature($arr['tempMax']) . '</td>';
    }
    $first = '
      <td style="width: ' . $tdWidth . '; vertical-align: top; text-align:center; font-size: 80%;">';
}
$daypart .= '
    </tr>' . PHP_EOL;
$icon .= '
    </tr>' . PHP_EOL;
if ($showPoP) {
    $PoP .= '
    </tr>' . PHP_EOL;
}
$desc .= '
    </tr>' . PHP_EOL;
$temp .= '