Friday, March 29, 2024
ExplainerHow ToIoT PlatformsIoT Software&ToolsTutorials/DIY

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. Tech enthusiast and IT professional with a B.Tech in IT, PG Diploma in IoT from CDAC, and 6 years of industry experience. Founder of HVM Smart Solutions, blending technology for real-world solutions. As a passionate technical author, I simplify complex concepts for diverse audiences. Let's connect and explore the tech world together! If you want to help support me on my journey, consider sharing my articles, or Buy me a Coffee! Thank you for reading my blog! Happy learning! Linkedin

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

Leave a Reply

Your email address will not be published. Required fields are marked *