Developer

Node-RED flows for Amazon Web Services

Welcome back everybody to my blog ! what were we talking about last time ? 🙂

Pretty sure that we were talking about Azure Platform and Node-RED, well now I’m starting to explore the Amazon Web Services platform (AWS), I’m having so much fun with node-RED for this reason I wanna to test node-RED on Amazon cloud and I would like to create a first flow using Weather Company APIs.

First step is necessary to create an AWS account, I created an AWS Free Tier, the free account is designed to enable you to get hands-on experience with AWS Cloud Services. The AWS Free Tier includes services with a free tier available for 12 months following your AWS sign-up date, as well as additional service offers that do not automatically expire at the end of your 12 month AWS Free Tier term. You have to provide you credit card as a form of identity validation and verification.

First step: Create a virtual machine

Log in to the AWS console:

Node-RED flows for Amazon Web Services
Amazon Web Services console

click to add a new Elastic Compute  Cloud (EC2) virtual machine and select Ubuntu Server.

Node-RED flows for Amazon Web Services
Ubuntu Server on AWS

with the free account you can start just with a minimal machine. I created a Security Group to add a new inbound rule to access Node-RED TCP port and a set of SSH keys to access by ssh service.

Node-RED flows for Amazon Web Services
AWS security group

Second Step: install Node-RED

Log in AWS virtual machine, install Node-RED and Watson nodes by the same steps used for Azure virtual machine.

AWS node-RED flow

For my first scenario I used the Weather Company service on Bluemix

Node-RED flows for Amazon Web Services
Weather Company Bluemix service

and the Weather Company rest API to get the current temperature in a specific location:

Node-RED flows for Amazon Web Services

Here is the end to end scenario, I created a new service to use IBM Insights for Weather to integrate historical and real-time weather data from The Weather Company into my application, I tested the current condition observation API by this flow :

Node-RED flows for Amazon Web Services
NodeRed flow on AWS

the API is invoked any minute with the Rome’s coordinate, the current condition is displayed on debug window.

Thanks for reading.

Tags
Show More

Related Articles

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

Back to top button
HTML Snippets Powered By : XYZScripts.com