After a while, the web login began to irritate me. I couldnt any more do the first thing I normally do in the morning - stretch my hands out underneath the rajai(warm blanket), grope for the power button, switch on the computer and squirm back into the cozy blanket waiting for the mails to get downloaded by the time I really get out of bed.
I needed an automated CLI login that doesnt require me to login to my account, fire a browser .. and only then login and download my mails. What a waste of quality early morning sleeping time in winter! :)
So here is an attempt to save myself from this misery. This is a small script that I wrote today afternoon which will, for now, login and logout from the Hotwire web based login system. I plan to also add functionality in the future to renew the account ( a monthly PITA) and to display a summary of my usage.
Update: I have added the summary feature too. The client now shows you your usage summary in a far more informative manner than hotwire itself! IOW, Usage durations are displayed, instead of just login and logout time.
Uses Python (standard libs) , works for me on Fedora Core 3, should probably work on other *nix with Python too.
- Download the program from the link below, make it executable and put it somewhere in your path
Create a configuration file in
~/.hotclientrcif you are going to run it using your id) with the following text:
[HOTWIRE] server=210.x.xxx.xx username=yourusername password=your password
Run the program
hotclientwithout any arguments to see the syntax.
You should now be able to login by using the command
hotclient --loginor just
You should be able to logout by using the command
hotclient --logoutor just
Please send feedback/brickbats/flowers/fecalgrams to (
sandip AT lug - delhi DOT ORG)
This page can also be accessed using the url http://tinyurl.com/6d6fh.comments powered by Disqus