phptelemeter script can read the webpages for the webbased 'quota' monitor for the Belgian ISP Telenet.
These pages contain both the actual status (which is refreshed nightly), and a 30-day shifting window history. This history is what makes up the used quota.
Usage
First off, to actually run this script you must tell it where the php binary is. Edit phptelemeter.php and modify the first line to #!/path/to/php4 -q. On Debian Sid, this is /usr/bin/php4.
To create the initial configuration file, just run the script.
It will notice the absence of ~/.phptelemeterrc, and create a dummy version. Next, configure this file (usually you'll just want to change username and password to the information for your account), and rerun phptelemeter - you'll get the output you want instantly.
Command line options
There are several options:
-d, --daily - show the 30day overview (overrides config)
-g, --graph - shows the usage graph (overrides config)
-r, --remaining - show the remaining quota (overrides config)
-D, --debug - shows some debugging stuff
-f, --file-output - dumps the output in files instead on the stdout (overrides config)
-n, --new-config - writes a new dummy config file to the current directory
-V, --version - shows the version and exits
Product's homepage
Requirements:
· PHP
What's New in This Release: [ read full changelog ]
· This version drops the requirement for the nusoap and xmlparser libraries.
· It also supports the new interfaces for Telenet.
· It does require PHP 5.0.0 or later.