https://github.com/zeyadkhaled/reboot-router
A quick nifty Python script to assist me with my struggles of manually rebooting the router everytime the internet is down.
https://github.com/zeyadkhaled/reboot-router
automation python-script router
Last synced: 11 months ago
JSON representation
A quick nifty Python script to assist me with my struggles of manually rebooting the router everytime the internet is down.
- Host: GitHub
- URL: https://github.com/zeyadkhaled/reboot-router
- Owner: zeyadkhaled
- Created: 2018-08-05T17:58:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-05T18:08:48.000Z (over 7 years ago)
- Last Synced: 2025-02-12T12:55:22.842Z (about 1 year ago)
- Topics: automation, python-script, router
- Language: Python
- Homepage:
- Size: 1.95 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Reboot Router using Python
I am learning Python so decided to code down this quick Router Rebooting script to fix one of daily issues.
## Usage
- Just fill in the 5 variables by refering to the examples
```python
user_data = {} #Example: {'user':'admin','password':'admin'}
reboot_data = {} #Example: {'reboot':'true'}
headers = {} #Example: {'Content-Type': 'application/x-www-form-urlencoded'}
login_url = '' #Example: http://192.168.1.1/api/user/login
reboot_url = '' #Example: http://192.168.1.1/api/user/reboot
```
- Thats it. Now you can run the script
## Requirments
- requests module
```
pip requests install
```
- Python 3