This program can get your SLT data usage and display it in the system tray.
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.
Prerequisites:
- Windows 10, Mac computer
- SLT broadband account credentials
How to install:
- Download the SLT_Usage_Web_Installer.exe file. Your browser may hesitate, so you may have to allow it in the Downloads section.
- Install the downloaded file.
- App will start automatically after the installation.
- Save your SLT username (Ex: 94112xxxxxx) and password using the popup window.
- You will see a system tray icon containing your data usage summary. Hover over to see the full report.
- Move it out to the taskbar from system tray, if you want to see it directly all the time.
- Download the SLT_Usage.zip file.
- Drag the downloaded file to Applications folder.
- 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.
- Save your SLT username (Ex: 94112xxxxxx) and password using the popup window.
- You will see a system tray icon containing your data usage summary. Hover over to see the full report.
- 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.
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