Advantech WISE-PaaS 2.0 Node-RED Plug-ins User Manual

Introduction

Node-RED is a visual wiring tool for the Internet of Things, provided by IBM Emerging Technologies. Node-RED features browser-based flow editing, built on Node.js, and supports social development. Its browser-based nature makes it user-friendly. Node-RED is based on Node.js, allowing users to utilize its nodes with JavaScript. It also boasts many active communities, enabling users to find solutions and fix bugs easily. Users can import or export created flows using JSON format strings.

In accordance with the restful API of WISE-PaaS 2.0, several nodes have been created. These nodes facilitate interaction with the WISE-PaaS 2.0 platform.

The Node-RED flow diagram illustrates a typical setup: a 'timestamp' node initiates a process, feeding into a 'ServerConfig' node. The 'ServerConfig' node then connects to various data retrieval nodes such as 'DevicesQuery', 'PluginsQuery', 'SensorsQuery', and 'DataQuery'. These connections are often marked with status indicators like 'done' or 'sending', ultimately processing data into 'msg.payload'.

How to install Node-Red Plug-ins for WISE-PaaS

Install Node.js

The Node.js setup wizard guides the user through the installation process. Key steps include: accepting the End-User License Agreement, choosing a destination folder (defaulting to C:\Program Files\nodejs\), selecting custom setup options (including the Node.js runtime, npm package manager, online documentation shortcuts, and adding to PATH), and finally proceeding with the installation by clicking 'Install' and completing the wizard by clicking 'Finish'.

Clone EI-NodeRed from GitLab

Node-Red Plug-ins Categories

CategoryDescriptionNodes
GeneralThe settings of IP address, port number, login username/password of WISE-PaaS server. Retrieval of device and sensor information.1. ServerConfig
CommonQuery the data and the information of devices, plugins and sensors.1. DevicesQuery
2. PluginsQuery
3. SensorsQuery
4. DataQuery

Node-Red Plug-ins Description

Node NameDescriptionInputOutput
ServerConfigSet URL, port, username, and password for WISE-PaaS 2.0 server. The node provides Basic type and SSO type.A timestamp trigger or button trigger.msg.url, msg.port, msg.encodestr.
DevicesQueryRetrieve devices information from WISE-PaaS 2.0 server. User can fill a specific device ID. The text of Device ID can be blank if user wants to retrieve all devices.ServerConfig Node.Device information list.
PluginsQueryRetrieve plugins by device ID within a time range. The maximum number of values is 10000 from WISE-PaaS 2.0 server. User can set the conditions about plugins here. Ex: Device ID, Agent ID, begin timestamp, end timestamp, amount and type.ServerConfig Node.Plugins Information list.
SensorsQueryRetrieve sensors by Device ID & plugin within a time range. The maximum number of values is 10000 from WISE-PaaS 2.0 server. User can set the conditions about sensors here. Ex: Device ID, Agent ID, Plugin Name, begin timestamp, end timestamp, amount and type.ServerConfig Node.Sensors Information list.
DataQueryRetrieve data from WISE-PaaS 2.0 server. The node provides three types: history, latest, and statistic.ServerConfig Node.Data based on the selected type (history, latest, or statistic) by specific Device ID within a time range.
DataQuery (History)Retrieve data by Device ID within a time range. The maximum number of values is 10000.ServerConfig Node.The history data by specific Device ID within a time range.
DataQuery (Latest)Retrieve latest data by Device ID.ServerConfig Node.The latest data by specific Device ID.
DataQuery (Statistic)Retrieve statistic data by Device ID within a time range. (Less than 31 days.)ServerConfig Node.The Statistic data by specific Device ID within a time range.

Node-Red for WISE-PaaS 2.0

General

ServerConfig

Description: Set URL, port, username, and password for WISE-PaaS 2.0 server. The node provides Basic type and SSO type.

Basic

Description: User can set Username and Password. If the user calls the restful API of the common server, the text box can be blank.

Configuration Dialog (Basic Type):

SSO

Description: User can get accessToken here and call the restful API by the accessToken.

Configuration Dialog (SSO Type):

Input: A timestamp trigger or button trigger.

Output: msg.url, msg.port, msg.encodestr.

Common

DevicesQuery

Description: Retrieve devices information from WISE-PaaS 2.0 server. User can fill a specific device ID. The text of DeviceID can be blank if user wants to retrieve all devices.

Configuration Dialog:

Input: ServerConfig Node.

Output: Device information list.

PluginsQuery

Description: Retrieve plugins by device ID within a time range. The maximum number of values is 10000 from WISE-PaaS 2.0 server. User can set the conditions about plugins here. Ex: Device ID, Agent ID, begin timestamp, end timestamp, amount and type.

Configuration Dialog:

Input: ServerConfig Node.

Output: Plugins Information list.

SensorsQuery

Description: Retrieve sensors by Device ID & plugin within a time range. The maximum number of values is 10000 from WISE-PaaS 2.0 server. User can set the conditions about sensors here. Ex: Device ID, Agent ID, Plugin Name, begin timestamp, end timestamp, amount and type.

Configuration Dialog:

Input: ServerConfig Node.

Output: Sensors Information list.

DataQuery

Description: Retrieve data from WISE-PaaS 2.0 server. The node provides three types: history, latest, and statistic.

History

Description: Retrieve data by Device ID within a time range. The maximum number of values is 10000.

Configuration Dialog (History):

Input: ServerConfig Node.

Output: The history data by specific Device ID within a time range.

Latest

Description: Retrieve latest data by Device ID.

Configuration Dialog (Latest):

Input: ServerConfig Node.

Output: The latest data by specific Device ID.

Statistic

Description: Retrieve statistic data by Device ID within a time range. (Less than 31 days.)

Configuration Dialog (Statistic):

Input: ServerConfig Node.

Output: The Statistic data by specific Device ID within a time range.

PDF preview unavailable. Download the PDF instead.

NodeRed for wisepaas v2 Microsoft Word 2010 Microsoft Word 2010

Related Documents

Preview Advantech Node-RED RouterApp User Manual
User manual for Advantech's Node-RED RouterApp, detailing installation, configuration, available nodes, advanced topics, and practical flow examples for industrial automation and IoT applications.
Preview Advantech WISE-2834 Intelligent RFID Gateway User Manual
User manual for the Advantech WISE-2834 Intelligent RFID Gateway, detailing its features, specifications, installation, configuration, and Node-RED programming for IoT data acquisition and cloud connectivity.
Preview Advantech Embedded IoT Solutions Product Catalog 2018-2019
Explore Advantech's comprehensive range of Embedded IoT solutions, including WISE-PaaS, edge intelligence servers, industrial PCs, embedded boards, and more, designed for diverse industrial applications. Discover the latest in IoT technology and design-in services.
Preview Advantech RouterApp Node-RED: User Manual and Guide
This manual provides comprehensive details on the Advantech RouterApp Node-RED, covering its features, configuration, available nodes, advanced topics, and practical examples for industrial IoT and edge computing applications.
Preview Advantech Node-RED Router App User Manual
Comprehensive user manual for the Advantech Node-RED Router App, detailing installation, configuration, available nodes, flow examples, and advanced topics for IoT and edge computing applications.
Preview Advantech LoRaWAN Gateway & Node Configuration Guide
Comprehensive guide to configuring Advantech LoRaWAN gateways and nodes, including BB-WSW and WISE-6610 series. Covers physical setup, software utilities, network settings, and data integration.
Preview Advantech WISE-4000 Series Wireless IoT Sensing and I/O Modules
Explore Advantech's WISE-4000 series, including WISE-4012E, WISE-4012, WISE-4050, WISE-4060, and WISE-4051, along with ADAM-4000 and ADAM-6000 I/O modules. This overview details wireless IoT sensing devices, Ethernet I/O, and RS-485 I/O modules, featuring LPWAN, LoRa, Wi-Fi, MQTT, RESTful API, and cloud integration for industrial automation and remote management.
Preview Connecting Advantech WISE-4000 to ThingsBoard via iSensing MQTT
A technical guide from Advantech detailing the steps to connect WISE-4000 series IoT devices to the ThingsBoard platform using iSensing MQTT for cloud data upload and monitoring.