Skip to content

Python script that finds your Airtel Broadband usage and sends a notification to OS X's notification center.

License

Notifications You must be signed in to change notification settings

paambaati/airtel-usage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

airtel-usage

Python script that finds your Airtel Broadband usage and sends a notification to OS X's notification center.

Screenshot

Airtel Usage Screenshot

Requisites

  1. OS X.
  2. terminal-notifier. You can install this using brew install terminal-notifier.

Usage

  1. Clone this repo into a directory of your choice using the command git clone https://github.com/paambaati/airtel-usage.git
  2. Navigate into the clone's directory and simply run python airtel.py.

Notes

  1. Tested only on OS X Yosemite 10.10.1
  2. The script can be run on startup. To do that,
    1. Modify com.gp.airtel.plist with the correct paths of your script; at lines 8 and 10.
    2. Copy com.gp.airtel.plist to~/Library/LaunchAgents
    3. Run launchctl load ~/Library/LaunchAgents/com.gp.airtel.plist
    4. Run launchctl start com.gp.airtel
    5. Restart and check if it runs on boot.

Changelog

1.1 (25 January 2015)

+ Support for logging to OS X Console.

+ Added optional PLIST for running script as LaunchAgent.

1.0 (25 January 2015)

+ Initial release.

License

The MIT License (MIT)

Copyright (c) 2015 Ganesh Prasannah (exchequer598@gmail.com)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Python script that finds your Airtel Broadband usage and sends a notification to OS X's notification center.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages