If you use Sprint PCS and have a plan that doesn't give you unlimited minutes, you may want to get a warning when you start to get close to your allocated time. I think Sprint has an add-on where they'll text message you your usage for a few bucks a month, but they give you the same information for free on their website. And so, I created a little script to log in and check that info for me, sending an e-mail if I'm over a certain threshold. See my weblog entry announcing it, and the script itself. (Of course, it's subject to breakage when Sprint changes their site structure, and you're on your own if it doesn't work for the way your particular minute usage is displayed.) I welcome any suggestions for improvement; someone out there may want to take the time to genericize it for other mobile providers, too.

Enjoy,
Silas

  • Comment on Use WWW::Mechanize to check Sprint PCS minute usage

Replies are listed 'Best First'.
Re: Use WWW::Mechanize to check Sprint PCS minute usage
by davidrw (Prior) on Sep 16, 2005 at 16:36 UTC
    Can you edit your post to include the actual source in <readmore> tags? Many people won't bother to follow external links (arguably valid reasons being laziness, security, and/or just on principle), and also if the external link changes, this node becomes useless...

    That aside, one quick code comment -- there's two spots where you're use $1, $2, and $3 from a s/// without first checking to see if the substitution works (and thus if $1/$2/$3 are what you expect)... (also, no div by zero check on $peak_percent assignment)