One simple home system. A world of possibilities.
The Samsung SmartThings API allows you to interface with various IoT devices within the Samsung SmartThings ecosystem, enabling control and monitoring from a centralized platform. Leveraging this API on Pipedream, you can create automated workflows that respond to device events, control devices programmatically, and integrate IoT data with hundreds of other services for advanced home automation, data logging, and smart notifications.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
smartthings: {
type: "app",
app: "smartthings",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.smartthings.com/v1/devices`,
headers: {
Authorization: `Bearer ${this.smartthings.$auth.token}`,
},
})
},
})
Harness the power of InfluxDB Cloud API on Pipedream to build robust data workflows. InfluxDB Cloud, a time-series database, is ideal for managing high-velocity data and extracting insights in real-time. On Pipedream, you can easily trigger workflows based on InfluxDB data, automate data ingestion, and connect with countless other services to analyze, visualize, and act upon your data.
import { InfluxDB } from '@influxdata/influxdb-client';
import { HealthAPI } from '@influxdata/influxdb-client-apis';
export default defineComponent({
props: {
influxdb_cloud: {
type: "app",
app: "influxdb_cloud",
}
},
async run({steps, $}) {
// See the Node.js client docs at
// https://github.com/influxdata/influxdb-client-js
const influxDB = new InfluxDB(this.influxdb_cloud.$auth.url);
const healthAPI = new HealthAPI(influxDB)
// Execute a health check to test our credentials
return await healthAPI.getHealth()
},
})