Skip to content

Commit

Permalink
Correct wind speed unit, fixes #113
Browse files Browse the repository at this point in the history
  • Loading branch information
cmfcmf committed Jan 21, 2018
1 parent 8e7e747 commit 6eefd7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cmfcmf/OpenWeatherMap/Forecast.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function __construct(\SimpleXMLElement $xml, $units)
if ($units == 'metric') {
$windSpeedUnit = 'm/s';
} else {
$windSpeedUnit = 'mps';
$windSpeedUnit = 'mph';
}

$this->wind = new Wind(
Expand Down
2 changes: 1 addition & 1 deletion Examples/WeatherForecast.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
// Get OpenWeatherMap object. Don't use caching (take a look into Example_Cache.php to see how it works).
$owm = new OpenWeatherMap($myApiKey);

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

Expand Down

0 comments on commit 6eefd7e

Please sign in to comment.