Skip to content

Commit b0f86bd

Browse files
authored
Update android.md (#340)
Small mods around Play Store termux and friends not being maintained.
1 parent 7ceec9d commit b0f86bd

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

docs/getting-started/android.md

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ redirect_from:
77
- /docs/platforms/android
88
---
99

10-
Using the [Termux](https://termux.com) app in the app store makes it easy to run
11-
Node-RED on Android devices. You can get it from the [Play Store](https://play.google.com/store/apps/details?id=com.termux&hl=en_GB).
10+
Using the [Termux](https://termux.com) app makes it easy to run
11+
Node-RED on Android devices. Get it directly from thier [github](https://github.com/termux/termux-app#github) or via [F-Droid](https://f-droid.org/) here [Termux on F-Droid](https://f-droid.org/en/packages/com.termux/).
12+
13+
Note that the Play Store version is not maintained.
1214

1315
<div class="doc-callout"><em>Note</em> : the Node-RED team have no connection
14-
with the Termux application nor its development. We cannot provide support for
16+
with the Termux application nor its development, nor F-Droid. We cannot provide support for
1517
it in any way, other than to say that at this point in time it works.</div>
1618

1719
### Installing
@@ -26,21 +28,33 @@ Install it, and run it. Then at the prompt type
2628

2729
Then you can point a browser to `http://localhost:1880`
2830

31+
Note that installing openssh may make interacting with termux a little easier. [see this thread](https://discourse.nodered.org/t/android-termux-playstore-no-longer-a-recommended-install-source/85034/4) for a description of one such install.
32+
2933
### Notes
3034

3135
- You can also npm install other node-red nodes such as `node-red-dashboard` in the standard way :
3236

3337
cd ~/.node-red
3438
npm i node-red-dashboard
39+
40+
or via the Pallete Manager.
3541

3642
- The `volume-down` key is the ctrl key - so `vol-down-c` can be used to "break" a running app.
3743
- The instructions above also install the `nano` editor, which is useful for editing files.
3844

3945
### Autostarting
4046

41-
The recommended way of starting applications running in Termux is using the [Termux:Boot application](https://github.com/termux/termux-boot) (available from [F-droid](https://f-droid.org/en/packages/com.termux.boot/) or [Play Store](https://play.google.com/store/apps/details?id=com.termux.boot)).
47+
The recommended way of starting applications running in Termux is using the [Termux:Boot application](https://github.com/termux/termux-boot) (available from [F-droid](https://f-droid.org/en/packages/com.termux.boot/) - note that the Play Store version may not be maintained, and it's recommended to use the same source that you installed termux from).
48+
49+
We have found this other app useful for autostarting Termux on boot - <a href="https://play.google.com/store/apps/details?id=com.autostart&amp;hl=en_GB">Autostart - No Root</a> (Note: with termux:boot, use of other autoboot apps does not seem to be required).
4250

43-
We have found this other app useful for autostarting Termux on boot - <a href="https://play.google.com/store/apps/details?id=com.autostart&amp;hl=en_GB">Autostart - No Root</a>
51+
Note that the shebang in the node-red script is incompatible with termux:boot scripts. The workaround is to start node-red using a termux:boot startup script like:
52+
53+
```
54+
#!/data/data/com.termux/files/usr/bin/sh
55+
termux-wake-lock
56+
node /data/data/com.termux/files/usr/bin/node-red
57+
```
4458

4559
### Device Access
4660

@@ -50,7 +64,7 @@ node.
5064

5165
**Note**: you need to install both the add-on app, and also the add-on api in Termux.
5266

53-
Install add-on app - <a href="https://play.google.com/store/apps/details?id=com.termux.api&amp;hl=en">Termux:API</a> from Play store.
67+
Install add-on app - Termux:API from the same source you got termux.
5468

5569
Install add-on access into Termux
5670

@@ -59,3 +73,7 @@ Install add-on access into Termux
5973
### Useful links
6074

6175
- [How to use Termux API](https://wiki.termux.com/wiki/Termux:API)
76+
- [node-red-contrib-termux-api](https://flows.nodered.org/node/node-red-contrib-termux-api)
77+
- [Another Node-Red on termux install guide](https://che-adrian.medium.com/install-node-red-on-an-android-device-using-the-termux-app-1e1679ae876)
78+
79+

0 commit comments

Comments
 (0)