-
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
A.Shpak
committed
Nov 15, 2022
1 parent
6e78b40
commit 99bd653
Showing
2 changed files
with
86 additions
and
85 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
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 |
---|---|---|
|
@@ -8,8 +8,6 @@ Generate WiFi Access QR Codes | |
pip install makeqr -U | ||
``` | ||
|
||
# Usage example | ||
|
||
## To test that installation was successful, try: | ||
|
||
```bash | ||
|
@@ -22,12 +20,14 @@ or | |
makeqr wifi --help | ||
``` | ||
|
||
# Usage example | ||
|
||
## Command line command | ||
|
||
### Command | ||
|
||
```bash | ||
makeqr -p wifi --ssid ABC --password Tfsjfklasdjfklasdest -s wpa2 | ||
makeqr -v wifi --password TopSecret --security wpa2 HomeWiFi | ||
``` | ||
|
||
### Output | ||
|
@@ -41,62 +41,57 @@ makeqr -p wifi --ssid ABC --password Tfsjfklasdjfklasdest -s wpa2 | |
| ||_|| || _ || _ || |___ | | | | | | | ||
|_| |_||__| |__||___| |_||_______||____||_||___| |_| | ||
DATA MODEL | ||
{"ssid": "ABC", "security": "wpa2", "password": "Tfsjfklasdjfklasdest", "hidden": false} | ||
QR STRING | ||
WIFI:S:ABC;P:Tfsjfklasdjfklasdest;T:WPA;; | ||
RESULT | ||
Model: {"ssid": "HomeWiFi", "security": "wpa2", "password": "TopSecret", "hidden": false} | ||
Encoded: WIFI:S:HomeWiFi;P:TopSecret;T:WPA;; | ||
██████████████ ████ ██████ ██████ ██████████████ | ||
██ ██ ██ ██████████ ██ ██ ██ | ||
██ ██████ ██ ██████ ██ ██ ████ ██ ██████ ██ | ||
██ ██████ ██ ██ ██ ██ ████ ██ ██ ██████ ██ | ||
██ ██████ ██ ██ ██ ██ ████████ ██ ██████ ██ | ||
██ ██ ██ ██████ ██ ████ ██ ██ ██ | ||
██████████████ ████ ██████ ██ ██ ██████████████ | ||
██ ██ ██████████████ ██ ██ ██ | ||
██ ██████ ██ ██ ██ ██████ ██ ██████ ██ | ||
██ ██████ ██ ██████ ██ ██ ██ ██ ██████ ██ | ||
██ ██████ ██ ██ ████ ████ ██ ██████ ██ | ||
██ ██ ██ ████ ██████████ ██ ██ | ||
██████████████ ██ ██ ██ ██ ██ ██ ██ ██████████████ | ||
██ ██████ ████ ██ | ||
██ ██████████ ██ ████████ ██████████ | ||
██ ██ ██ ██ ██ ████ ██████ ██ ██ ████ | ||
██ ██ ████████ ████ ██████ ████ ████ | ||
██████ ██ ██ ██ ██ ██ ██ ██████ ██ ████ | ||
██ ██ ████ ██ ██ ████ ██ ████████ | ||
██ ██ ██████ ██████ ████████ ████ ████ | ||
██ ████ ████ ██████ ██ ██ ████ ██ ██ ██ | ||
████ ████ ██ ██████ ██ ██ ██ | ||
██████ ██ ████████████ ██████ ██ ██ ██ ████ | ||
██ ████ ██ ████ ██████████████ ██ ██ | ||
██ ██ ████ ██ ████ ████ ██ ████ | ||
██ ██████ ██████ ██ ██████████ ██ ██ | ||
██ ████ ██████ ████ ██████ ██████████████ | ||
██ ██ ██ ██ ██ ██ ██ ██ | ||
██████████████ ██ ██████████ ██████ ██ ██ ██ | ||
██ ██ ████ ██ ██ ████ ████ ████ | ||
██ ██████ ██ ██ ██ ████ ██ ██████████ ████ | ||
██ ██████ ██ ██ ████ ██ ██ ██ ████ | ||
██ ██████ ██ ██ ██ ████ ████ ██ ████████ ██ | ||
██ ██ ██ ██ ██████ ████ ██ ██ | ||
██████████████ ██ ██ ██ ██ ██ ██ ██ | ||
████ ██████ ██████ | ||
██ ██ ██████████ ██ ██████ ██ ██████████ ██ | ||
██ ██ ██ ████ ██████ ████████ | ||
██████████████ ████ ██ ████ ████ ██ | ||
██ ██ ████ ██ ██ ████ ████ ██ ██ | ||
██████ ██ ██ ██████████ ████ ████ ██ | ||
██ ██ ████ ██ ██ ██ ██████ | ||
████████ ████ ████████████ ████ ██ ██ ██ | ||
██ ██ ██ ██ ████████ ████ ██ ██ | ||
██ ██ ██ ████ ██ ██ ██ ██ ██ | ||
██ ██ ██ ████████ ██ ██ ██████████ | ||
██ ████ ████ ██ ████████ ██ ████ ██ | ||
██████ ████████████ ████████ ██ ██ ██ | ||
████ ██ ██ ██ ██████ ██████ ██████████ ██ | ||
██████ ██ ████ ██ ████ ██ | ||
██████████████ ██ ██████ ████ ██ ██ ██ ██ | ||
██ ██ ██ ██ ████ ██ ████ | ||
██ ██████ ██ ██ ██ ████ ██ ████████████████ | ||
██ ██████ ██ ██ ██ ████ ██ ██ | ||
██ ██████ ██ ██ ████████ ████ | ||
██ ██ ████ ████ ██ ██ ████ ████ | ||
██████████████ ████████ ██████████ ████████ ██ ██ | ||
``` | ||
|
||
## Docker container | ||
|
||
```bash | ||
docker run ghcr.io/shpaker/makeqr:4.0.1 -p link https://t.me/shpaker | ||
|
||
docker run ghcr.io/shpaker/makeqr:4.0.1 link https://t.me/shpaker | ||
``` | ||
|
||
## As python module | ||
|
||
```python | ||
from makeqr import MakeQR, QRMailToModel | ||
|
||
model = QRMailToModel( | ||
to='[email protected]', | ||
subject='Awesome subject!', | ||
qr = MakeQR( | ||
model = QRMailToModel( | ||
to='[email protected]', | ||
subject='Awesome subject!', | ||
) | ||
) | ||
qr = MakeQR(model) | ||
data: bytes = qr.make_image_data() | ||
``` |