Skip to content

Tired of having to reconnect to Quantic Telecom all the time ? No worry, qt_autoconnect has your back !

License

Notifications You must be signed in to change notification settings

0nyr/qt_autoconnect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quantic telecom auto reconnect

Tired of having to reconnect to Quantic Telecom all the time ? No worry, qt_autoconnect has your back !

Run the command every 6h periods, hence 4 times a day.

Installation & configuration

This software is provided as a debian package. Hence, on debian-based distros like Ubuntu, just download the package and install it using sudo apt install ./package.

required tools

To use this project, you need:

  • A firefox browser
modifying the project to your needs

Make sure to rename the connection_data_example.json into connection_data.json and to put your credentials inside.

{
    "url": "https://www.quantic-telecom.net/connexion-reseau",
    "email": "[email protected]",
    "password": "strong_password"
}

The project

Objective: From time to time, the connection to quantic telecom fails and need to be reestablished by giving the credentials to the connection page. This is not only borring, but is also a problem when one wants one's computer to stay connected to the network.

Idea: create a command-like program that automatically checks from time to time if the pc is still connected, else reconnect to the internet.

https://www.quantic-telecom.net/connexion-reseau : The URL of connection page to connect to quantic-telecom.

connection requests

_token	"gJKPmXZhPBzEEn53Xrr1jlpbVcVWfzZHz4YJwMBG"
email	"[email protected]"
password	"lololhh"

_token	"gJKPmXZhPBzEEn53Xrr1jlpbVcVWfzZHz4YJwMBG"
email	"[email protected]"
password	"lololhd"

techs

  • geckodriver
  • python3
  • selenium

TODOs

  • Modifypreinst to download and installgeckodriver.
  • Completepreinst,postinst,prerm,postrm.
  • Modifypreinst to get the user credentials and initialise theres/connection_data.json or print a message telling the user to edit this file.
  • Removepreinst get user credential and make it a separate command so as not to block graphical package installer !
  • Modifyrun.sh to delete the log file if too large.
  • Adding cron support and init and rm it automatically.
  • Correct Makefile to build properly the debian package usingdebuild -uc -us.
  • Adding colors to Python scripts outputs.
  • Add a flag -d to display user credentials.
  • Add alternative -h for --help command
  • Add a --credits, -c command to display the credits.
  • Fix flag and command execution pipeline.
  • Add a license file and copy it inside debian/
  • Changegeckodriver.log location to be inside thelogs/ folder.
  • Create a PPA.
  • Fix cron job desintallation by debian. Cron file in/etc/cron.d not properly removed. However it seems it shouldn't be removed by hand/script... ?
  • [ ]
  • Add aman page.
  • Release a package in PPA.
  • Release a package with GitHub.

Notes

Selenium

Useful links

selenium doc

setting up headless browser

How get the text from the <p> tag using XPath Selenium and Python

cron

Useful links

cron job beginner's guide

create cron jobs via debian config files

Use package.cron.d - Installed as /etc/cron.d/package: for any other time.

About

Tired of having to reconnect to Quantic Telecom all the time ? No worry, qt_autoconnect has your back !

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published