Current Weather and Forecasts in your city
Retrieves the current weather condition by location longitude and latitude. See the docs here. For more accurate reading, you are advised to fill in the country and/or state code
Add or update a single record in your Pipedream Data Store.
Retrieves the current weather for a given (ZIP, country)
Add or update multiple records to your Pipedream Data Store.
Retrieves 1-16 days weather forecast for a specified location. See the docs here. For more accurate reading, you are advised to fill in the country and/or state code
The OpenWeather API is one of the most powerful and comprehensive weather APIs
available today, allowing developers to build a wide range of applications and
services from simple weather forecasting to complex weather analysis. With
access to global weather data from a wide range of sources, including
professional and amateur weather stations, users can gain insight into climate
change, predict storms and floods, better manage existing and developing
weather hazards, and more.
The OpenWeather API is designed to make life easier for developers, by allowing
users to easily interface with detailed and reliable weather data. Here are a
few ways developers can use the OpenWeather API:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
openweather_api: {
type: "app",
app: "openweather_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.openweathermap.org/data/2.5/weather`,
params: {
zip: `20500,us`,
appid: `${this.openweather_api.$auth.api_key}`,
},
})
},
})
With the Data Stores API, you can build applications that:
export default defineComponent({
props: {
myDataStore: {
type: "data_store",
},
},
async run({ steps, $ }) {
await this.myDataStore.set("key_here","Any serializable JSON as the value")
return await this.myDataStore.get("key_here")
},
})