UNPKG

@pipedream/rhombus

Version:

Pipedream Rhombus Components

29 lines (27 loc) 641 B
import rhombus from "../../rhombus.app.mjs"; export default { key: "rhombus-reboot-camera", name: "Reboot Camera", description: "Reboot a camera. [See the documentation](https://apidocs.rhombus.com/reference/rebootcamera)", version: "0.0.1", type: "action", props: { rhombus, cameraUuid: { propDefinition: [ rhombus, "cameraUuid", ], }, }, async run({ $ }) { const response = await this.rhombus.rebootCamera({ $, data: { cameraUuid: this.cameraUuid, }, }); $.export("$summary", `Rebooted camera ${this.cameraUuid}`); return response; }, };