Steps to install the custom node:
- Install
node-red
npm package globally usingnpm i -g node-red
- Download the code for
get-thing-property
node - Run
npm i
inside the folder to install therequest
dependency - Navigate to your
$HOME/.node-red
folder and runnpm i {path where 'get-thing-property' code is present}
(this should install the 'get-thing-property' node) - Run
node-red
to start node-red - Open
http://localhost:1880
and search for theget-thing-property
node in your list of nodes - Connect that with an
input
node and anoutput
debug node - Set the
baseurl
,thingid
andpropertyid
in theget-thing-property
node - Run the flow to view the output
Folder Structure:
- `GetThingProperty.html` - the html code corresponding to the custom node
- `GetThingProperty.js` - the js code to access the template variables and make the request and send the response
- `package.json` - app details and dependencies