New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dpd-forecastio

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dpd-forecastio

Deployd Resource Wrapper for forecast.io weather information

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

#Forecast.io Resource

This resource wraps access to the forecast.io weather api. The resource also contains logic for caching forecast.io results to save api calls to the forecast.io service.

##Installation

$ npm install dpd-forecastio

Need help installing deployd modules?

##Configuration Option

In the dashboard you can add the forecastio resource. You will need to configure the resource and provide at minimum an API key.

###Options:

  • apiKey: required to access forecast.io
  • cacheResult: should API calls be cached locally in mongo
  • cacheTTL: how long should the cached results be considered valid
  • debugLoggin: log debugging messages to the console.
  • purgeCache: will purge all cached results on any request to the resource.

##Weather Data

You can make GET requests to the resource specifying latitude and longitude and you will get back forecast.io weather data.

###Example Request Using client library

dpd.weather.get({
  lat:42.3975734, 
  lon:-71.1332062
}, function(data) {
  console.log(data)
});

FAQs

Package last updated on 31 May 2013

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc