Git Product home page Git Product logo

weather-api-python's Introduction

Weather Company Data API access for IBM Cloud

This project shows how to build a basic data access application that continuously runs in the background, processing a variety of weather data from the Weather Company Data for IBM REST API endpoints, including severe weather alerts, tropical storm forecasts, and the daily weather almanac to find conditions over time.

Obtain a Weather Company API Key

If you're participating in the Call for Code Global Challenge, go the the special Call for Code Weather web site and register. A time-limited API key will be sent to you via email. The documentation for the Weather Company APIs for Call for Code can be found the here.

All others, sign up for IBM Cloud here and provision the Weather Company Data service. The Weather Company Data service uses slightly different API versions. You can reference its documentation here.

Getting Started in IBM Cloud

Deploy this application to IBM Cloud.

  1. Install and configure the IBM Cloud Developer Tools

  2. Clone this repository

    $ git clone https://github.com/Call-for-Code/weather-api-python.git
    $ cd weather-api-python
    
  3. Deploy the application without starting it

    $ ibmcloud cf push --no-start
    
  4. Configure your Weather API key <YOUR_API_KEY> and start the application

    $ ibmcloud cf set-env weather-api-python WEATHER_API_KEY <YOUR_API_KEY>
    $ ibmcloud cf start weather-api-python
    

Getting Started on your local machine

To run this application on your local machine, first install Node.js.

  1. Clone this repository

    $ git clone https://github.com/Call-for-Code/weather-api-python.git
    $ cd weather-api-python
    
  2. Install the dependencies

    $ pip install -r requirements.txt
    
  3. Set your Weather API key <YOUR_API_KEY> when running the application

    $ export WEATHER_API_KEY=<YOUR_API_KEY>
    $ python app.py
    

License

This code is licensed under Apache 2.0. Full license text is available in LICENSE.

weather-api-python's People

Contributors

vabarbosa avatar rajrsingh avatar

Watchers

 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.