with Philips Hue and Typefully?
Emit new event when the state of a light changes (e.g., turned on/off, brightness adjusted, color changed). See the documentation
Emit new event when a draft is published to Twitter via Typefully.
Emit new event when a specific scene is activated. See the documentation
Emit new event when a linked Hue sensor (e.g., motion, temperature, or ambient light) sends an update. See the documentation
Schedules a draft for publication at a specific date and time. See the documentation
Sets the light color of a Philips Hue light. See the documentation
Schedules an existing draft for publication in the next available time slot. See the documentation
The Philips Hue API offers rich control over Philips Hue smart lighting systems. Via Pipedream, you can automate your lighting based on various triggers – think syncing lights with the sun's cycle, changing color to indicate new emails, or even integrating with motion sensors for a smart-home experience. With Pipedream's capabilities to connect to countless services, the possibilities of creating personalized lighting scenarios are vast, limited only by your imagination and the availability of triggers or events from other services and devices.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
philips_hue: {
type: "app",
app: "philips_hue",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.meethue.com/v2/api/resource`,
headers: {
Authorization: `Bearer ${this.philips_hue.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
typefully: {
type: "app",
app: "typefully",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.typefully.com/v1/notifications/`,
headers: {
"x-api-key": `${this.typefully.$auth.api_key}`,
},
params: {
kind: `activity`,
},
})
},
})