API For Dongle LAN/WAN LTE USB Modems, you can use this to simply get information about your internet usage, signal, and tons of other stuff
- 4GDONG001 4G LTE UBS Dongle Wireless WIFI Modem Stick:
- Dongle 4G LTE USB Modem Stick:
pip3 install git+https://github.com/bxdoan/dongle-lte-api.git
📚 Click to see some basic examples
from dongle_lte_api import Dongle
info = Dongle().get_data()
print(info)
Result dict
{
"ssidName":"DonHandsome",
"signalStrength":-74,
"sn":"1000000051E834",
"simCardState":"valid",
"systemVersion":"UFI103_V02_ZX_DD_230306",
"appVersion":"WEB_V1.0.311#",
"imei":"861323063168235",
"basebandVersion":"UFI103_CT 20220801",
"mac":"5c:a0:00:7b:05:3f",
"wanIpAddress":"10.188.47.213",
"imsi":"452021123670828",
"iccId":"89840200011236708283",
"hardwareVersion":"HW1.3"
}
Reboot network
from dongle_lte_api import Dongle
Dongle().reboot()
Change SSID
from dongle_lte_api import Dongle
Dongle().change_ssid(ssid="Don123")
Change password
from dongle_lte_api import Dongle
Dongle().change_password(password="12344321")
NOTE : change password/change ssid/reboot action will automate restart the modems
Buy me a coffee