This script allows the Telus smart hub to be rebooted programmatically allowing for periodic restarting of the device. For maximum use of the smart hub I have found that it needs to be restarted approx once a week to maintain peak performance. I am unsure as to why this is the case. Perhaps the device doesn't implement a garbage collector system correctly and so the ram fills up or it simply slows down form some sort of logs it is keeping or something to that effect.
At any rate a periodic restart seems to fix these issues.
wget https://raw.githubusercontent.com/OwenRempel/TelusZTE-Restart/master/install.sh && sudo bash install.sh
This step is mostly for linux as if you are running this on a windows computer you can just go download the latest version of chrome.
- Make sure you system is up to date
sudo apt update && sudo apt upgrade
- Download any required packages
sudo apt install python3 python3-pip curl unzip
- Download the latest version of chrome for linux
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- Install
.deb
file
sudo dpkg -i google-chrome-stable_current_amd64.deb
- Fix any missing dependency's
sudo apt --fix-broken install
You can run this command to see what version you are running
google-chrome-stable --version
- Move to you project dir
cd routerReboot
- Get the current Release
chrome_driver=$(curl "https://chromedriver.storage.googleapis.com/LATEST_RELEASE")
curl -Lo chromedriver_linux64.zip "https://chromedriver.storage.googleapis.com/\
${chrome_driver}/chromedriver_linux64.zip"
- Unzip the folder and mark it executable
mkdir -p "chromedriver/stable" && \
unzip -q "chromedriver_linux64.zip" -d "chromedriver/stable" && \
chmod +x "chromedriver/stable/chromedriver"
- Install Selenium
pip3 install selenium
- Update you settings in
main.py
password = 'youPassword'
url = 'http://192.168.0.1'
chromedriverPath = "chromedriver/stable/chromedriver"