Skip to main content

Command line interface tool for interacting with Huawei LTE routers

Project description

Hurocon

Hurocon (huawei router control) - command line interface tool for interacting with Huawei LTE routers

Features

  • Device Control
    • Reboot
  • SMS Control
    • Send

Planned:
Device Control - Information/Stats, Signal Level, LED Control;
SMS Control - List, View;
Connection Control - WiFi Settings/Switches, Cellular Settings/Switches;

Supported Devices

Full list of supported devices is available on this link.

Installation

Currently this tool can only be installed with pip on python >= 3.7. You can install it from PyPi:

pip install hurocon

Or directly from this Github repo:

pip install git+https://github.com/maximilionus/hurocon.git

Built executable mode (pyinstaller-based) is planned but no ETA yet

Quickstart

Intro

After successful installation of this tool it can be accessed in shell using the following commands:

$ hurocon
# OR
$ python -m hurocon

You can also view a list of all root commands with:

$ hurocon --help

Each command in this tool has a special --help flag to display detailed information about it

Authentification

First of all, you need to specify the authorization and connection data so that this tool can access the router in the future. You do it in two ways.

  • In interactive mode:

    $ hurocon auth login
    
  • Manually, by running:

    # Initialize local configuration file
    $ hurocon config init
    
    # Show path to local configuration file
    $ hurocon config path
    

    And then manually editing the json file with any text editor. It has a human-readable structure, so every part of it is exactly what you think it is.

Testing Connection

After auth details successfully specified you can test your connection with router by running

$ hurocon auth test

# Returns
# Success: Successful Authentification
# Failure: Auth failed, reason: "..."

Conclusion

That's it, you're ready to go. And remember - no matter how deep you go, --help flag is always here to help 👍

Special

Big thanks to Adam Schubert for his amazing huawei-lte-api package, that made this whole thing possible.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hurocon-0.1.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

hurocon-0.1.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file hurocon-0.1.0.tar.gz.

File metadata

  • Download URL: hurocon-0.1.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.4.0-1074-azure

File hashes

Hashes for hurocon-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3299f7d47d8c4fce735704988f3429267ed86a5ca9750927951d3cbe817bd162
MD5 65eece3d8db5ca6d4836170d6d42b437
BLAKE2b-256 b6c0a56b956ed370d51aa808d54a305c1b129e21ae1aa86bb6f243c2ab8c4812

See more details on using hashes here.

File details

Details for the file hurocon-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: hurocon-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.4.0-1074-azure

File hashes

Hashes for hurocon-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 49e6b4a8fa7b09786acaf76691cfc0a89dc7136972523d9d66d0ad19e5e02730
MD5 a4b887ed053832006c85ca83bbdd9fbe
BLAKE2b-256 00b03d72927dd0ec698e7b6886775bfd96e4aa45a32003e31adb1aba64756598

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page