https://github.com/carlosplanchon/wifireconnect
Python3 module to test and ensure connectivity on a network which have stability problems on traffic routing (link layer).
https://github.com/carlosplanchon/wifireconnect
carlosplanchon connectivity network nmcli ping pingparsing python3 wifi
Last synced: 9 months ago
JSON representation
Python3 module to test and ensure connectivity on a network which have stability problems on traffic routing (link layer).
- Host: GitHub
- URL: https://github.com/carlosplanchon/wifireconnect
- Owner: carlosplanchon
- License: gpl-3.0
- Created: 2019-10-07T23:27:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-07T23:28:20.000Z (over 6 years ago)
- Last Synced: 2025-08-18T01:50:01.489Z (10 months ago)
- Topics: carlosplanchon, connectivity, network, nmcli, ping, pingparsing, python3, wifi
- Language: Python
- Size: 16.6 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wifireconnect
*Python3 module to test and ensure connectivity on a network.*
## Rationale:
This module attemps to ensure connectivity on networks which have
stability problems on traffic routing (link layer).
## Requirements
You need network manager.
(sudo apt install network-manager)
## Installation
### Install with pip
```
pip3 install --user -U wifireconnect
```
## Usage
From shell:
```
$ python3.7 wifireconnect -h
usage: wifireconnect.py [-h] [-v] [-t TARGET] [-s SLEEP_BETWEEN] [-c COUNT]
[-e ESSID] [-p PASSWORD]
Run a connectivity test on a network connection(using ping) every a 's' time
and try to reconnect if that test fail.
(See your networks with 'nmcli conn')
optional arguments:
-h, --help show this help message and exit
-v, --verbose Verbosity.
-t TARGET, --target TARGET
Target webpage. Default httpbin.com.
-s SLEEP_BETWEEN, --sleep SLEEP_BETWEEN
Time between connectivity tests. Default: 10
-c COUNT, --count COUNT
Num of attemps to ping target on the connectivity
test. Default: 2
-e ESSID, --essid ESSID
AP's ESSID.
-p PASSWORD, --password PASSWORD
AP's password.
```
From the interpreter:
```
help(wifireconnect)
```