Skip to content

OwenRempel/TelusZTE-Restart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telus ZTE SmartHub Reboot Script

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.

One line install

wget https://raw.githubusercontent.com/OwenRempel/TelusZTE-Restart/master/install.sh && sudo bash install.sh

Manual Setup

Step 1

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.

  1. Make sure you system is up to date
sudo apt update && sudo apt upgrade
  1. Download any required packages
sudo apt install python3 python3-pip curl unzip
  1. Download the latest version of chrome for linux
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
  1. Install .deb file
sudo dpkg -i google-chrome-stable_current_amd64.deb
  1. 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

Step 2


  1. Move to you project dir
cd routerReboot
  1. 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"
  1. Unzip the folder and mark it executable
mkdir -p "chromedriver/stable" && \
unzip -q "chromedriver_linux64.zip" -d "chromedriver/stable" && \
chmod +x "chromedriver/stable/chromedriver"

Step 3


  1. Install Selenium
pip3 install selenium
  1. Update you settings in main.py
password = 'youPassword'
url = 'http://192.168.0.1'
chromedriverPath = "chromedriver/stable/chromedriver"

Congratulations it should work now!

About

A simple script to reboot the Telus SmartHub ZTE

Topics

Resources

Stars

Watchers

Forks