{"action":"created","issue":{"url":"https://api.github.com/repos/cmfcmf/OpenWeatherMap-PHP-Api/issues/23","labels_url":"https://api.github.com/repos/cmfcmf/OpenWeatherMap-PHP-Api/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/cmfcmf/OpenWeatherMap-PHP-Api/issues/23/comments","events_url":"https://api.github.com/repos/cmfcmf/OpenWeatherMap-PHP-Api/issues/23/events","html_url":"https://github.com/cmfcmf/OpenWeatherMap-PHP-Api/issues/23","id":60327691,"number":23,"title":"Incorrect current weather values","user":{"login":"caBBAlainB","id":9322571,"avatar_url":"https://avatars.githubusercontent.com/u/9322571?v=3","gravatar_id":"","url":"https://api.github.com/users/caBBAlainB","html_url":"https://github.com/caBBAlainB","followers_url":"https://api.github.com/users/caBBAlainB/followers","following_url":"https://api.github.com/users/caBBAlainB/following{/other_user}","gists_url":"https://api.github.com/users/caBBAlainB/gists{/gist_id}","starred_url":"https://api.github.com/users/caBBAlainB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caBBAlainB/subscriptions","organizations_url":"https://api.github.com/users/caBBAlainB/orgs","repos_url":"https://api.github.com/users/caBBAlainB/repos","events_url":"https://api.github.com/users/caBBAlainB/events{/privacy}","received_events_url":"https://api.github.com/users/caBBAlainB/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cmfcmf/OpenWeatherMap-PHP-Api/labels/OWM%20bug","name":"OWM bug","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":{"login":"cmfcmf","id":2145092,"avatar_url":"https://avatars.githubusercontent.com/u/2145092?v=3","gravatar_id":"","url":"https://api.github.com/users/cmfcmf","html_url":"https://github.com/cmfcmf","followers_url":"https://api.github.com/users/cmfcmf/followers","following_url":"https://api.github.com/users/cmfcmf/following{/other_user}","gists_url":"https://api.github.com/users/cmfcmf/gists{/gist_id}","starred_url":"https://api.github.com/users/cmfcmf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmfcmf/subscriptions","organizations_url":"https://api.github.com/users/cmfcmf/orgs","repos_url":"https://api.github.com/users/cmfcmf/repos","events_url":"https://api.github.com/users/cmfcmf/events{/privacy}","received_events_url":"https://api.github.com/users/cmfcmf/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-03-09T11:04:21Z","updated_at":"2015-03-09T11:28:49Z","closed_at":"2015-03-09T11:28:49Z","body":"hello,\r\nI remark that the current values you get from the getweather() request are not the current ones but the ones at 06:00.\r\n\r\nFor example I made a test at 11:53 on a little French town.\r\n\r\n$rawWeather = $owm->getRawWeatherData(['lat' => '44.178299', 'lon' => ''3.4298'], 'metric', $language, $OpenWeatherApiKey, 'json');\r\n\r\nresult from is : (notice temperature of 6.6)\r\n\r\n \\src\\Controller\\DeviceconnectionsController.php (line 395)\r\n\r\n[\r\n\t'coord' => [\r\n\t\t'lon' => (float) 3.36,\r\n\t\t'lat' => (float) 44.22\r\n\t],\r\n\t'sys' => [\r\n\t\t'type' => (int) 3,\r\n\t\t'id' => (int) 59713,\r\n\t\t'message' => (float) 0.0484,\r\n\t\t'country' => 'FR',\r\n\t\t'sunrise' => (int) 1425881346,\r\n\t\t'sunset' => (int) 1425923097\r\n\t],\r\n\t'weather' => [\r\n\t\t(int) 0 => [\r\n\t\t\t'id' => (int) 800,\r\n\t\t\t'main' => 'Clear',\r\n\t\t\t'description' => 'ensoleillÃ©',\r\n\t\t\t'icon' => '01d'\r\n\t\t]\r\n\t],\r\n\t'base' => 'cmc stations',\r\n\t'main' => [\r\n\t\t'temp' => (float) 6.6,\r\n\t\t'temp_min' => (float) 6.6,\r\n\t\t'temp_max' => (float) 6.6,\r\n\t\t'pressure' => (float) 1038.49,\r\n\t\t'humidity' => (int) 40\r\n\t],\r\n\t'wind' => [\r\n\t\t'speed' => (float) 1.06,\r\n\t\t'deg' => (float) 355.001\r\n\t],\r\n\t'clouds' => [\r\n\t\t'all' => (int) 0\r\n\t],\r\n\t'dt' => (int) 1425896398,\r\n\t'id' => (int) 6449384,\r\n\t'name' => 'Meyrueis',\r\n\t'cod' => (int) 200\r\n]\r\n\r\nRemark that you get these values from forecast request:\r\n$rawForecastDatas = $owm->getRawHourlyForecastData(['lat' => '44.178299', 'lon' => '3.4298', 'metric', $language, $OpenWeatherApiKey, 'json');\r\n\r\nresult is: (notice temperature of 6.6 at 06:00)\r\n[\r\n\t(int) 0 => [\r\n\t\t'dt' => (int) 1425891600,\r\n\t\t'main' => [\r\n\t\t\t'temp' => (float) 6.6,\r\n\t\t\t'temp_min' => (float) 6.6,\r\n\t\t\t'temp_max' => (float) 6.6,\r\n\t\t\t'pressure' => (float) 1038.49,\r\n\t\t\t'sea_level' => (float) 1038.49,\r\n\t\t\t'grnd_level' => (float) 1038.49,\r\n\t\t\t'humidity' => (float) 40,\r\n\t\t\t'temp_kf' => (float) 0\r\n\t\t],\r\n\t\t'weather' => [\r\n\t\t\t(int) 0 => [\r\n\t\t\t\t'id' => (int) 800,\r\n\t\t\t\t'main' => 'Clouds',\r\n\t\t\t\t'description' => 'clear sky',\r\n\t\t\t\t'icon' => '01d'\r\n\t\t\t]\r\n\t\t],\r\n\t\t'clouds' => [\r\n\t\t\t'all' => (float) 0\r\n\t\t],\r\n\t\t'wind' => [\r\n\t\t\t'speed' => (float) 1.06,\r\n\t\t\t'deg' => (float) 355.001\r\n\t\t],\r\n\t\t'sys' => [\r\n\t\t\t'pod' => 'd'\r\n\t\t],\r\n\t\t'dt_txt' => '2015-3-9 09:00:00'\r\n\t],\r\n\t(int) 1 => [\r\n\t\t'dt' => (int) 1425913200,\r\n\t\t'main' => [\r\n\t\t\t'temp' => (float) 19.82,\r\n\t\t\t'temp_min' => (float) 14.97,\r\n\t\t\t'temp_max' => (float) 19.82,\r\n\t\t\t'pressure' => (float) 929.16,\r\n\t\t\t'sea_level' => (float) 1036.88,\r\n\t\t\t'grnd_level' => (float) 929.16,\r\n\t\t\t'humidity' => (int) 34,\r\n\t\t\t'temp_kf' => (float) 4.86\r\n\t\t],\r\n\t\t'weather' => [\r\n\t\t\t(int) 0 => [\r\n\t\t\t\t'id' => (int) 800,\r\n\t\t\t\t'main' => 'Clear',\r\n\t\t\t\t'description' => 'ensoleillÃ©',\r\n\t\t\t\t'icon' => '01d'\r\n\t\t\t]\r\n\t\t],\r\n\t\t'clouds' => [\r\n\t\t\t'all' => (int) 0\r\n\t\t],\r\n\t\t'wind' => [\r\n\t\t\t'speed' => (float) 1.76,\r\n\t\t\t'deg' => (float) 5.00757\r\n\t\t],\r\n\t\t'sys' => [\r\n\t\t\t'pod' => 'd'\r\n\t\t],\r\n\t\t'dt_txt' => '2015-03-09 15:00:00'\r\n\t],\r\n\r\nBut from openWeatherMap website, the current temperature was:\r\n![xeuxmkx](https://cloud.githubusercontent.com/assets/9322571/6553684/99dd79b4-c653-11e4-8172-5c30aee63353.png)\r\n\r\nand if I made a request directly:\r\n\r\nhttp://api.openweathermap.org/data/2.5/weather?q=Meyrueis,fr\r\nreturned values are:\r\n{\"coord\":{\"lon\":3.43,\"lat\":44.18},\"sys\":{\"message\":0.0486,\"country\":\"France\",\"sunrise\":1425881328,\"sunset\":1425923081},\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"Sky is Clear\",\"icon\":\"01d\"}],\"base\":\"cmc stations\",\"main\":{\"temp\":286.787,\"temp_min\":286.787,\"temp_max\":286.787,\"pressure\":930.1,\"sea_level\":1038.49,\"grnd_level\":930.1,\"humidity\":40},\"wind\":{\"speed\":1.06,\"deg\":355.001},\"clouds\":{\"all\":0},\"dt\":1425898863,\"id\":6449384,\"name\":\"Meyrueis\",\"cod\":200}\r\n\r\nWe see here that temp=286.787 - 273.15 = 13.6°C \r\n\r\nSo it seems there is something wrong in you api.\r\n\r\nHope this help.\r\nregards,"},"comment":{"url":"https://api.github.com/repos/cmfcmf/OpenWeatherMap-PHP-Api/issues/comments/77837449","html_url":"https://github.com/cmfcmf/OpenWeatherMap-PHP-Api/issues/23#issuecomment-77837449","issue_url":"https://api.github.com/repos/cmfcmf/OpenWeatherMap-PHP-Api/issues/23","id":77837449,"user":{"login":"caBBAlainB","id":9322571,"avatar_url":"https://avatars.githubusercontent.com/u/9322571?v=3","gravatar_id":"","url":"https://api.github.com/users/caBBAlainB","html_url":"https://github.com/caBBAlainB","followers_url":"https://api.github.com/users/caBBAlainB/followers","following_url":"https://api.github.com/users/caBBAlainB/following{/other_user}","gists_url":"https://api.github.com/users/caBBAlainB/gists{/gist_id}","starred_url":"https://api.github.com/users/caBBAlainB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caBBAlainB/subscriptions","organizations_url":"https://api.github.com/users/caBBAlainB/orgs","repos_url":"https://api.github.com/users/caBBAlainB/repos","events_url":"https://api.github.com/users/caBBAlainB/events{/privacy}","received_events_url":"https://api.github.com/users/caBBAlainB/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T11:28:48Z","updated_at":"2015-03-09T11:28:48Z","body":"That's done.\r\nSorry and thanks anyway.\r\nRegards,"}}