Created
December 15, 2015 13:27
-
-
Save belltailjp/aa811c5ad9be0598c059 to your computer and use it in GitHub Desktop.
Example of OpenWeatherMap forecast API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% curl "http://api.openweathermap.org/data/2.5/forecast/daily?lat=35.0845611&lon=137.1706404&units=metric&appid=YOURAPIKEY" | |
{ | |
"city": { | |
"id": 1849814, | |
"name": "Toyota", | |
"coord": { | |
"lon": 137.149994, | |
"lat": 35.083328 | |
}, | |
"country": "JP", | |
"population": 0 | |
}, | |
"cod": "200", | |
"message": 0.03, | |
"cnt": 7, | |
"list": [ | |
{ | |
"dt": 1450144800, | |
"temp": { | |
"day": 13, | |
"min": 13, | |
"max": 13.39, | |
"night": 13.39, | |
"eve": 13, | |
"morn": 13 | |
}, | |
"pressure": 1019.22, | |
"humidity": 100, | |
"weather": [ | |
{ | |
"id": 501, | |
"main": "Rain", | |
"description": "moderate rain", | |
"icon": "10d" | |
} | |
], | |
"speed": 0.88, | |
"deg": 73, | |
"clouds": 80, | |
"rain": 5.97 | |
}, | |
{ | |
"dt": 1450231200, | |
"temp": { | |
"day": 14.11, | |
"min": 10.23, | |
"max": 14.11, | |
"night": 10.23, | |
"eve": 11.87, | |
"morn": 13.08 | |
}, | |
"pressure": 1015.17, | |
"humidity": 100, | |
"weather": [ | |
{ | |
"id": 802, | |
"main": "Clouds", | |
"description": "scattered clouds", | |
"icon": "03d" | |
} | |
], | |
"speed": 5.26, | |
"deg": 298, | |
"clouds": 36 | |
}, | |
{ | |
"dt": 1450317600, | |
"temp": { | |
"day": 9.42, | |
"min": 7.9, | |
"max": 9.47, | |
"night": 7.96, | |
"eve": 8.63, | |
"morn": 8.52 | |
}, | |
"pressure": 1019.91, | |
"humidity": 100, | |
"weather": [ | |
{ | |
"id": 500, | |
"main": "Rain", | |
"description": "light rain", | |
"icon": "10d" | |
} | |
], | |
"speed": 8.77, | |
"deg": 281, | |
"clouds": 0, | |
"rain": 0.23 | |
}, | |
{ | |
"dt": 1450404000, | |
"temp": { | |
"day": 6.82, | |
"min": 5.13, | |
"max": 9.08, | |
"night": 5.56, | |
"eve": 9.08, | |
"morn": 5.13 | |
}, | |
"pressure": 1006.79, | |
"humidity": 0, | |
"weather": [ | |
{ | |
"id": 600, | |
"main": "Snow", | |
"description": "light snow", | |
"icon": "13d" | |
} | |
], | |
"speed": 5.03, | |
"deg": 327, | |
"clouds": 12, | |
"snow": 0.03 | |
}, | |
{ | |
"dt": 1450490400, | |
"temp": { | |
"day": 5.16, | |
"min": 3.5, | |
"max": 7.91, | |
"night": 3.5, | |
"eve": 7.91, | |
"morn": 5.16 | |
}, | |
"pressure": 1015.49, | |
"humidity": 0, | |
"weather": [ | |
{ | |
"id": 600, | |
"main": "Snow", | |
"description": "light snow", | |
"icon": "13d" | |
} | |
], | |
"speed": 7.38, | |
"deg": 349, | |
"clouds": 4, | |
"rain": 0.22, | |
"snow": 0.06 | |
}, | |
{ | |
"dt": 1450576800, | |
"temp": { | |
"day": 4.43, | |
"min": 0.15, | |
"max": 9.52, | |
"night": 7.2, | |
"eve": 9.52, | |
"morn": 0.15 | |
}, | |
"pressure": 1016.93, | |
"humidity": 0, | |
"weather": [ | |
{ | |
"id": 500, | |
"main": "Rain", | |
"description": "light rain", | |
"icon": "10d" | |
} | |
], | |
"speed": 1.82, | |
"deg": 7, | |
"clouds": 49, | |
"rain": 1.06 | |
}, | |
{ | |
"dt": 1450663200, | |
"temp": { | |
"day": 9.73, | |
"min": 7.76, | |
"max": 12.34, | |
"night": 12.11, | |
"eve": 12.34, | |
"morn": 7.76 | |
}, | |
"pressure": 1007.94, | |
"humidity": 0, | |
"weather": [ | |
{ | |
"id": 502, | |
"main": "Rain", | |
"description": "heavy intensity rain", | |
"icon": "10d" | |
} | |
], | |
"speed": 1.34, | |
"deg": 51, | |
"clouds": 73, | |
"rain": 12.81 | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment