This script allows Johnny-Five to run from a Termux terminal communicating with other Android apps or external devices by using the TCP protocol without root, without bluetooth and without the WiFi shield. The reason for the TCP protocol is that Termux still does not implement USB-OTG to Serial drivers and the vanilla Johnny-Five would hang right out the box because of this limitation.
Tutorial for controlling Arduino or other IoT devices from Android phones using Johnny-Five and Node-RED. The connection to the board can be local (USB OTG) or remote (TCP).
Server side PHP Script that captures any HTTP GET request data and stores in a CSV spreadsheet. Can be used with Raspberry PI circuits, Arduino, IntelGalileo, IntelEdison and even with Smartwatches that can connect to the internet using Ethernet cables, Bluetooth, USB or Wifi.