No description, website, or topics provided.
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
comcastUsage.py
setup.py

README.md

Note

Comcast has discontinued the api (along with it's desktop app) that this application used to obtain usage information.

comcastUsage

A simple command line script for seeing how much data have you left until you blow through Comcast's data cap.

Installation

comcastUsage is not currently in PyPI, so you'll have to install it using pip:

$> git clone https://github.com/WTFox/comcastUsage.git
$> cd comcastUsage
$> pip install .

Usage

After installing, you can check your Comcast data usage by running comcast-usage from a terminal. Running this command will give you output that looks like this:

$> comcast-usage 

Comcast/Xfinity Data Usage for the Month.
--------------------------------------------------------------------------------
54% of data used
62% through the month.
114 GBs remaining until 01/31/16.
186 GBs / 300GBs used.
--------------------------------------------------------------------------------

comcastUsage depends on two environment variables COMCAST_USERNAME AND COMCAST_PASSWORD. As you can probably guess, your Comcast username goes in COMCAST_USERNAME and your Comcast password goes in COMCAST_PASSWORD. You can add these to your bash initialization script...

# ~/.bashrc

# ...snip...

export COMCAST_USERNAME=example.user@comcast.com
export COMCAST_PASSWORD=supersecretpassword

# ...snip ...

or they can passed on the command line each time you run the script:

$> COMCAST_USERNAME="example.user@comcast.com COMCAST_PASSWORD="supersecretpassword" comcast-usage

Author

comcastUsage was written by Anthony Fox.