weather-data
v1.0.1
Published
weather request API using longitude and latitude[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[W[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[
Downloads
2
Maintainers
Readme
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)