8000 GitHub - SongGwanSeok/open-weather-API
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

SongGwanSeok/open-weather-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Weather API

스크린샷 2023-06-13 오전 1 08 13

프로그램 설명

이 프로그램은 기상정보 open api인 open weather map api를 가져와 간단하게 사용할 수 있도록 만든 프로그램입니다.

3가지 기능을 구현했으며, [1. 현재 날씨 2. 일기 예보 3. 미세 먼지] 세가지 기능이 있습니다.

현재 날씨는 3가지 정보로 검색이 가능합니다. 위도와 경도, 도시 이름, 우편 번호로 현재 날씨를 검색합니다.

일기 예보와 미세 먼지는 도시 이름으로만 검색이 가능합니다.


사용한 언어 / 라이브러리 / API


open geocoding API https://nominatim.org/

oepn weather map API https://openweathermap.org/

Licence: Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright


프로그램 가이드

리눅스

1. 파일 다운
  $ wget [원하는 버전의 파일 다운로드 링크]

2. libcurl 설치
  $ apt-get install libcurl4-openssl-dev
  
3. 압축 해제
  tar.gz 파일
  $ tar -zxvf [다운 받은 tar 파일]
  
  zip 파일
  $ unzip [다운 받은 zip 파일]
  
4. 실행 파일 만들기 
  $ g++ -o weather main.cpp -lcurl
  
5. 실행
  $ ./weather

기능 소개

  1. 현재 날씨

    a. 위도, 경도 : 위도, 경도 정보를 입력하면 현재 날씨 정보를 반환받는다.

    1-1

    b. 도시 이름 : 도시 이름을 입력하면 현재 날씨 정보를 반환받는다.

    1-2

    c. 우편 번호 : 우편 번호를 입력하면 현재 날씨 정보를 반환받는다.

    1-3
  2. 5일치 일기 예보 : 도시 이름을 입력하면 5일치 일기 예보를 반환받는다.

    2-1 2-2
  3. 미세먼지 : 도시 이름을 입력하면 현재 미세먼지 정보를 반환받는다.

    스크린샷 2023-06-13 오후 10 17 56
  4. 종료 : 프로그램을 종료시킨다.

License

This project is licensed under the MIT license. Please see the LICENSE file distributed with this source code for further information regarding copyright and licensing.

Be aware that the OpenWeatherMap data is not licensed under the MIT. Check out the following official links to read about the terms, pricing and license of OpenWeatherMap before using their service:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published
0