';
$forecast .= '' . $time . ' | Wind: ';
if (isset($entry['wind'])) {
if ($entry['windDirection'] == 'Variable') {
if (!empty($this->_params['knots'])) {
$forecast .= sprintf(_("%s at %s %s"),
strtolower($entry['windDirection']),
round($metar->convertSpeed($entry['wind'],
$units['wind'], 'kt')),
'kt');
} else {
$forecast .= sprintf(_("%s at %s %s"),
$entry['windDirection'],
round($entry['wind']),
$units['wind']);
}
} elseif (($entry['windDegrees'] == '000') &&
($entry['wind'] == '0')) {
$forecast .= sprintf(_("calm"));
} else {
$forecast .= sprintf(_("from the %s (%s) at %s %s"),
$entry['windDirection'],
$entry['windDegrees'],
empty($this->_params['knots']) ?
round($entry['wind']) :
round($metar->convertSpeed($entry['wind'], $units['wind'], 'kt')),
empty($this->_params['knots']) ?
$units['wind'] :
'kt');
}
$forecast .= ' ';
}
if (isset($entry['temperatureLow']) || isset($entry['temperatureHigh'])) {
$forecast .= 'Temperature';
if (isset($entry['temperatureLow'])) {
$forecast .= ' Low:';
$forecast .= $entry['temperatureLow'];
}
if (isset($entry['temperatureHigh'])) {
$forecast .= ' High:';
$forecast .= $entry['temperatureHigh'];
}
$forecast .= ' ';
}
if (isset($entry['windshear'])) {
$forecast .= 'Windshear:';
$forecast .= sprintf(_("from the %s (%s) at %s %s"),
$entry['windshearDirection'],
$entry['windshearDegrees'],
$entry['windshearHeight'],
$units['height']);
$forecast .= ' ';
}
if (isset($entry['visibility'])) {
$forecast .= 'Visibility: ';
$forecast .= strtolower($entry['visQualifier']) . ' ' . $entry['visibility'] . ' ' . $units['vis'];
$forecast .= ' ';
}
if (isset($entry['condition'])) {
$forecast .= 'Conditions: ';
$forecast .= $entry['condition'];
$forecast .= ' ';
}
$forecast .= 'Clouds: ';
foreach ($entry['clouds'] as $clouds) {
if (isset($clouds['type'])) {
$forecast .= ' ' . $clouds['type'];
}
$forecast .= ' ' . $clouds['amount'];
if (isset($clouds['height'])) {
$forecast .= ' at ' . $clouds['height'] . ' ' . $units['height'];
} else {
$forecast .= ' ';
}
}
$forecast .= ' |
';
if (isset($entry['fmc'])) {
$item++;
foreach ($entry['fmc'] as $fmcEntry) {
$forecast .= '