Multi-Tenant Node-RED

Multi-Tenant Node-RED

These are steps to have multiple instances of Node-RED on a single host.  This post was inspired from this post “Node-Red multiple instances, RPi”, https://pysselilivet.blogspot.com/2019/04/node-red-multiple-instances-rpi.html Seriously, buy this person a coffee, https://buymeacoffee.com/metzallo9! Having another instance for testing and evaluation can save headaches with your primary flows. Create a copy of the primary instance to a new secondary instance. cd .node-red mkdir inst-2 cp settings.js ~/.node-red/inst-2/settings.js Update any firewall policies that restrict access. sudo vim /home/local/iptables/iptables.up.rules # Node-RED Instance 2 -…

Read More Read More

Python Desktop Capture

Python Desktop Capture

This post uses yet another process similar to an earlier post, https://www.cloudacm.com/?p=5414 where the desktop was piped to a MQTT broker. This post will not be restricted to systems with powershell. Instead it will use python libraries to capture the desktop screen and send that data to a MQTT broker. The following python script uses the mss library. More information about the library can be found here, https://pypi.org/project/mss/. It’s described as “an ultra-fast cross-platform multiple screenshots module in pure python…

Read More Read More

Optimizing Node-RED

Optimizing Node-RED

I’ve used Node-RED for several years for various odds and ends. Node-RED’s history started with the IBM Emerging Technology Services team and now is a part of the OpenJS Foundation. The dashboard and flow editor are simple to setup and work with. The limit of node complexity is directly proportional to the developer, which makes it an ideal frontier to push. Pushing those limits can expose issues and that is where this post comes in. Hosting Node-RED by itself on…

Read More Read More

Desktop Capture to Node Red via MQTT

Desktop Capture to Node Red via MQTT

This post uses a similar process to an earlier post (https://www.cloudacm.com/?p=3974) where images are piped through a MQTT broker. This post will not be using FFMpeg or images captured with a camera. Instead it will use a native application to capture the desktop screen. PowerShell is a Windows native application that will be used to capture the desktop. PowerShell will call a MQTT publish process to forward the base64 data to a broker. Although the MQTT application is not native,…

Read More Read More