- Install
huawei-lte-api
export HUAWEI_ROUTER_IP_ADDRESS="" # Router IP address
export HUAWEI_ROUTER_ACCOUNT="" # Router Username
export HUAWEI_ROUTER_PASSWORD="" # Router Password
export TARGET_PHONE_NUMBERS="" # Phone numbers to forward to (international format, coma separated list)
export DELAY_WAIT_SECONDS="" # Delay between two checks (when there is no new SMS)
export DELAY_LOOP_SECONDS="" # Delay between two SMS read
python3 sms-forwarder.py
First, ensure your model is compatible by checking https://github.com/Salamek/huawei-lte-api#tested-on.
Then, ensure you have a local network access to your router.
Follow guidance at https://www.192-168-1-1-ip.co/huawei/routers/789/ to check you can connect to the administration panel.
Next, install the python dependencies on the box that will execute this script and set environment variables.
Finally, launch the script.