Node-RED can be easily run on Android devices using the Termux app from the App Store. You can get it from the Play Store.
Note: The Node-RED team has nothing to do with Termux applications and their development. We can’t support it in any way other than to say it currently works.
Install
Install it, then run it.Then enter at the prompt
apt update
apt upgrade
apt install coreutils nano nodejs
npm i -g –unsafe-perm node-red
node-red
You can then point your browser to http://localhost:1880
notes
You can also npm install other node-red nodes, for example in the node-red-dashboard standard way:
cd ~/.node-red
npm i node-red-dashboard
The volume-down key is the ctrl key – so vol-down-c can be used to “destroy” a running application.
The instructions above also install the nano editor, which is useful for editing files.
automatic start
The recommended way to launch applications running in Termux is to use the Termux:Boot application (available from F-droid or the Play Store).
We found this other application that can be used to automatically start Termux on boot – Autostart – No Root
Device access
You can directly access various hardware on the device by using additional Termux device plugins – which can then be accessed using exec nodes through Node-RED.
Note: You need to install add-on applications and add-on APIs in Termux.
Install add-on app from Play Store – Termux:API.
Install additional access rights to Termux
apt install termux-api
Useful links
How to use the Termux API
Keywords: industrial gateway