Adafruit IO is a platform designed to display, respond, and interact with your project's Internet-of-Things (IoT) data.
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
You can use the Adafruit IO API to build applications that can:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
adafruit_io: {
type: "app",
app: "adafruit_io",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://io.adafruit.com/api/v2/user`,
headers: {
"X-AIO-Key": `${this.adafruit_io.$auth.active_key}`,
},
})
},
})
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})