![social booth tutorial social booth tutorial](http://img.bhs4.com/eb/7/eb703b02de6e51d98f38ec51f37c5703a2b8f5c3_large.jpg)
![social booth tutorial social booth tutorial](https://www.compsmag.com/wp-content/uploads/2020/09/1600894211_949_Where-Photo-Booth-Image-Files-are-Located-on-Mac-OS.jpg)
light the LED the color red to signal it is about to take a photo.When this command is received, the flow will: The TJBot subscribes to a takephoto command via the Watson IoT Platform. Set the configuration node with the Cloud Function endpoints, the Twilio phone number, watermark image and text message.ĭeploy the application and confirm the Node-RED dashboard renders. Update the IoT nodes with the device credentials. Register a device type of tjbot and a device with id photobooth. Import the JSON from the file named bluemixflow.json This will create a Node-RED application with a Watson IoT Platform service. Node-RED flow to run the Gallery applicationĬreate an IoT Starter boilerplate application in IBM Cloud. Node-RED dashboard to command TJBot to take a photo, display a gallery, and input to send a MMS message
SOCIAL BOOTH TUTORIAL HOW TO
This section describes how to create the Node-RED boilerplate application and configure the application. The Node-RED application in IBM Cloud provides controls to take a photo, displays the gallery of photos taken, and a phone number input to capture the destination an MMS should be sent. Node-RED Image Gallery Application in IBM Cloud
SOCIAL BOOTH TUTORIAL INSTALL
To install the required npm modules and zip up the action, run the shell scriptĬopy the Cloud Function Web Action URL from the IBM Cloud dashboard into the configuration node in the Node-RED application in the next section. Put the Twilio Account SSID and Auth Token in this file. Install the Cloud Function CLI by following these instructions.Įdit the file local.env.
SOCIAL BOOTH TUTORIAL ZIP FILE
Because the action requires the twilio npm package, a zip file containing all the necessary parts (code and node modules) is built and uploaded via a shell script. The directory code/twilio-send-photo includes the Cloud Function that sends an image as an MMS message with the Twilio API. Make sure to check the box labeled Enable as Web Action.Ĭopy and paste the Node.js code from watermark.js into the Code textbox. This Cloud Function can be created in the IBM Cloud console.Ĭreate a new action. The file watermark.js contains the Cloud Function that overlays one image on top of another. This section describes how to create the two Cloud Functions, via the IBM Cloud console and from the command line.