Giter Club home page Giter Club logo

weatherlist's People

Contributors

bhoon-coding avatar

Watchers

 avatar

weatherlist's Issues

Date 표기

#3 Network branch 에서 작업

  • Date 표기일 바꾸기
  • 하루 시간대 하나씩만 가져오기 filter 사용
  • 오늘, 내일 -> Today, Tomorrow로 변경

TableView 세팅

  • UITableView 세팅
    • tableView 레이아웃
    • dataSource
    • Section
    • RxDataSource 구현 해보기

초기세팅

  • 코드 베이스 UI 세팅
  • 폴더구조 세팅
  • Snapkit 설치 (SPM)

Weather Model 생성

  • 응답 값 모델링
Response
{
  "cod": "200",
  "message": 0,
  "cnt": 40,
  "list": [
    {
      "dt": 1647345600,
      "main": {
        "temp": 287.39,
        "feels_like": 286.38,
        "temp_min": 286.69,
        "temp_max": 287.39,
        "pressure": 1021,
        "sea_level": 1021,
        "grnd_level": 1018,
        "humidity": 58,
        "temp_kf": 0.7
      },
      "weather": [
        {
          "id": 803,
          "main": "Clouds",
          "description": "broken clouds",
          "icon": "04d"
        }
      ],
      "clouds": {
        "all": 71
      },
      "wind": {
        "speed": 3.08,
        "deg": 128,
        "gust": 4.3
      },
      "visibility": 10000,
      "pop": 0,
      "sys": {
        "pod": "d"
      },
      "dt_txt": "2022-03-15 12:00:00"
    },
    {
      "dt": 1647356400,
      "main": {
        "temp": 287.09,
        "feels_like": 286.13,
        "temp_min": 286.5,
        "temp_max": 287.09,
        "pressure": 1021,
        "sea_level": 1021,
        "grnd_level": 1016,
        "humidity": 61,
        "temp_kf": 0.59
      },
      "weather": [
        {
          "id": 803,
          "main": "Clouds",
          "description": "broken clouds",
          "icon": "04d"
        }
      ],
      "clouds": {
        "all": 81
      },
      "wind": {
        "speed": 3.28,
        "deg": 168,
        "gust": 3.96
      },
      "visibility": 10000,
      "pop": 0,
      "sys": {
        "pod": "d"
      },
      "dt_txt": "2022-03-15 15:00:00"
    }
// ...

Network

  • 데이터 호출 테스트
  • Postman으로 데이터 확인
  • APIKey plist에 따로저장
  • Network 구현 (with Alamofire)
  • 도시 3개 호출
api.openweathermap.org/data/2.5/forecast?q=seoul&appid={APIKEY}&units=metric

&units=metric → 섭씨로 변경

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.