Skip to content

Commit 045e765

Browse files
authored
Merge pull request #115 from cmfcmf/issue-113
Correct wind speed unit
2 parents 8e7e747 + 6eefd7e commit 045e765

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cmfcmf/OpenWeatherMap/Forecast.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function __construct(\SimpleXMLElement $xml, $units)
5959
if ($units == 'metric') {
6060
$windSpeedUnit = 'm/s';
6161
} else {
62-
$windSpeedUnit = 'mps';
62+
$windSpeedUnit = 'mph';
6363
}
6464

6565
$this->wind = new Wind(

Examples/WeatherForecast.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
// Get OpenWeatherMap object. Don't use caching (take a look into Example_Cache.php to see how it works).
2929
$owm = new OpenWeatherMap($myApiKey);
3030

31-
// Example 1: Get forecast for the next 10 days for Berlin.
31+
// Example 1: Get forecast for the next 5 days for Berlin.
3232
$forecast = $owm->getWeatherForecast('Berlin', $units, $lang, '', 5);
3333
echo "EXAMPLE 1<hr />\n\n\n";
3434

0 commit comments

Comments
 (0)