Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mdlayher/wifiqr
Package wifiqr implements support for generating WiFi QR codes. MIT Licensed.
https://github.com/mdlayher/wifiqr
Last synced: 16 days ago
JSON representation
Package wifiqr implements support for generating WiFi QR codes. MIT Licensed.
- Host: GitHub
- URL: https://github.com/mdlayher/wifiqr
- Owner: mdlayher
- License: mit
- Created: 2023-07-22T01:20:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-01T04:00:33.000Z (about 1 month ago)
- Last Synced: 2024-10-14T17:53:11.446Z (30 days ago)
- Language: Go
- Size: 28.3 KB
- Stars: 12
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# wifiqr [![Test Status](https://github.com/mdlayher/wifiqr/workflows/Test/badge.svg)](https://github.com/mdlayher/wifiqr/actions) [![Go Reference](https://pkg.go.dev/badge/github.com/mdlayher/wifiqr.svg)](https://pkg.go.dev/github.com/mdlayher/wifiqr) [![Go Report Card](https://goreportcard.com/badge/github.com/mdlayher/wifiqr)](https://goreportcard.com/report/github.com/mdlayher/wifiqr)
Package `wifiqr` implements support for generating WiFi QR codes. MIT Licensed.
## Example
Generate a QR code image and redirect stdout to create a PNG file.
```
$ go run cmd/wifiqr/main.go > example.png
```This produces:
![example](https://github.com/mdlayher/wifiqr/assets/1926905/6f46e6d1-a147-4d1a-8afb-0bd1e38034a7)
Alternatively, if stdout is a terminal (and not redirected) you can display the
QR code directly.```
$ go run ./cmd/wifiqr/main.go
SSID: "Example", password: "thisisanexample"█████████████████████████████████████
█████████████████████████████████████
████ ▄▄▄▄▄ ██ ▀ ▀▀▄ ▄▀▄█ █ ▄▄▄▄▄ ████
████ █ █ █ ▄▀ █ ▄▀▄▄ ▄▄█ █ █ ████
████ █▄▄▄█ █ █ ▀█▀▄▄▄▀▄ ▀█ █▄▄▄█ ████
████▄▄▄▄▄▄▄█ ▀▄█▄▀ █ ▀ ▀▄█▄▄▄▄▄▄▄████
████ ▀▄ ▄ ▄█▀▄█ ▄▄▀ ██▄███▄ ▄█▀████
████ ▄▄▄█▄▄▄▀▀ ▀▀██▄ ▄██ █▀▀ ▀▄█ ████
████ █▀ █▀▄▄▄ ▄ ▄▀█ ▄▄▀▄ ▄██ ████
████▀███▀▀▄▀▄▀▀▄▄ ▄█▀ ▀ ▄▀▀▄▀▀ ██████
████▀▀ ▀▄▀▄█▀ ████▄ ▄█▄█ ▄█▄▀▀▄▀▀████
████ █ ██▀▄▄▄▀ ▄▀█▀▄▀▄█▀▀▀▀ ▀█▄▀████
████▄██▄▄█▄█▀▄█ ▀▀▀ █▄▄█ ▄▄▄ ▀ ▄▄████
████ ▄▄▄▄▄ █▀█▄▀▄ ▄█ ▄▀▀ █▄█ ▄██████
████ █ █ █ ▄▀██▄ █▄▄ ▄ ▄██▀█████
████ █▄▄▄█ █▄▄█▄▀▀ ▄▀ ▀▄███▀█ ▀ ▀████
████▄▄▄▄▄▄▄█▄▄▄▄▄██▄█▄████▄█▄█▄▄█████
█████████████████████████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
```