Build location-aware apps and services using the world’s #1 location platform
Emits the weather report for a specific ZIP code on a schedule
You can use the HERE API to build a variety of things, including:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
here: {
type: "app",
app: "here",
}
},
async run({steps, $}) {
// Returns a sample set of weather observations for Berlin
// See https://developer.here.com/documentation/weather/dev_guide/topics/example-weather-observation.html
return await axios($, {
url: `https://weather.ls.hereapi.com/weather/1.0/report.json?apiKey=${this.here.$auth.apikey}&product=observation&name=Berlin-Tegel`,
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})