ICP 5 - Abdullah-otb/IOT GitHub Wiki

Introduction

The ICP5 was about posting weather details on social network (twitter) and sending weather details via email using Node-RED.

Objectives

Task1: Create credentials for openweather map and twitter web service. Task2: Build a Node_RED flow to post weather details on twitter and send weather details via email.

Workflow & Approaches & Methods

Create credentials for openweather map.

Create credentials for twitter.

Fetch weather data using openweather map API and extract the weather details by function node.

post weather details on twitter using twitter node. send weather details through email using email node.

Flow Diagram

Video

https://youtu.be/6vk2YFctM_4

Parameters

Extract weather details from the response and pass it to msg.payload. var weather = msg.payload.description; msg.payload = weather;

Evaluation & Discussion

We spend most of our time to apply credentials for an open weather map and twitter web service. The Node_RED is a user-friendly tool for IoT Developing. With it, we can focus on the logic of your workflow.

Conclusion

we are able to Extract weather details from the response, and then post weather details on twitter and send weather details via email.