Skip to content

A Gatsby source plugin to load resources from the OpenWeatherMap API

License

Notifications You must be signed in to change notification settings

yorchv/gatsby-source-openweathermap

 
 

Repository files navigation

gatsby-source-openweathermap

This source plugin for Gatsby will make weather infomation from OpenWeatherMap available in GraphQL queries.

Installation

# Install the plugin
yarn add gatsby-source-openweathermap

In gatsby-config.js:

module.exports = {
  plugins: [
 {
      resolve: `gatsby-source-openweathermap`,
      options: {
        apikey: 'YOUR KEY',
        location: 'York',
        units: 'metric',
        type: 'forecast'
      },
    },
  ]
};

NOTE: To get a OpenWeatherMap API key, register for a OpenWeatherMap account.

See the OpenWeatherMap API docs.

About

A Gatsby source plugin to load resources from the OpenWeatherMap API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%