Socket
Socket
Sign inDemoInstall

gatsby-source-openweathermap

Package Overview
Dependencies
7
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gatsby-source-openweathermap

A Gatsby source plugin to load resources from the OpenWeatherMap API.


Version published
0
Maintainers
1
Install size
555 kB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 09 Feb 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc