webcube4
A Bash+Javascript script to connect/disconnect the WebCube4 (Huawei E8378) 4G/LTE router
- Version: 1.0.0
- Date: 2017-01-10
- Developer: Alberto Pettarin (contact)
- License: the MIT License (MIT), see LICENSE.md
Installation
-
Make sure you have
curl
andnode
installed and in yourPATH
(any recent version will work, you do not need the exact version shown below):$ curl --version curl 7.51.0 $ node --version v7.0.0
-
Clone this repository:
$ git clone https://github.com/pettarin/webcube4.git $ cd webcube4
-
Put your router admin password in
~/.webcube4
:$ echo "your_router_admin_password" > ~/.webcube4 $ chmod 400 ~/.webcube4
Usage
$ bash webcube4.sh
Usage:
$ bash webcube4.sh connect [--debug]
$ bash webcube4.sh disconnect [--debug]
Notes:
1. you need curl and node to be installed and in your PATH
2. put your router admin password in ~/.webcube4, e.g. by running:
$ echo "yourpass" > ~/.webcube4 && chmod 400 ~/.webcube4
To connect:
$ bash webcube4.sh connect
[INFO] Getting index... done
[INFO] Logging in... done
[INFO] Connecting... done
[INFO] Success!
To disconnect:
$ bash webcube4.sh disconnect
[INFO] Getting index... done
[INFO] Logging in... done
[INFO] Disconnecting... done
[INFO] Success!
License
webcube4 is released under the MIT License.