Weather Data API Requests
The Weather Data tool creates an interface between node.js applications and both the Open Weather API and the National Weather Service API.
The Requests avaliable are:
- Open Weather API | Current Weather
- Open Weather API | 5 Day Forecast - 3 Hour Increments
- National Weather Service API | Current Weather (United States Lat/Lon Only)
Usage
npm install weather-data
const weather = require('weather-data')
Refer to request time:
weather.globalCoordinatesWeekly(latitude, longitude, apiKey, units)
weather.globalCoordinatesCurrent(latitude, longitude, apiKey, units)
weather.readByCoordinates = function(latitude, longitude)