Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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

  1. Make sure you have curl and node installed and in your PATH (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
  2. Clone this repository:

    $ git clone https://github.com/pettarin/webcube4.git
    $ cd webcube4
  3. 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.

About

A Bash+Javascript script to connect/disconnect the WebCube4 (Huawei E8378) 4G/LTE router

Resources

License

Releases

No releases published

Packages

No packages published