with Diabatix ColdStream and SFTP (password-based auth)?
Emit new events when files get created, changed or deleted from a remote directory. See the docs
Emit new event when a specific project has been upgraded or edited in ColdStream.
Emit new event when a simulation has been successfully completed.
Retrieves the result of a specific simulation from ColdStream. See the documentation
Uploads a file or string in UTF-8 format to the SFTP server. See the documentation
Starts a new simulation in ColdStream with specified parameters and submits the created case. See the documentation
Updates an existing project with new parameters or data in ColdStream. See the documentation
The Diabatix ColdStream API provides automated thermal analysis capabilities, allowing users to streamline the cooling design process for various components and devices. With this API, you can automate the design of thermal systems, optimize existing cooling solutions, and simulate different scenarios to find the most effective thermal management strategy. In Pipedream, you can leverage this API to build automated workflows that integrate thermal analysis into your engineering cycles, ensuring your designs meet the necessary thermal specifications before physical prototypes are ever built.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
diabatix_coldstream: {
type: "app",
app: "diabatix_coldstream",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://identity.coldstream.diabatix.com/users/me`,
headers: {
Authorization: `Bearer ${this.diabatix_coldstream.$auth.access_token}`,
"accept": `application/json`,
},
})
},
})
SFTP on Pipedream enables secure file management on remote servers directly from your workflows. Utilize this app to automate file uploads, downloads, and synchronization tasks between your systems and SFTP servers. Implement robust data pipelines or deploy content to web servers without manual intervention, all while maintaining a high level of security with password-based authentication.
module.exports = defineComponent({
props: {
sftp_password_based_auth: {
type: "app",
app: "sftp_password_based_auth",
}
},
async run({steps, $}) {
const Client = require('ssh2-sftp-client');
const {
host,
username,
password,
} = this.sftp_password_based_auth.$auth
const config = {
host,
username,
password,
}
const sftp = new Client()
await sftp.connect(config)
this.cwd = await sftp.cwd();
return await sftp.end();
},
})