{"action":"created","issue":{"url":"https://api.github.com/repos/Fatra-Studios/froggo/issues/1","repository_url":"https://api.github.com/repos/Fatra-Studios/froggo","labels_url":"https://api.github.com/repos/Fatra-Studios/froggo/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Fatra-Studios/froggo/issues/1/comments","events_url":"https://api.github.com/repos/Fatra-Studios/froggo/issues/1/events","html_url":"https://github.com/Fatra-Studios/froggo/issues/1","id":393779644,"node_id":"MDU6SXNzdWUzOTM3Nzk2NDQ=","number":1,"title":"Weather APIs","user":{"login":"Sibyx","id":2022531,"node_id":"MDQ6VXNlcjIwMjI1MzE=","avatar_url":"https://avatars0.githubusercontent.com/u/2022531?v=4","gravatar_id":"","url":"https://api.github.com/users/Sibyx","html_url":"https://github.com/Sibyx","followers_url":"https://api.github.com/users/Sibyx/followers","following_url":"https://api.github.com/users/Sibyx/following{/other_user}","gists_url":"https://api.github.com/users/Sibyx/gists{/gist_id}","starred_url":"https://api.github.com/users/Sibyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sibyx/subscriptions","organizations_url":"https://api.github.com/users/Sibyx/orgs","repos_url":"https://api.github.com/users/Sibyx/repos","events_url":"https://api.github.com/users/Sibyx/events{/privacy}","received_events_url":"https://api.github.com/users/Sibyx/received_events","type":"User","site_admin":false},"labels":[{"id":1169670176,"node_id":"MDU6TGFiZWwxMTY5NjcwMTc2","url":"https://api.github.com/repos/Fatra-Studios/froggo/labels/question","name":"question","color":"d876e3","default":true}],"state":"open","locked":false,"assignee":{"login":"Sibyx","id":2022531,"node_id":"MDQ6VXNlcjIwMjI1MzE=","avatar_url":"https://avatars0.githubusercontent.com/u/2022531?v=4","gravatar_id":"","url":"https://api.github.com/users/Sibyx","html_url":"https://github.com/Sibyx","followers_url":"https://api.github.com/users/Sibyx/followers","following_url":"https://api.github.com/users/Sibyx/following{/other_user}","gists_url":"https://api.github.com/users/Sibyx/gists{/gist_id}","starred_url":"https://api.github.com/users/Sibyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sibyx/subscriptions","organizations_url":"https://api.github.com/users/Sibyx/orgs","repos_url":"https://api.github.com/users/Sibyx/repos","events_url":"https://api.github.com/users/Sibyx/events{/privacy}","received_events_url":"https://api.github.com/users/Sibyx/received_events","type":"User","site_admin":false},"assignees":[{"login":"Sibyx","id":2022531,"node_id":"MDQ6VXNlcjIwMjI1MzE=","avatar_url":"https://avatars0.githubusercontent.com/u/2022531?v=4","gravatar_id":"","url":"https://api.github.com/users/Sibyx","html_url":"https://github.com/Sibyx","followers_url":"https://api.github.com/users/Sibyx/followers","following_url":"https://api.github.com/users/Sibyx/following{/other_user}","gists_url":"https://api.github.com/users/Sibyx/gists{/gist_id}","starred_url":"https://api.github.com/users/Sibyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sibyx/subscriptions","organizations_url":"https://api.github.com/users/Sibyx/orgs","repos_url":"https://api.github.com/users/Sibyx/repos","events_url":"https://api.github.com/users/Sibyx/events{/privacy}","received_events_url":"https://api.github.com/users/Sibyx/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-12-23T20:50:42Z","updated_at":"2018-12-25T18:30:25Z","closed_at":null,"author_association":"NONE","body":"Research of available APIs to harvest data. Find out which data are available and which states of weather are possible to read."},"comment":{"url":"https://api.github.com/repos/Fatra-Studios/froggo/issues/comments/449867110","html_url":"https://github.com/Fatra-Studios/froggo/issues/1#issuecomment-449867110","issue_url":"https://api.github.com/repos/Fatra-Studios/froggo/issues/1","id":449867110,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTg2NzExMA==","user":{"login":"Sibyx","id":2022531,"node_id":"MDQ6VXNlcjIwMjI1MzE=","avatar_url":"https://avatars0.githubusercontent.com/u/2022531?v=4","gravatar_id":"","url":"https://api.github.com/users/Sibyx","html_url":"https://github.com/Sibyx","followers_url":"https://api.github.com/users/Sibyx/followers","following_url":"https://api.github.com/users/Sibyx/following{/other_user}","gists_url":"https://api.github.com/users/Sibyx/gists{/gist_id}","starred_url":"https://api.github.com/users/Sibyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sibyx/subscriptions","organizations_url":"https://api.github.com/users/Sibyx/orgs","repos_url":"https://api.github.com/users/Sibyx/repos","events_url":"https://api.github.com/users/Sibyx/events{/privacy}","received_events_url":"https://api.github.com/users/Sibyx/received_events","type":"User","site_admin":false},"created_at":"2018-12-25T18:30:25Z","updated_at":"2018-12-25T18:30:25Z","author_association":"NONE","body":"Here is my analysis of [OpenWeatherMap.com](https://openweathermap.org/) service.\r\n\r\n## TL;DR\r\n\r\nWe are able to get information according to the GPS coordinates. There is an `weather` array in API response, where we can find everything we need in string descriptors.\r\n\r\nMore information about available groups: [Weather condition codes](https://openweathermap.org/weather-conditions#Weather-Condition-Codes-2)\r\n\r\n## Input\r\n\r\nFirstly, I have to create account to have an access to the service. \r\n\r\nAPI is able to receive these type of input:\r\n- City & country code\r\n- City ID according to [their own database](http://bulk.openweathermap.org/sample/)\r\n- GPS coordinates (it's probably our best choice)\r\n- ZIP & country code\r\n\r\n## Example request\r\n\r\nHere is main example request for Martin:\r\n\r\n```\r\nGET https://api.openweathermap.org/data/2.5/weather\r\n   ?lat=49.0822957\r\n   &lon=18.929501\r\n   &appid={API_KEY}\r\n```\r\n\r\n```json\r\n{\r\n  \"coord\": {\r\n    \"lon\": 18.93,\r\n    \"lat\": 49.08\r\n  },\r\n  \"weather\": [\r\n    {\r\n      \"id\": 600,\r\n      \"main\": \"Snow\",\r\n      \"description\": \"light snow\",\r\n      \"icon\": \"13n\"\r\n    }\r\n  ],\r\n  \"base\": \"stations\",\r\n  \"main\": {\r\n    \"temp\": 273.68,\r\n    \"pressure\": 1025,\r\n    \"humidity\": 90,\r\n    \"temp_min\": 273.15,\r\n    \"temp_max\": 274.15\r\n  },\r\n  \"wind\": {\r\n    \"speed\": 0.5\r\n  },\r\n  \"clouds\": {\r\n    \"all\": 90\r\n  },\r\n  \"dt\": 1545759000,\r\n  \"sys\": {\r\n    \"message\": 0.0021,\r\n    \"country\": \"SK\",\r\n    \"sunrise\": 1545719870,\r\n    \"sunset\": 1545749493,\r\n    \"type\": 1,\r\n    \"id\": 7057\r\n  },\r\n  \"id\": 3058780,\r\n  \"name\": \"Martin\",\r\n  \"cod\": 200,\r\n  \"visibility\": 8000\r\n}\r\n```\r\n\r\n## Fields\r\n\r\nHere is the list of interesting information from API response\r\n\r\n- `weather`: array of weather description objects (THIS IS WHAT ARE WE LOOKING FOR)\r\n   - `id`: an identification code from docs\r\n   - `main`: group name (`Thunderstorm` | `Drizzle` | `Rain` | `Snow` | `Atmosphere` | `Clear` | `Clouds`)\r\n   - `description`: [Weather condition codes](https://openweathermap.org/weather-conditions#Weather-Condition-Codes-2)\r\n- `name`: Name of the city or location\r\n- `clouds.all`: Cloudiness in %\r\n- `main`: Object containing all available weather measures"}}
{"actor":{"display_login":"Sibyx"}}