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-senderHUAWEI_ROUTER_PASSWORDHuawei router login password (example: 123456)GMAIL_ACCOUNTgmail account for smtp login (example: user@gmail.com)GMAIL_PASSWORDgmail password for smtp login (example: P@ssw0rd)MAIL_RECIPIENTComma separated recipient (example: user1@livemail.tw,user2@gmail.com)
HUAWEI_ROUTER_IP_ADDRESSHuawei router IP address (default: 192.168.8.1)HUAWEI_ROUTER_ACCOUNTHuawei router login account (default: admin)DELAY_SECONDWaiting seconds for each check (default: 10)LOCALESet 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.