따릉이
[날씨 API] 기온, 풍속, 강수량, 습도, 미세먼지, 초미세먼지, 오존 본문
1. 기온, 풍속, 강수량, 습도 (최대 15일 예보, 1시간 단위)
https://www.visualcrossing.com/resources/documentation/weather-api/timeline-weather-api/
Timeline Weather API – Visual Crossing Weather
The Timeline Weather API is the simplest and most powerful way to retrieve weather data. You can request data over any time window including windows that span the past, present, and future. The API will take care of the combining historical observations, c
www.visualcrossing.com
[응답에서 사용할 데이터]
days[i].datetime : 예보 날짜 (해당 위치의 timezone)
days[i].hours[j].datetime: 예보 시간 (해당 위치의 timezone)
days[i].hours[j].temp: 온도
days[i].hours[j].windspeed: 풍속
days[i].hours[j].precip: 강수량
days[i].hours[j].precipprob: 강수확률
days[i].hours[j].humidity: 습도 (%)
2. 미세먼지, 초미세먼지, 오존 (최대 5일 예보, 1시간 단위)
https://openweathermap.org/api/air-pollution
Air Pollution - OpenWeatherMap
Air Pollution API Home API Air Pollution API
openweathermap.org
[응답에서 사용할 데이터]
list[i].dt: 예보 날짜와 시간 (Unix, UTC) => 변환 필요
list[i].components.pm10: 미세먼지
list[i].components.pm2_5: 초미세먼지
list[i].components.o3: 오존
예시
'파이썬' 카테고리의 다른 글
[날씨 API] postgresql DB를 이용해서 날씨데이터 관리 (0) | 2021.07.20 |
---|---|
[파이썬] Control statements, range(), enumerate(), List Comprehension, Generator Expression, Class (0) | 2021.01.12 |
[파이썬] Types, Operators, Strings, Function, List, Tuple, Set, Dict (0) | 2021.01.11 |
[파이썬_기초] 7. 파일 입출력 (0) | 2021.01.10 |
[파이썬_기초] 6. 예외 처리 & 내장 함수, 외장 함수 (0) | 2021.01.10 |