Difference between revisions of "WISE-PaaS 2.0 NodeRed"
From ESS-WIKI
Line 44: | Line 44: | ||
= NodeRed Plug-ins Catogries = | = NodeRed Plug-ins Catogries = | ||
− | {| | + | {| cellspacing="1" align="left" border="1" cellpadding="1" |
|- | |- | ||
! Category | ! Category | ||
Line 53: | Line 53: | ||
| The settings of IP address, port number, login username/password of WISE-PaaS server. Retrieval of device and sensor information. | | The settings of IP address, port number, login username/password of WISE-PaaS server. Retrieval of device and sensor information. | ||
| | | | ||
− | + | ServerConfig | |
|- | |- | ||
Line 59: | Line 59: | ||
| Query the data of devices and the history data of plugins, sensors. | | Query the data of devices and the history data of plugins, sensors. | ||
| | | | ||
− | + | DevicesQuery | |
− | + | ||
− | + | PluginsQuery | |
− | + | ||
+ | SensorsQuery | ||
+ | |||
+ | DataQuery | ||
|} | |} |
Revision as of 10:03, 31 May 2017
Introduction
Node-RED is a visual wiring tool for the Internet of Things and is provided by IBM Emerging Technologies. Node-Red has several features, including browser-based flow editing, built on Node.js and social development. Because of browser-based, the user can use it more easily. Node-Red is based on Node.js, so user can use its nodes by using JavaScript. Node-Red also have many active communities. If the user finds bugs, he can find a solution and fix it easily. The user can use JSON format string to import or export the created flow easily.
Accroding to the restful API of WISE-PaaS 2.0, we created several nodes.
How to install NodeRed Plug-ins for RMM
- Clone EI-NodeRed from GitLab
- Open cmd.exe and navigate to ./EI-NodeRed folder
cd ./EI-NodeRed
- Type command line"npm install" to install the node-red dependencies
npm install
- Type command line"npm run build" to build the code of Node-Red
npm run build
- Type command line"npm start" or "node red.js" to run Node-Red
npm start
or
node red.js
NodeRed Plug-ins Catogries
Category | Description | Nodes |
---|---|---|
General | The settings of IP address, port number, login username/password of WISE-PaaS server. Retrieval of device and sensor information. |
ServerConfig |
Common | Query the data of devices and the history data of plugins, sensors. |
DevicesQuery PluginsQuery SensorsQuery DataQuery |