From 6eefd7e74c9938c46296b48645091be0bcbc5107 Mon Sep 17 00:00:00 2001 From: Christian Flach Date: Sun, 21 Jan 2018 12:59:48 +0100 Subject: [PATCH] Correct wind speed unit, fixes #113 --- Cmfcmf/OpenWeatherMap/Forecast.php | 2 +- Examples/WeatherForecast.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cmfcmf/OpenWeatherMap/Forecast.php b/Cmfcmf/OpenWeatherMap/Forecast.php index 45d80f4..fa999fe 100644 --- a/Cmfcmf/OpenWeatherMap/Forecast.php +++ b/Cmfcmf/OpenWeatherMap/Forecast.php @@ -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( diff --git a/Examples/WeatherForecast.php b/Examples/WeatherForecast.php index 5fd81bd..adf06c4 100644 --- a/Examples/WeatherForecast.php +++ b/Examples/WeatherForecast.php @@ -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
\n\n\n";