Skip to content
deployd app resource wrapper for weather api
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
package.json Resource

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


$ 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.


  • apiKey: required to access
  • 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 weather data.

Example Request Using client library{
}, function(data) {
Something went wrong with that request. Please try again.