All Projects → Salamek → Huawei Lte Api

Salamek / Huawei Lte Api

Licence: lgpl-3.0
API For huawei LAN/WAN LTE Modems

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Huawei Lte Api

Node Bitbucket
Bitbucket API client for Browser and Node.js
Stars: ✭ 73 (-32.41%)
Mutual labels:  api-client
Google Searchconsole
A wrapper for the Google Search Console API.
Stars: ✭ 83 (-23.15%)
Mutual labels:  api-client
Instagram api gem
A Ruby wrapper for the Instagram API
Stars: ✭ 100 (-7.41%)
Mutual labels:  api-client
Linodego
Go client for Linode REST v4 API
Stars: ✭ 76 (-29.63%)
Mutual labels:  api-client
Cistern
Ruby API client framework
Stars: ✭ 81 (-25%)
Mutual labels:  api-client
Rapidql
Query multiple APIs and DBs and join them in a single query
Stars: ✭ 91 (-15.74%)
Mutual labels:  api-client
Python2 Krakenex
(UNMAINTAINED) REST Exchange API for Kraken.com, Python 2
Stars: ✭ 72 (-33.33%)
Mutual labels:  api-client
Python Scaleway
🐍 Python SDK to query Scaleway APIs.
Stars: ✭ 107 (-0.93%)
Mutual labels:  api-client
Shlink Web Client
A React-based client application for Shlink
Stars: ✭ 81 (-25%)
Mutual labels:  api-client
Adyen Php Api Library
Adyen API Library for PHP
Stars: ✭ 93 (-13.89%)
Mutual labels:  api-client
Httpie Oauth
OAuth plugin for HTTPie
Stars: ✭ 78 (-27.78%)
Mutual labels:  api-client
Parse Dashboard For Ios
A beautiful mobile client for managing your Parse apps while you are on the go! Now you can easily view and modify your data in the same way you would on the offical desktop client.
Stars: ✭ 81 (-25%)
Mutual labels:  api-client
Algoliasearch Client Android
Algolia Search API Client for Android
Stars: ✭ 92 (-14.81%)
Mutual labels:  api-client
Kraken Node
Official Kraken.io module for Node.js
Stars: ✭ 76 (-29.63%)
Mutual labels:  api-client
Tracker api
Ruby Wrapper for Pivotal Tracker v5 API
Stars: ✭ 102 (-5.56%)
Mutual labels:  api-client
Openvulnapi
Documentation and Tools for Cisco's PSIRT openVuln API
Stars: ✭ 73 (-32.41%)
Mutual labels:  api-client
Contextio Node
[DEPRECATED] - Official Node.js client library for the Context.IO Email API
Stars: ✭ 86 (-20.37%)
Mutual labels:  api-client
Yelp Ruby
A Ruby gem for communicating with the Yelp REST API
Stars: ✭ 107 (-0.93%)
Mutual labels:  api-client
Nodejs Youtube
Access public YouTube data feeds from your Node.js apps
Stars: ✭ 102 (-5.56%)
Mutual labels:  api-client
Sypht Java Client
A Java client for the Sypht API
Stars: ✭ 93 (-13.89%)
Mutual labels:  api-client

huawei-lte-api

API For huawei LAN/WAN LTE Modems, you can use this to simply send SMS, get information about your internet usage, signal, and tons of other stuff

Tested on:

3G/LTE Routers:

  • Huawei B310s-22
  • Huawei B315s-22
  • Huawei B525s-23a
  • Huawei B525s-65a
  • Huawei B715s-23c
  • Huawei E5186s-22a
  • Huawei B528s
  • Huawei B535-232

3G/LTE USB sticks:

(Device must support NETWork mode aka. "HiLink" version, it wont work with serial mode)

  • Huawei E3131
  • Huawei E3531
  • Huawei E3372

(probably will work for other Huawei LTE devices too)

Will NOT work on:

LTE Routers:

  • Huawei B2368-22 (Incompatible firmware, testing device needed!)

Installation

PIP (pip3 on some distros)

$ pip install huawei-lte-api

Repository

You can also use these repositories maintained by me

Debian and derivates

Add repository by running these commands

$ wget -O - https://repository.salamek.cz/deb/salamek.gpg.key|sudo apt-key add -
$ echo "deb     https://repository.salamek.cz/deb/pub all main" | sudo tee /etc/apt/sources.list.d/salamek.cz.list

And then you can install a package python3-huawei-lte-api

$ apt update && apt install python3-huawei-lte-api

Archlinux

Add repository by adding this at end of file /etc/pacman.conf

[salamek]
Server = https://repository.salamek.cz/arch/pub/any
SigLevel = Optional

and then install by running

$ pacman -Sy python-huawei-lte-api

Gentoo

$ emerge dev-python/huawei-lte-api

Usage

from huawei_lte_api.Client import Client
from huawei_lte_api.AuthorizedConnection import AuthorizedConnection
from huawei_lte_api.Connection import Connection

# connection = Connection('http://192.168.8.1/') For limited access, I have valid credentials no need for limited access
# connection = AuthorizedConnection('http://admin:[email protected]/', login_on_demand=True) # If you wish to login on demand (when call requires authorization), pass login_on_demand=True
connection = AuthorizedConnection('http://admin:[email protected]/')

client = Client(connection) # This just simplifies access to separate API groups, you can use device = Device(connection) if you want

print(client.device.signal())  # Can be accessed without authorization
print(client.device.information())  # Needs valid authorization, will throw exception if invalid credentials are passed in URL


# For more API calls just look on code in the huawei_lte_api/api folder, there is no separate DOC yet

Result dict

{'DeviceName': 'B310s-22', 'SerialNumber': 'MY_SERIAL_NUMBER', 'Imei': 'MY_IMEI', 'Imsi': 'MY_IMSI', 'Iccid': 'MY_ICCID', 'Msisdn': None, 'HardwareVersion': 'WL1B310FM03', 'SoftwareVersion': '21.311.06.03.55', 'WebUIVersion': '17.100.09.00.03', 'MacAddress1': 'EHM:MY:MAC', 'MacAddress2': None, 'ProductFamily': 'LTE', 'Classify': 'cpe', 'supportmode': None, 'workmode': 'LTE'}

Code examples

Monitoring

SMS

Ports to other languages

Donations

  • 250 CZK (9,79 EUR) for B535-232 fund, thx @larsvinc !
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].