Not another Weather API
nWeather is a GraphQL wrapper for the OpenWeatherMap REST endpoint. Visit the ZEIT deployment
query {
currentWeather(city: "Baton Rouge") {
name
weather {
main
description
}
main {
temp
}
}
}
query {
currentWeather(zip: 70802) {
name
weather {
main
description
}
main {
temp
}
}
}
query {
currentWeather(coords: { lat: 30.44, lon: -91.17 }) {
name
weather {
main
description
}
main {
temp
}
}
}
Forecast list is in 3-hour intervals (i.e. limit: 3
returns 3 sets of data across a 9 hour span)
query {
forecast(zip: 70802, limit: 3) {
cnt
list {
main {
temp
humidity
pressure
sea_level
temp_min
temp_max
}
weather {
main
description
id
icon
}
dt
dt_txt
wind {
speed
deg
}
}
}
}