Comcast has recently implemented a data cap in my area. I wanted to track their
view of my usage so I could compare it with my vnstat logs. This Python script
(comcast.py
) will dump a JSON blob with usage information. The included bash
script (comcast.sh
) uses that data to write to a local statsd/graphite
installation.
The only requirement for the Python script is the requests library.
COMCAST_USERNAME=bob COMCAST_PASSWORD=hope python3 comcast.py
I also like tracking my home power usage. The PGE script allows that.
It requires requests
and optionally dateutil
(to allow the script to
automatically break long time intervals into multiple requests).
PGE_USERNAME=bob PGE_PASSWORD=hope python3 pge.py