[{"data":1,"prerenderedAt":397},["ShallowReactive",2],{"node-red-\u002Fnode-red\u002Fgetting-started\u002Fnode-red-android":3},{"id":4,"title":5,"body":6,"description":389,"extension":390,"meta":391,"navigation":392,"path":393,"seo":394,"stem":395,"__hash__":396},"nodeRed\u002Fnode-red\u002Fgetting-started\u002Fnode-red-android.md","Installing Node-RED on Android",{"type":7,"value":8,"toc":374},"minimark",[9,17,21,26,39,43,48,59,66,70,73,104,111,115,118,133,136,158,162,165,185,192,196,199,208,211,219,223,226,232,235,239,242,248,257,260,265,271,275,281,284,293,297,304,307,315,329,341,349,353,356,370],[10,11,13],"h1",{"id":12},"",[14,15],"binding",{"value":16},"meta.title",[18,19,20],"p",{},"You can run Node-RED on Android devices using Termux, a terminal emulator and Linux environment app. This guide walks you through the installation process and helps you get Node-RED running on your Android phone or tablet.",[22,23,25],"h2",{"id":24},"prerequisites","Prerequisites",[27,28,29,33,36],"ul",{},[30,31,32],"li",{},"Android device running Android 7.0 or later",[30,34,35],{},"At least 1GB of free storage space",[30,37,38],{},"Stable internet connection for downloading packages",[22,40,42],{"id":41},"installation-steps","Installation Steps",[44,45,47],"h3",{"id":46},"_1-install-termux","1. Install Termux",[18,49,50,51,58],{},"Download and install Termux from ",[52,53,57],"a",{"href":54,"rel":55},"https:\u002F\u002Ff-droid.org\u002Fpackages\u002Fcom.termux\u002F",[56],"nofollow","F-Droid",". Note that the Google Play Store version is outdated and no longer maintained.",[18,60,61,65],{},[62,63,64],"strong",{},"Note:"," Node-RED and FlowFuse are not affiliated with Termux or F-Droid. These are independent third-party applications that enable running Node-RED on Android devices. Use them at your own discretion.",[44,67,69],{"id":68},"_2-update-termux-packages","2. Update Termux Packages",[18,71,72],{},"Open Termux and update the package repository:",[74,75,79],"pre",{"className":76,"code":77,"language":78,"meta":12,"style":12},"language-bash shiki shiki-themes github-light github-dark","pkg update && pkg upgrade\n","bash",[80,81,82],"code",{"__ignoreMap":12},[83,84,87,91,95,99,101],"span",{"class":85,"line":86},"line",1,[83,88,90],{"class":89},"sScJk","pkg",[83,92,94],{"class":93},"sZZnC"," update",[83,96,98],{"class":97},"sVt8B"," && ",[83,100,90],{"class":89},[83,102,103],{"class":93}," upgrade\n",[18,105,106,107,110],{},"Press ",[80,108,109],{},"Y"," when prompted to confirm the updates.",[44,112,114],{"id":113},"_3-install-nodejs","3. Install Node.js",[18,116,117],{},"Install Node.js and npm:",[74,119,121],{"className":76,"code":120,"language":78,"meta":12,"style":12},"pkg install nodejs\n",[80,122,123],{"__ignoreMap":12},[83,124,125,127,130],{"class":85,"line":86},[83,126,90],{"class":89},[83,128,129],{"class":93}," install",[83,131,132],{"class":93}," nodejs\n",[18,134,135],{},"Verify the installation:",[74,137,139],{"className":76,"code":138,"language":78,"meta":12,"style":12},"node --version\nnpm --version\n",[80,140,141,150],{"__ignoreMap":12},[83,142,143,146],{"class":85,"line":86},[83,144,145],{"class":89},"node",[83,147,149],{"class":148},"sj4cs"," --version\n",[83,151,153,156],{"class":85,"line":152},2,[83,154,155],{"class":89},"npm",[83,157,149],{"class":148},[44,159,161],{"id":160},"_4-install-node-red","4. Install Node-RED",[18,163,164],{},"Install Node-RED globally using npm:",[74,166,168],{"className":76,"code":167,"language":78,"meta":12,"style":12},"npm install -g --unsafe-perm node-red\n",[80,169,170],{"__ignoreMap":12},[83,171,172,174,176,179,182],{"class":85,"line":86},[83,173,155],{"class":89},[83,175,129],{"class":93},[83,177,178],{"class":148}," -g",[83,180,181],{"class":148}," --unsafe-perm",[83,183,184],{"class":93}," node-red\n",[18,186,187,188,191],{},"The ",[80,189,190],{},"--unsafe-perm"," flag is necessary for the installation to complete successfully on Termux.",[44,193,195],{"id":194},"_5-start-node-red","5. Start Node-RED",[18,197,198],{},"Launch Node-RED:",[74,200,202],{"className":76,"code":201,"language":78,"meta":12,"style":12},"node-red\n",[80,203,204],{"__ignoreMap":12},[83,205,206],{"class":85,"line":86},[83,207,201],{"class":89},[18,209,210],{},"You should see output indicating that Node-RED has started. Look for a line similar to:",[74,212,217],{"className":213,"code":215,"language":216},[214],"language-text","[info] Server now running at http:\u002F\u002F127.0.0.1:1880\u002F\n","text",[80,218,215],{"__ignoreMap":12},[44,220,222],{"id":221},"_6-access-the-editor","6. Access the Editor",[18,224,225],{},"Open a web browser on your Android device and navigate to:",[74,227,230],{"className":228,"code":229,"language":216},[214],"http:\u002F\u002F127.0.0.1:1880\n",[80,231,229],{"__ignoreMap":12},[18,233,234],{},"You should see the Node-RED editor interface.",[22,236,238],{"id":237},"accessing-node-red-from-other-devices","Accessing Node-RED from Other Devices",[18,240,241],{},"To access Node-RED from other devices on your local network:",[243,244,245],"ol",{},[30,246,247],{},"Find your Android device's IP address:",[74,249,251],{"className":76,"code":250,"language":78,"meta":12,"style":12},"ifconfig\n",[80,252,253],{"__ignoreMap":12},[83,254,255],{"class":85,"line":86},[83,256,250],{"class":89},[18,258,259],{},"Look for your IP address (typically starting with 192.168.x.x or 10.x.x.x)",[243,261,262],{"start":152},[30,263,264],{},"Access Node-RED from another device using:",[74,266,269],{"className":267,"code":268,"language":216},[214],"http:\u002F\u002FYOUR_ANDROID_IP:1880\n",[80,270,268],{"__ignoreMap":12},[22,272,274],{"id":273},"security-considerations","Security Considerations",[18,276,277,280],{},[62,278,279],{},"Important:"," By default, Node-RED runs without any authentication or encryption. This means anyone who can access the editor URL can view and modify your flows.",[18,282,283],{},"Before accessing Node-RED from other devices on your network, make sure to secure your installation by enabling authentication and following security best practices.",[18,285,286,287,292],{},"For detailed instructions on securing Node-RED, including enabling authentication, HTTPS, and other security features, refer to the official ",[52,288,291],{"href":289,"rel":290},"https:\u002F\u002Fnodered.org\u002Fdocs\u002Fuser-guide\u002Fruntime\u002Fsecuring-node-red",[56],"Node-RED Security documentation",".",[22,294,296],{"id":295},"device-access","Device Access",[18,298,299,300,303],{},"You can get direct access to various hardware on the device by using the extra Termux device plugins - which can then be accessed via Node-RED using the ",[80,301,302],{},"exec"," node.",[18,305,306],{},"Note: you need to install both the add-on app, and also the add-on API in Termux.",[243,308,309,312],{},[30,310,311],{},"Install add-on app - Termux:API from the same source you got Termux",[30,313,314],{},"Install add-on access into Termux:",[74,316,318],{"className":76,"code":317,"language":78,"meta":12,"style":12},"pkg install termux-api\n",[80,319,320],{"__ignoreMap":12},[83,321,322,324,326],{"class":85,"line":86},[83,323,90],{"class":89},[83,325,129],{"class":93},[83,327,328],{"class":93}," termux-api\n",[243,330,332],{"start":331},3,[30,333,334,335,340],{},"Use the ",[52,336,339],{"href":337,"rel":338},"https:\u002F\u002Fflows.nodered.org\u002Fnode\u002Fnode-red-contrib-termux-api",[56],"node-red-contrib-termux-api"," node to access device features like camera, GPS, sensors, and more",[18,342,343,344,292],{},"Learn more about ",[52,345,348],{"href":346,"rel":347},"https:\u002F\u002Fwiki.termux.com\u002Fwiki\u002FTermux:API",[56],"how to use Termux API",[22,350,352],{"id":351},"limitations","Limitations",[18,354,355],{},"Running Node-RED on Android has some limitations:",[27,357,358,361,364,367],{},[30,359,360],{},"Performance depends on your device's hardware",[30,362,363],{},"Some nodes may not work due to Android\u002FTermux limitations",[30,365,366],{},"Battery consumption can be significant for long-running instances",[30,368,369],{},"Background execution may be restricted by Android's power management",[371,372,373],"style",{},"html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}",{"title":12,"searchDepth":152,"depth":152,"links":375},[376,377,385,386,387,388],{"id":24,"depth":152,"text":25},{"id":41,"depth":152,"text":42,"children":378},[379,380,381,382,383,384],{"id":46,"depth":331,"text":47},{"id":68,"depth":331,"text":69},{"id":113,"depth":331,"text":114},{"id":160,"depth":331,"text":161},{"id":194,"depth":331,"text":195},{"id":221,"depth":331,"text":222},{"id":237,"depth":152,"text":238},{"id":273,"depth":152,"text":274},{"id":295,"depth":152,"text":296},{"id":351,"depth":152,"text":352},"Learn how to install and run Node-RED on Android devices using Termux","md",{},true,"\u002Fnode-red\u002Fgetting-started\u002Fnode-red-android",{"title":5,"description":389},"node-red\u002Fgetting-started\u002Fnode-red-android","esLmP6pHbHqNmV_ndPKilGlgj7PplOz3ktXeC71d1ZA",1780070557226]