-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
35 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,56 @@ | ||
**This python package is unofficial and is not related in any way to Telekom. It was developed by reversed engineered http requests and can stop working at anytime!** | ||
|
||
# Speedport-API | ||
## Speedport-API | ||
Control Telekom Speedport routers with Python! | ||
### Supported Devices | ||
* Speedport Smart 4 | ||
### Installation | ||
```commandline | ||
pip install speedport-api | ||
``` | ||
## Commandline tool | ||
|
||
### Supported Devices | ||
* Speedport Smart 4 | ||
|
||
### Commandline tool | ||
With this shipped commandline tool can a speedport in your network be controlled. | ||
|
||
#### Turn wifi off | ||
```commandline | ||
$ speedport wifi off | ||
Turn off wifi... | ||
``` | ||
|
||
#### Turn guest wifi on | ||
```commandline | ||
$ speedport guest-wifi on | ||
Turn on guest wifi... | ||
``` | ||
|
||
#### Reconnect for new ip address | ||
```commandline | ||
$ speedport reconnect | ||
123.45.67.89 / 5403:f3:35aa:12f:7287:41cf:fb1c:3c83 | ||
Reconnect with internet provider... | ||
123.45.67.12 / 5403:f3:35fe:12f:7287:41cf:fb1c:3c83 | ||
``` | ||
|
||
#### Enable wps connect | ||
```commandline | ||
$ speedport wps | ||
Enable wps connect... | ||
wpc connect enabled for 113s... | ||
``` | ||
## Library | ||
|
||
### Library | ||
|
||
#### Reconnect example | ||
```python | ||
import asyncio | ||
from speedport import Speedport | ||
|
||
async def reconnect(): | ||
async with Speedport("192.168.178.1") as speedport: | ||
await speedport.login("password123") | ||
await speedport.reconnect() | ||
|
||
asyncio.run(reconnect()) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters