Skip to content

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

Notifications You must be signed in to change notification settings

rajithacharith/SLT-Data-Usage

 
 

Repository files navigation

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 containing your data usage summary. 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.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 containing 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

Auto refresh interval is 120 secs.


🟥 Following instructions are for developers only.

If you are running/building from code

Initial setup:

# For all OSs
pip install pystray requests darkdetect

# 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:

python3 SLT_Usage.py

Create executable:

# For all OSs
pip3 install pyinstaller

# For Windows
pyinstaller --hidden-import 'pystray._win32' --noconsole --onefile 'SLT_Usage.py'

# For Ubuntu
pyinstaller --hidden-import 'pystray._appindicator' --hidden-import 'pystray._gtk' --hidden-import 'pystray._xorg' --noconsole --onefile 'SLT_Usage.py'

# For MacOS
pyinstaller --hidden-import 'pystray._darwin' --noconsole --onefile 'SLT_Usage.py'

Create InnoSetup installer:

iscc InnoSetup_offline_installer_script.iss
iscc InnoSetup_web_installer_script.iss

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 65.9%
  • Inno Setup 34.1%