EE have some great 4G Data Plans, however it’s easy to
be in in the dark when it comes to knowing how much data is remaining on the plan. They have a status page at at
http://add-on.ee.co.uk/status but this means having to load up a web page each time to check.
Since most of my time is spent in a console it was worthwhile to pull these stats into a Terminal:
How it works:
The follwiing quick and dirty ruby script uses
Mechanize to scrape the page and
FileCache to memoize the results
and avoid overloading EE’s server.
It can be dropped into into
/usr/local/bin and made executable and loaded into tmux
set -g status-right "%a %b %d, %Y %H:%M :: #(ee-data-usage.rb)"