Home Creators Posts Import Register Favorites Logout

Content

Hi folks! 

So, as teased over the last few weeks, here's the first of a new series of tutorial videos demonstrating how I've created a ER control system based on Node-RED (https://nodered.org/). Now, some of you probably know of several existing commercial ER software systems already out there (M3, ERM, ClueControl, Houdini etc.), so why did I create another one rather than use one of those? Well, it's...  

Free and open source - Completely free to download and use.

Robust - The Node-RED framework on which its based was originally developed by IBM, and now supported by the OpenJS Foundation. It is being used by tens of thousands of users across the world, and is actively maintained and developed.

Flexible - The system is completely customisable and extendable, so  you never have to worry about having your imagination limited by your  control software. Want to make a game that streams live video? Adjust hue lightbulbs or DMX spotlights? Integrate with a social media feed? No problem - there's a node for that.

Supports a wide range of platforms - The server can be  run on Windows, Linux, or Raspberry Pi. Individual prop controllers can  be based on Raspberry Pi, any model of Arduino, ESP32, ESP8266, Teensy,  and many more. Devices may be connected via ethernet, Wi-Fi, serial  connection, and messages transferred via JSON, CSV, binary, or simple  text.

In this first video, I'll cover how to download and install Node-RED itself, and then create a general ER "game flow" workflow, which can update a timer displayed on both a GM dashboard and a HTML/CSS-styled in-room player display. I'll also show how that same timer flow can send a message via an HTTP GET request to a WeMos D1 mini device which sets the time on a clock using a dual-shaft stepper motor. I'll also create link nodes for other types of triggered events - such as events that occur when the timer reaches a certain value, or an event with a random chance of occurring based on a set probability. I'll demonstrate how these events can trigger different sorts of hardware in later videos in this series.

As explained later in the video, Node RED has a neat system of allowing you to import/export node whole flows, or just snippets, and one of the things I'd like to do with this project is to create a "recipe book" of snippets for various common ER use-cases. I haven't quite worked out where/how to host that yet. What I'd really like is to have some sort of collaborative public wiki so that you can all share flows that you've created too, which you think might help other folk out. As soon as I've got that up and running, you'll be the first to know. In the meantime, download and start playing, and let me know what you think!

00:00 - 02:05 Intro and Demonstration

02:06 - 05:48 Installation of Node.JS and Node-RED

05:49 - 07:21 The Node-RED interface

07:22 - 13:19 Creating a Game Flow - declaring global variables

13:20 - 21:04 Creating a Game Flow - maintaining a game timer

21:05 - 31:00 Adding a simple GM dashboard timer with buttons and text node

31:01 - 36:50 Adding a fancy in-room timer display with HTML and CSS in a template node

36:51 - 46:52 Exposing link nodes to allow actions to be triggered by common game events

46:53 - 50:30 Controlling a clock prop running on WeMos D1 mini using HTTP GET request

50:31 - 52:50 Importing and exporting Node RED flows

52:51 - 53:30 Wrap-up

Files

Create your own Escape Room control software using Node RED

This is the first of a series of tutorial videos demonstrating how to use Node-RED (https://nodered.org/) to control devices in an escape room. Node RED is a general-purpose framework that can be used to connect all sorts of hardware and software device - including DMX lighting, MIDI/OSC sound devices, and Arduino, Raspberry Pi, or other microprocessors connected via serial cable, ethernet, or Wi-Fi, which makes it absolutely ideal for use to connect the various puzzle controllers and tech props found in an escape room. It runs on Windows, Linux, and even a Raspberry Pi, and the editor is accessed via a node-based graphical interface in your browser. And, best of all, it's completely free and open-source :) In this video, I'll cover how to download and install Node-RED itself, and then create a general ER "game flow" workflow, which can update a timer displayed on both a GM dashboard and a HTML/CSS-styled in-room player display. I'll also show how that same timer flow can send a message via an HTTP GET request to a WeMos D1 mini device which sets the time on a clock using a dual-shaft stepper motor. I'll also create link nodes for other types of triggered events - such as events that occur when the timer reaches a certain value, or an event with a random chance of occurring based on a set probability. I'll demonstrate how these events can trigger different sorts of hardware in later videos in this series. This video was created with the generosity of my Patreon supporters - if you'd like to see more of my escape room tech projects, please check out https://www.patreon.com/playfultech And, if you have any comments, suggestions, or requests for hardware/software which you'd like to see how to integrate into an escape room running Node RED, please let me know in the comments below! 00:00 - 02:05 Intro and Demonstration 02:06 - 05:48 Installation of Node.JS and Node-RED 05:49 - 07:21 The Node-RED interface 07:22 - 13:19 Creating a Game Flow - declaring global variables 13:20 - 21:04 Creating a Game Flow - maintaining a game timer 21:05 - 31:00 Adding a simple GM dashboard timer with buttons and text node 31:01 - 36:50 Adding a fancy in-room timer display with HTML and CSS in a template node 36:51 - 46:52 Exposing link nodes to allow actions to be triggered by common game events 46:53 - 50:30 Controlling a clock prop running on WeMos D1 mini using HTTP GET request 50:31 - 52:50 Importing and exporting Node RED flows 52:51 - 53:30 Wrap-up

Comments

mark dennis (edited)

Comment edits

2026-09-07 18:00 I downloaded node-red but couldn't figure out how to use it so I uninstalled it...
2019-10-25 20:34

mark dennis (edited)

Comment edits

2026-09-07 18:00 I could not start the program. It would start the cmd file, but I didn't know what to put into the prompt line to start the program. I looked on YouTube and none of what they inputted worked for me.
2019-10-25 23:24

mark dennis

In your previous video, you said to download it to get ready & that is what I did, but I had all those problems because I had never used it, but your video walked me straight through it and I had no problems, ... thanks!

mark dennis

So how did you put the background in behind the clock? I know somewhere down the line you're going to share that with us. You can really set the theme of the room that way. Thanks for the video and thanks for sharing!!!

Alastair Aitchison

It's all defined in the HTML of that template node. I used a video element, but you could just as easily put a static img instead. I'll be uploading the code real soon!

David Schrempf

awesome, will this work with Philips Hue lights? There are customers that need a visual notification that a clue is given, besides an audible queue, because they are hearing impaired. Our 3rd party software could flash or blink the lights by a button if necessary. Also, will this program allow video clips and picture clues to be displayed as part of the clue process?

Colin Dawson

Hi Alastair, I have just watched the first of your videos introducing Node Red and was able to build the same flows you had, up until you started adding lots of Styles etc. At the end of the video, you mentioned you were going to make the flows available for download which could be imported into Node Red, are these available and how can I obtain them, thanks. Also how do I find the Second Video in the Node Red Series ?

AHMAD Q ALBASRI

Hi Alastair, I'm following your wiki page guides on the in-room display for customers, my issue is how can I combine the remaining time and the video displays since time remaining code refreshes the page every second the video is not playing, thanks for your time and help

Hennzzer

Please, more Node Red tutorials.

David Bodsworth

Hi Alastair, I'm loving Node Red along with the arduinos and have managed to make all three of our games their own gm dashboard and hint screen, but I have one little issue that bugs me! With the timer (I've done it the same as you showed, but without the hours) when the clock reaches 0 it goes into minus numbers and starts counting up again. I'm perfectly happy for it to do that and even show the minus sign, but the problem is it jumps straight from 00:01 to -1:-1, then -1:-2 etc I'm guessing there's some way I can format the numbers differently once it passes 0, but can't figure it out. Any ideas?