with DarkSky API and Murf?
The DarkSky API offers detailed weather information that includes minute-by-minute forecasts, hourly forecasts, and daily summaries. By harnessing this API on Pipedream, you can automate tasks like sending alerts, integrating weather data into event planning platforms, or tailoring content based on weather conditions. With Pipedream’s serverless platform, these use cases become straightforward to implement, and you can trigger workflows with new weather data, schedule checks at regular intervals, or even react to changes in forecasted conditions.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
darksky_api: {
type: "app",
app: "darksky_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.darksky.net/forecast/${this.darksky_api.$auth.secret_key}/37.8267,-122.4233`,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
murf: {
type: "app",
app: "murf",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.murf.ai/v1/speech/voices`,
headers: {
"api-key": `${this.murf.$auth.api_key}`,
"token": `${this.murf.$auth.token}`,
},
})
},
})