Uploaded April 2021 | Updated September 2026, 3 weeks ago
In this quick video tutorial we will create a simple keypad for use in node-red flows using the template ui node.
If someone does come across a node-red node that does this please let me know.
Buy me a Coffee
buymeacoffee.com/steveH5u
Demo flow from video
stevesnoderedguide.com/download/simple-keypad-for-node-red-flows
Other videos
Using The Node-Red Template UI Node or Widget
youtu.be/TMO9gCjA_m4
My Books
steves-internet-guide.com/books
In this quick video tutorial we will create a simple keypad for use in node-red flows using the template ui node.
If someone does come across a node-red node that does this please let me know.
Buy me a Coffee
buymeacoffee.com/steveH5u
Demo flow from video
stevesnoderedguide.com/download/simple-keypad-for-node-red-flows
Other videos
Using The Node-Red Template UI Node or Widget
youtu.be/TMO9gCjA_m4
My Books
steves-internet-guide.com/books







![Store A Function in Global Context
In this video we will look at hoe to store an function in the global context so it can be used in the workspace by simply importing it like any other variable.
Site referenced in video
https://community.oh-lalabs.com/t/how-to-define-global-functions-and-libraries-in-nodered/2883
Code taken from flow
function log_data(message,node,flow) {
let d = new Date();
let now = d.getTime();
let logs = global.get(logs) || [];
let temp = {};
temp.timestamp = now;
temp.utctime = d.toLocaleString();
temp.flow = flow;
temp.node = node;
temp.message = message;
logs.push(temp);
global.set(logs, logs);
}
global.set(log_data,log_data);
//to use import it into the function node using
//let log_data=global.get(log_data);
//call it anywhere in the function using
//log_data(message, node, flow); Store A Function in Global Context](https://i.ytimg.com/vi/Kv0NIjKVV7k/mqdefault.jpg)


