| layout | default |
|---|---|
| title | Running on Android |
Using the Termux app in the app store makes it easy to run Node-RED on Android devices. You can get it from the Play Store.
Install it, and run it. Then at the prompt type
apt update
apt upgrade
apt install coreutils nano nodejs
npm i -g --unsafe-perm node-red
node-red
Then you can point a browser to localhost:1880
-
You can also npm install other node-red nodes such as
node-red-dashboardin the standard way :cd ~/.node-red npm i node-red-dashboard
-
The
volume-downkey is the ctrl key - sovol-down-ccan be used to "break" a running app. -
The instructions above also install the
nanoeditor, as I find it useful for editing files.
For a discussion on autostarting apps within Termux - see this thread on the Termux Github project.
I have found this other app useful for autostarting Termux on boot - Autostart - No Root
You can also get direct access to various hardware on the device by using the extra Termux device plugins - which can then of course be accessed via Node-RED using the exec command.
Note: you need to install both the add-on app, and also the add-on api in Termux.
Install add-on app - Termux:API from Play store.
Install add-on access into Termux
apt install termux-api
Link to - How to use Termux API