NodeRed on Android | How To Use Node-Red on Android Smartphone

In the post I am telling to you How to run NodeRed on Android. NodeRED is a flow-based development tool for visual programming developed originally by IBM for wiring together hardware devices, APIs and online services as part of the Internet of Things. Node-RED provides a web browser-based flow editor, which can be used to create JavaScript functions. Elements of applications can be saved or shared for re-use. The runtime is built on Node.js. The flows created in Node-RED are stored using JSON. Since version 0.14 MQTT nodes can make properly configured TLS connections. In 2016, IBM contributed Node-RED as an open source JS Foundation project. know more about Node-Red, Visit this: NodeRED Flow-based programming for IoT

Node-Red is Visual programming tool, What is Visual Programming Language?

A visual programming language (VPL) is any programming language that lets users create programs by manipulating program elements graphically rather than by specifying them textually. A VPL allows programming with visual expressions, spatial arrangements of text and graphic symbols, used either as elements of syntax or secondary notation. For example, many VPLs (known as dataflow or diagrammatic programming) are based on the idea of “boxes and arrows”, where boxes or other screen objects are treated as entities, connected by arrows, lines or arcs which represent relations.

Recommended: Best IoT Visual Programming Tools

How To Run Node-Red 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

Notes

  • You can also npm install other node-red nodes such as node-red-dashboard in the 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 “break” a running app.
  • The instructions above also install the nano editor, which is useful for editing files.

Additional info

Autostarting

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

Device Access

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

I hope you like this post “NodeRed on Android | How To Use Node-Red on Android Smartphone”. Do you have any questions? Leave a comment down below!

Thanks for reading. If you like this post probably you might like my next ones, so please support me by subscribing my blog.


You may like also :


ESP32/ESP8266 Tutorials


 

Harshvardhan Mishra

Hi, I'm Harshvardhan Mishra. I am a tech blogger and an IoT Enthusiast. I am eager to learn and explore tech related stuff! also, I wanted to deliver you the same as much as the simpler way with more informative content. I generally appreciate learning by doing, rather than only learning. Thank you for reading my blog! Happy learning! Follow and send tweets me on @harshvardhanrvm

One thought on “NodeRed on Android | How To Use Node-Red on Android Smartphone

Leave a Reply

%d bloggers like this: