/SLT-Data-Usage

This program can get your SLT data usage and display it in the system tray. Supports Windows, Mac and Ubuntu.

Primary LanguagePythonMIT LicenseMIT

SLT-Data-Usage

This program can get your SLT data usage and display it in the system tray.

Summary SLT Usage Report on Windows SLT Usage Report on MacOS
Summary is always visible Hover over to see the full report Same on MacOS

Tested on Windows (10) and MacOS (Big Sur). For OSX Xbar plugin, see @kaveenr's script.


Download and install the latest version using following instructions.

How to install to run forever:

Prerequisites:

How to install:

Windows

  1. Download the SLT_Usage_Web_Installer.exe file. Your browser may hesitate, so you may have to allow it in the Downloads section.
  2. Install the downloaded file.
  3. App will start automatically after the installation.
  4. Save your SLT username (Ex: 94112xxxxxx) and password using the popup window.
  5. You will see a system tray icon with your data usage summary. Left click on it to refresh and hover over to see the full report.
  6. Move it out to the taskbar from system tray, if you want to see it directly all the time.

MacOS

  1. Download the slt_usage_macos.app.zip file.
  2. Drag the downloaded file to Applications folder.
  3. Go to Applications folder, right click on the app icon and select open. You might not be able to run the app using launchpad at first.
  4. Save your SLT username (Ex: 94112xxxxxx) and password using the popup window.
  5. You will see a system tray icon with your data usage summary. Hover over to see the full report.
  6. Set the app to start at login. See here: Mac OS X: Change Which Apps Start Automatically at Login

Ubuntu

  1. Download the slt_usage_ubuntu file. Your browser may hesitate, so you may have to allow it in the Downloads section.
  2. Run the downloaded file.
  3. Save your SLT username (Ex: 94112xxxxxx) and password using the popup window.
  4. You will see a system tray icon with your data usage summary. Left click on it to refresh or view the full report.

Auto refresh interval is 120 secs.


🟥 Following instructions are for developers only.

If you are running/building from code

Initial setup:

# For all OSs
pip3 install -r requirements.txt

# For Ubuntu
sudo apt install gir1.2-appindicator3-0.1
sudo apt install python3-tk
sudo apt purge fcitx-module-dbus

# For MacOS
brew install python-tk 

To run from code:

# For all OSs
python3 runner.py

Create executable:

# For all OSs
pip3 install pyinstaller
pyinstaller --noconsole --onefile 'runner.py' --name 'slt_usage'

Create InnoSetup installer:

# For Windows
iscc InnoSetup_offline_installer_script.iss
iscc InnoSetup_web_installer_script.iss