Git Product home page Git Product logo

yahoo-weather-api-proxy's Introduction

yahoo-weather-api-proxy

๐Ÿš€๐ŸŒฆ Yahoo weather API proxy ready to deploy on ฮ” Now

Why?

Since Jan 3, 2019 the use of Yahoo weather API through YQL has been dismissed and therefore you cannot have an app that directly calls an open API for getting weather data.

Now you need to directly retrive the data from your back end using secret API keys you can receive here.

On this repository you will find a ready-to-deploy ฮ” Now server that can replace your back end in proxying your app's API calls.

Setup

Clone this repository

git clone https://github.com/crcarlo/yahoo-weather-api-proxy
cd yahoo-weather-api-proxy

Add your Yahoo API credentials by typing

now secret add yahoo-app-id <your-api-key>
now secret add yahoo-consumer-key <your-consumer-key>
now secret add yahoo-consumer-secret <your-consumer-secret>

Change the access control policy in the now.json file allowing your app's domain for avoiding use from other origins.

{
  ...
  "routes": [
    {
      "headers": {
        "Access-Control-Allow-Origin": "http://localhost:3000", // change to yourdomain.com
        ...
      }
    }
  ]
}

And deploy

now

Use

Now you can access Yahoo weather API through your now.sh instance like so

https://your-instance.now.sh/forecastrss?latitude=45.6481607&longitude=12.340719&format=json

You can find the API documentation here.

yahoo-weather-api-proxy's People

Contributors

crcarlo avatar

Stargazers

 avatar  avatar  avatar

Forkers

csuvajit

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.