Astalaseven / fon-connect

Connect easily to FON Belgacom Network!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fon-connect

Connect easily to FON (Belgacom) Network!

Installation

pip install fon

Usage

You need to store your credentials in ~/.config/fon

[fon]
username = user@belgacomfon.be
password = mAhPassw0rdZ

fon-connect tests if the connection is active by querying perdu.com by default. To change this behavior, add url = http://myurl.example.com/page to the end of ~/.config/fon

Use it with:

fon

Alternatively, you can give your username, password and the test url as parameters (all are optional).

fon -u user@belgacomfon.be -p mAhPassw0rdZ --url=http://myurl.example.com/page

You also can specify another path for the configuration file with -c /path/to/file

fon-connect also has a persistent mode (activate it with -P or --persist) which tests the connection, reconnects if necessary, sleeps for 10 seconds and loops.

Full help :

fon -h

License

fon-connect is available under the MIT license.

Original code from Gatien Bovyn at https://github.com/Astalaseven/fon-connect.

Changes made by Nikita Marchant at https://github.com/C4ptainCrunch/fon-connect.

Misc

  • Feel free to report bugs or submit pull request.
  • This code should work on belgian (Belgacom) FON portals. I hope it also works on other carriers portals but if not, please report and I'll try to fix it.

About

Connect easily to FON Belgacom Network!

License:MIT License


Languages

Language:Python 100.0%