Real Simple Syndication
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
Retrieve multiple RSS feeds and return a merged array of items sorted by date See documentation
Retrieves the current weather for a given (ZIP, country)
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
Retrieves the 5-day weather forecast for a given (ZIP, country)
With the RSS API you have the power to create powerful tools and applications.
RSS is a great way to reliably subscribe to, track and build around your
favorite content sources. Here are some examples of things you can create
using the RSS API:
module.exports = defineComponent({
props: {
rss: {
type: "app",
app: "rss",
}
},
async run({steps, $}) {
// Retrieve items from a sample feed
const Parser = require('rss-parser');
const parser = new Parser();
const stories = []
// Replace with your feed URL
const url = "https://pipedream.com/community/latest.rss"
const feed = await parser.parseURL(url);
const { title, items } = feed
this.title = title
if (!items.length) {
$end("No new stories")
}
this.items = items
},
})
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}`,
},
})
},
})