The python script can help you read your sms from e-mail box.
Tested on:
- HUAWEI B315s-22
- HUAWEI B525s-65a
if you success use for other huawei router, you can feedback for me.
- Find the unread SMS
- Send the SMS context via email
- Set has been read status for this SMS
- Loop to step 1
- copy .env.example to .env
$ cp .env.example .env
$ vim .env
- just run it!
$ python3 check-sms.py
$ docker run -e HUAWEI_ROUTER_PASSWORD=<password> -e GMAIL_ACCOUNT=<gmail-account> -e GMAIL_PASSWORD=<gmail-password> -e MAIL_RECIPIENT=<your-email-address> -d awei/huawei-lte-router-sms-to-email-sender
HUAWEI_ROUTER_PASSWORD
Huawei router login password (example: 123456)GMAIL_ACCOUNT
gmail account for smtp login (example: user@gmail.com)GMAIL_PASSWORD
gmail password for smtp login (example: P@ssw0rd)MAIL_RECIPIENT
Comma separated recipient (example: user1@livemail.tw,user2@gmail.com)
HUAWEI_ROUTER_IP_ADDRESS
Huawei router IP address (default: 192.168.8.1)HUAWEI_ROUTER_ACCOUNT
Huawei router login account (default: admin)DELAY_SECOND
Waiting seconds for each check (default: 10)LOCALE
Set lang (default: en_US, support en_US, zh_TW, zh_HK, zh_CN)
- theskumar/python-dotenv (used for non-docker environment)
- Salamek/huawei-lte-api
The python script is open-sourced software licensed under the MIT license.