Document toolboxDocument toolbox

Enable network access to "revpi-single-node"

There exists a Node-RED button called “revpi-single-node”.

Currently, you can access this node just from your local network, i.e. via 127.0.0.1. That means via an HDMI monitor, a browser and connection to your local Node-RED server.

This is an experimental feature, be sure to protect your network access and make an image of your system as a backup

There is the original discussion in the Revolution Pi Forum:

https://revolution.kunbus.de/forum/viewtopic.php?f=6&t=1852&p=6988#p7015

Instructions

Remote connections are currently disabled in RevPi Nodes for Node-RED because HTTPS support is not added yet, and no user authentication is in place. If you are on a local network and willing to take the safety risk, try the following:

Download the latest server code from the GitHub repo on the remote RevPi:

wget https://raw.githubusercontent.com/erminas/noderedrevpinodes-server/master/revpi-server.py

Edit the file and disable the external connection blocking, by changing the line 237 to block_external_connections = False

nano revpi-server.py

Overwrite existing server

sudo cp revpi-server.py /usr/share/noderedrevpinodes-server/revpi-server.py

Remove temporary file

Restart python server

Related articles