Skip to content

Correct wind speed unit #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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