Skip to content

Instantly share code, notes, and snippets.

@wasiwasi
Last active October 4, 2022 06:10
Show Gist options
  • Save wasiwasi/79184eba802a9d2cf44885f0b5a94a66 to your computer and use it in GitHub Desktop.
Save wasiwasi/79184eba802a9d2cf44885f0b5a94a66 to your computer and use it in GitHub Desktop.
node-red-contrib-ffmpeg-iotcam example flow

This flow shows how to use node-red-contrib-ffmpeg-iotcam and node-red-contrib-samsung-automation-studio-nodes. iotcam2img

execute

  1. Input your smartthings PAT My device node
  2. Select homecamera in command node.
  3. Set capability and command startStream
  4. Set device in status node.
  5. Set variable in iotcam2img node.
[{"id":"f785b96f.ce4538","type":"tab","label":"2iotcam example","disabled":false,"info":""},{"id":"cef06ff1.64cdf","type":"inject","z":"f785b96f.ce4538","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":450,"y":340,"wires":[["28d864bd.a09f7c"]]},{"id":"d8df7951.d0f9a8","type":"iotcam2img","z":"f785b96f.ce4538","rtspURL":"","saveURL":"","totalFrame":"40","timer":"10","name":"","x":950,"y":340,"wires":[[],[],[]]},{"id":"209dbd9b.811412","type":"installed-device","z":"f785b96f.ce4538","name":"","alias":"token:194798e1","device":"","devices":["1b17f114-acff-4c25-a4cf-2459af69f369","51d084c2-a8d2-4966-9624-18b8adaab221","236ab083-eecf-101c-e230-286ed126ef06","ecc14b61-c49d-9e25-7087-fd0dc9ecbc3b","7ea0eda7-101d-2896-d7f8-57997ee022f0","91205853-dab4-3e5f-c009-e621b9824b1c","4e083c8b-4a4f-4518-2eeb-887c5a7131c6","7182a570-8e4f-2112-2c20-a10916f9bd56","158cf65e-dc2d-c58b-6506-f02595f6d98c","7e5f6017-2a28-6b82-1ab3-7b16e8ee7727","6b429d72-b358-1c5f-9fea-745ea3780439","cc5f82f5-f6d5-16a3-ccdb-1baf7a345629","1e2418e2-6009-f156-6c99-bc5964af63a6","c20b8fa0-ba57-41be-963e-e5669788afb3","e0161013-412b-4a33-a3b6-c6a42ec0f95e"],"profileId":"209dbd9b.811412","x":460,"y":280,"wires":[]},{"id":"9f27c8bd.3223c8","type":"status-device","z":"f785b96f.ce4538","name":"Camera status","alias":"홈카메라 360 집","deviceNodeId":"209dbd9b.811412","deviceType":"installed-device","deviceId":"51d084c2-a8d2-4966-9624-18b8adaab221","componentId":"","capabilityId":"audioStream_v1","attributeId":"uri","rules":[],"logging":false,"loggingEditor":false,"loggingConsole":false,"outputs":1,"x":760,"y":340,"wires":[["d8df7951.d0f9a8"]]},{"id":"28d864bd.a09f7c","type":"command-device","z":"f785b96f.ce4538","name":"Start Stream","alias":"startStream","deviceNodeId":"209dbd9b.811412","deviceType":"installed-device","deviceId":"51d084c2-a8d2-4966-9624-18b8adaab221","componentId":"","capabilityId":"videoStream_v1","attributeId":"startStream","rules":[{"capaId":"videoStream_v1","attrId":"startStream","args":[]}],"logging":false,"loggingEditor":false,"loggingConsole":false,"outputs":1,"x":590,"y":340,"wires":[["9f27c8bd.3223c8"]]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment