KMC Commander and Node-RED Application Guide

Application Guide

Introduction

Node-RED may appear in two places in KMC Commander. The Node-RED network protocol (in Network Explorer, under Add Network) is primarily for future use. See Network Protocol (for Specific Preprogrammed Devices) on page 2. This application guide, however, is primarily about the Node-RED add-on. The Node-RED add-on functions in KMC Commander if an additional add-on license has been purchased. Click the Add-ons (cloud) icon ☁️ (on the left, below the Dashboard icon) and click the Node-RED icon to open Node-RED. See Add-On (for Customer Custom Programming) on page 3.

NOTE: If you do not see the Node-RED add-on icon, you do not have the needed extra license. Contact KMC Controls for an additional purchase and installation instructions.

KMC Controls, 19476 Industrial Drive, New Paris, IN 46553 / 877-444-5622 / Fax: 574-831-5252 / www.kmccontrols.com

"Types" of Node-RED with KMC Commander

Network Protocol (for Specific Preprogrammed Devices)

The Node-RED protocol option is for interfacing with local devices (such as for a leak detection kit). For such applications, the Node-RED snap (application package) must also be installed in the local KMC Commander IoT appliance/gateway. If the Node-RED snap has not been preinstalled or automatically installed, the user must install it using PuTTy (or equivalent terminal software) and the SSH (Secure SHell) credentials for that appliance.

NOTE: PuTTY is an open-source terminal emulator. For more information about SSH, see the Configuring SSH Settings topic on KMC Commander Help (or the same topic in the KMC Commander Installation Guide PDF).

To install the Node-RED snap and discover a Node-RED network:

  1. Contact KMC Controls for instructions on installing Node-RED on a local KMC Commander appliance/gateway.
  2. See the Configuring a Node-RED Network topic on KMC Commander Help (or the same topic in the KMC Commander Installation Guide PDF) for instructions on configuring and discovering a Node-RED network.

Diagram Description: A network diagram shows app.kmccommander.com in the cloud, connected to a KMC Commander IoT Appliance/Gateway, which in turn connects to a Leak Detector or Other Device. A separate diagram illustrates the Node-RED Protocol connecting a Client (Browser) to the KMC Commander IoT Appliance/Gateway.

Add-On (for Customer Custom Programming)

The Node-RED add-on is a license to run Node-RED on a cloud server. Clicking on the Node-RED add-on shortcut redirects to that server. Seeing and using that add-on requires an additional purchased add-on license. Contact KMC Controls about purchasing the license.

Node-RED is a drag-and-drop visual programming tool with a browser-based editor. It uses flow-based programming, which is a programming paradigm that defines applications as networks of “black box” processes. The “black boxes” (nodes or blocks) exchange data across predefined connections by passing messages. Node-RED was originally developed by IBM but is now open source, which has generated many free development resources.

The Node-RED add-on provides a means of expanding and integrating KMC Commander's capabilities. Some Node-RED application examples include:

The Node-RED interface, when properly licensed, is accessible through your browser. You do not need to install any additional software on your computer to use it. The KMC Commander version of Node-RED includes palettes specific to KMC Commander. See Commander and Users Palettes on page 6.

Diagram Description: A system architecture diagram depicts a "KMC Node-RED (Heroku Server)" connected to app.kmccommander.com. This central service connects to a "KMC Commander IoT Appliance/Gateway". A "Client (Browser)" also connects to app.kmccommander.com, accessing the Node-RED Add-On interface.

Starting the Node-RED Add-On

To start using the Node-RED add-on:

  1. Click the Add-Ons (cloud) icon ☁️.
  2. Click the Node-RED icon (which opens the Node-RED login page in a new browser tab).
  3. Enter the login credentials. (If needed, contact KMC Controls for the default Node-RED username and password.)
  4. Click Login.

Diagram Description: A screenshot shows the Node-RED login page requiring username and password, with a "Login" button. Another screenshot displays the Node-RED flow editor with various nodes and a URL https://api.kmccommander.com.

Tabs and Deployment

CAUTION: Do NOT delete the JWT (JSON Web Token) Login tab or edit its contents! (If you do, you may not be able to log in again.)

Do NOT delete the Initialize Globals tab and be very careful about editing its contents! (If you do, a variety of functions may stop working.)

The Examples tab provides samples of reusable flows relating to KMC Commander. To find additional examples:

  1. Go to the Menu (three lines in upper-right corner) ☰.
  2. Select Import, which opens the Import nodes window.
  3. Select the Local tab.

Create new flow tabs by clicking the + to the right of the tabs. Double-click the new tab to rename, add a description, and/or delete it.

The Deploy button (near the upper right corner) deploys the nodes from the editor to the server. It has four options (described in the buttons) when clicked.

Diagram Description: A Node-RED interface screenshot highlights the menu icon (☰), the "Import" option leading to an "Import nodes" window with a "Local" tab, and the "Deploy" button with its options: "Full", "Modified Flows", "Modified Nodes", "Restart Flows".

Commander and Users Palettes

To facilitate programming, a library of KMC Commander-specific commands are included in the Commander palette in the left pane. The Users palette has nodes relating to KMC user permissions and logins.

NOTE: Most nodes specific to KMC Commander are recognizable by their up-and-down-triangles icon ▲▼.

NOTE: Additional palettes can be added by clicking the Menu (three lines) button ☰, selecting Manage palette, clicking the Install tab, and searching for key words (e.g., dashboard).

To access the nodes:

  1. Drag out a node/block from the palette onto the sheet/window.
  2. Double-click the node to enter properties.

NOTE: For more information about a particular node, click the node and look in the info tab.

Commander palette nodes and their functions briefly described include:

User palette nodes and their functions include:

Diagram Description: A Node-RED interface screenshot shows the left-hand pane with "KMC Commander" and "User" palettes, listing nodes such as addDeck, checkQuery, getPage, and hash8.

Usage Tips

Below are some important tips for using Node-RED with KMC Commander:

Diagram Description: A screenshot details the properties panel for a Node-RED "inject" node, showing fields for "Name", "Payload", "Topic", and timing configurations.

Node-RED Resources

The Node-RED add-on is meant for advanced KMC Commander users, and instructions for using Node-RED are beyond the scope of this document. For more Node-RED information:

Diagram Description: A KMC Controls logo is displayed on a computer monitor.

Important Notices

The material in this document is for information purposes only. The contents and the product it describes are subject to change without notice. KMC Controls, Inc. makes no representations or warranties with respect to this document. In no event shall KMC Controls, Inc. be liable for any damages, direct or incidental, arising out of or related to the use of this document.

KMC Controls® and the KMC logo are registered trademarks of KMC Controls. KMC Commander™ is a trademark of KMC Controls. All other products or name brands mentioned are trademarks of their respective companies or organizations.

All rights reserved. No part of this publication may be reproduced, transmitted, transcribed, stored in a retrieval system, or translated into any language in any form by any means without the written permission of KMC Controls, Inc.

All KMC Commander support documents are available on the KMC Controls website. Type the KMC Commander part number (e.g. CMDR-ADVT-WIFI-BASE) in the Search field. Log in to see all available files.

The information in the KMC Commander Installation Guide PDF is also available in an online format at help.kmccommander.com.

For advanced applications, api.kmccommander.com has information about the KMC Commander application programming interface.

NOTE: Documents, product design, and product specifications are subject to change without notice.

©2022 KMC Controls, Inc.

Models: UNO420-WIFI Wi-Fi Base Bundle w- Accessories IoT Gateway, UNO420-WIFI, Wi-Fi Base Bundle w- Accessories IoT Gateway, Bundle w- Accessories IoT Gateway, w- Accessories IoT Gateway, Accessories IoT Gateway, IoT Gateway

File Info : application/pdf, 9 Pages, 1.62MB

PDF preview unavailable. Download the PDF instead.

AG Commander Node-RED Add-On AG180824D

References

Adobe PDF Library 16.0.7 Adobe InDesign 17.3 (Windows)

Related Documents

Preview KMC Commander Software Application Guide
A comprehensive guide to using the KMC Commander IoT and Automation Platform, covering system administration, network configuration, device management, dashboard creation, scheduling, trend analysis, alarm management, and reporting.
Preview KMC Commander Software Application Guide
A comprehensive guide to using the KMC Commander software for IoT and automation platforms, covering system administration, network configuration, device management, dashboard creation, trend analysis, alarm management, and reporting.
Preview The Essential Building Automation Glossary by KMC Controls
Explore the essential building automation glossary from KMC Controls, defining key terms in HVAC, BAS, IoT, and green buildings. Understand the language of intelligent buildings with this comprehensive resource.
Preview KMC Conquest Gen5 Controllers Application Guide
This comprehensive application guide details KMC Conquest Gen5 controllers, covering installation, configuration, sequences of operation for HVAC systems, and troubleshooting. It is a key resource for building automation professionals.
Preview KMC BAC-9300A Series BACnet Unitary Controllers - Product Overview and Specifications
Detailed information on KMC BAC-9300A Series BACnet Unitary Controllers, including features, applications, specifications, and connectivity options for building automation.
Preview KMC Conquest Controllers, Sensors, and Accessories Selection Guide
Comprehensive selection guide for KMC Conquest series controllers, sensors, and accessories, detailing applications, models, features, and specifications for HVAC automation systems.
Preview KMC Connect Lite Mobile App User Guide
User guide for the KMC Connect Lite mobile application by KMC Controls, detailing installation, activation, configuration of KMC Conquest controllers via NFC and Bluetooth, troubleshooting, and history logging.
Preview KMC Controls BAC-19xxxx FlexStat Installation Guide
Comprehensive installation guide for the KMC Controls BAC-19xxxx FlexStat thermostat, detailing mounting, wiring, network connectivity (Ethernet and MS/TP), power connections, configuration, and maintenance procedures.