A Mac OS X menu bar status item to show your daily quota usage. It retrieves your available balance directly every hour from the Vodacom website. If you have an appropriate local data usage monitor, it can retrieve your usage split between peak and off-peak.
- Python 2.7 or newer
- Xcode Command-Line Tools
- rumps: Ridiculously Uncomplicated Mac OS X Python Statusbar apps
- vnstat
NOTE: The original rumps repository is defective since the launch of Mac OS X Mavericks, so rather use [this](tail -f /var/log/Vodacom Data Usage.log) alternative.
- Download this code
- Install
scripts/get_today_hourly_usage.sh
on your internet gateway in~/Scripts/get_today_hourly_usage.sh
for a user with SSH keys set up (this is the default, but you can configure it to execute locally; check the monitor setting in the configuration file) - Create directory and copy downloaded contents to
/usr/local/vodacom_data_usage/
and runchown -R root:wheel /usr/local/vodacom_data_usage/
- Copy the plist file to
/Library/LaunchAgents/
(andchown
like above) - Update the config file with your details:
/usr/local/vodacom_data_usage/conf\Vodacom Data Usage.conf
- Run
launchctl load -w /Library/LaunchAgents/com.whatsthatlight.VodacomDataUsage.plist
to install it to auto start (it will start immediately) - Run
tail -f /var/log/Vodacom Data Usage.log
to monitor the app
Check the log file.
Thank you to dryicons for the Coquette Icon Set.