You are on page 1of 13

School of Electronics Engineering (SENSE)

B.Tech – ECE/ECM

ECE3501 – IoT Fundamentals


LAB RECORD

Submitted By
19BEC1154 – ARUN PRAKASH
Submitted To
Dr. Berlin Hency V

VIT CHENNAI
Vandalur - Kelambakkam Road
Chennai – 600127

1
TABLE OF CONTENTS

S. no Date Title of the Experiment Page

INSTALLING OF NODE RED AND TO


1. 03-08-21 03
DISPLAY A STRING AND CURRENT TIME

2 10-08-21 DATA ANALYSIS USING NODE RED 10

3.

4.

5.

6.

7.

8.

9.

10.

11.

2
EXPERIMENT – 1

INSTALLING OF NODE RED AND TO DISPLAY CURRENT AND TIME

INSTALLATION STEPS:

1) To install node.js go to nodejs.org on the web browser

2) Download 16.6.2 current latest features and install

3
4
5
6
7
3) Go to Command Prompt and type node -v

4) Type npm install -g node-red

8
5) Ignore the errors and type node-red -v

6) Go to web browser http://127.0.0.1:1880/


7) Type this java code:

var dateNow = new Date(); 


var timeAsString = dateNow.toLocaleTimeString(); 
 
msg.payload = msg.payload+'The Current time is'+timeAsString+'.'; 
 
return msg; 

9
EXPERIMENT-2

DATA ANALYSIS USING NODE RED

OBJECTIVE

 Retrieve information from a website through http protocol


using HTTP Request node
 Process and convert that information into a required format 
o CSV node
o Switch node
o Change node
 Display the result in the Debug monitor using Debug node

PROCEDURE
1) Flow Diagram

10
2) In http request node in URL section type this url:
https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/significant_month.c
sv

3) In csv node mark the first row contains column names section.

11
4) In switch node change the type into number and type the limit as 7.

5) In change node choose the output type as String and the output to be printed if
the value is greater than 7 is RED ALERT!!!.

12
6) OUTPUT

13

You might also like