GithubHelp home page GithubHelp logo

weatherapi's Introduction

weatherapi

This is a repo of static files that can be used as a mock weather API for example applications.

Date

A mock endpoint for the sever's date. The response is the Unix timestamp.

curl https://airbrake.github.io/weatherapi/date

Locations

Gets the supported locations as an array of identifiers. Each location identifier can be used with the weather endpoint below.

curl https://airbrake.github.io/weatherapi/locations

Response:

[ "austin", "pune", "santabarbara" ]

Weather

Gets the weather information for a supported location (from the locations endpoint above).

# curl https://airbrake.github.io/weatherapi/weather/<locationId>
curl https://airbrake.github.io/weatherapi/weather/austin

Response (excerpt):

{
  "lat": 30.2672,
  "lon": -97.7431,
  "timezone": "America/Chicago",
  "timezone_offset": -21600,
  "current": {
    "dt": 1638466167,
    "sunrise": 1638450665,
    "sunset": 1638487822,
    "temp": 71.22,
    "feels_like": 71.85,
    "pressure": 1020,
    "humidity": 81,
    "dew_point": 65.1,
    "uvi": 2.63,
    "clouds": 1,
    "visibility": 10000,
    "wind_speed": 1.99,
    "wind_deg": 113,
    "wind_gust": 5.01,
    "weather": [
      {
        "id": 800,
        "main": "Clear",
        "description": "clear sky",
        "icon": "01d"
      }
    ]
  },
  ...
}

weatherapi's People

Contributors

scottsbaldwin avatar

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.