with Lifx and Fileforge?
With the Lifx API, you have the power to control your Lifx smart lights programmatically. This API lets you change the color, brightness, and power state of your bulbs, and it also allows you to access information on the lights' settings and environment. Pipedream's serverless platform leverages this functionality to create automations that can be triggered by various events. You can set your lights to respond to external factors like the weather, implement them into your smart home routines, or sync them with your productivity apps for visual notifications.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
lifx: {
type: "app",
app: "lifx",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.lifx.com/v1/lights/all`,
headers: {
Authorization: `Bearer ${this.lifx.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
fileforge: {
type: "app",
app: "fileforge",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.fileforge.com/status/`,
headers: {
"Accept": `application/json`,
"X-API-Key": `${this.fileforge.$auth.api_key}`,
},
})
},
})