π¦ ClawHub
QR Code Generator
by @ouyangabel
Generate QR codes for text, URLs, WiFi connections, and business cards (vCard). Use when: (1) creating QR codes for websites or text, (2) generating WiFi con...
TERMINAL
clawhub install qr-code-genπ About This Skill
name: qr-code description: "Generate QR codes for text, URLs, WiFi connections, and business cards (vCard). Use when: (1) creating QR codes for websites or text, (2) generating WiFi connection QR codes for easy network sharing, (3) creating digital business card QR codes, or (4) any QR code generation needs. Supports saving to custom file paths."
QR Code Generator
Generate QR codes locally for various use cases. No API calls required - everything is generated on your machine.
When to Use
Prerequisites
Install the required Python package:
pip3 install qrcode[pil]
or on Ubuntu/Debian:
sudo apt-get install python3-qrcode
Quick Start
Generate URL QR Code
python3 scripts/qr-code.py text "https://example.com"
Output: QR code saved to ~/qrcode_output.png
Generate WiFi QR Code
python3 scripts/qr-code.py wifi "MyNetwork" "myPassword"
Scan with phone to auto-connect
Generate Business Card
python3 scripts/qr-code.py vcard --name "John Doe" --phone "+1234567890" --email "john@example.com"
Commands
text [output_path]
Generate a QR code containing any text or URL.Parameters:
content: The text or URL to encodeoutput_path: Optional. Where to save the PNG file. Defaults to ~/qrcode_output.pngExamples:
# Basic URL
python3 scripts/qr-code.py text "https://github.com"Custom output location
python3 scripts/qr-code.py text "Hello World" ./hello_qr.pngLong URL (auto-fits to QR version)
python3 scripts/qr-code.py text "https://example.com/very/long/path?with=parameters"
wifi [output_path]
Generate a QR code that allows phones to connect to WiFi automatically.Parameters:
ssid: WiFi network namepassword: WiFi passwordoutput_path: Optional output pathSupported phones:
Example:
python3 scripts/qr-code.py wifi "HomeWiFi" "secretPass123" ~/wifi_qr.png
vcard --name [options] [output_path]
Generate a vCard (digital business card) QR code.Options:
--name, -n (required): Full name--phone, -p: Phone number--email, -e: Email address--org, -o: Organization/Company--title, -t: Job title--url, -u: Website URLoutput: Optional output pathExamples:
# Simple card
python3 scripts/qr-code.py vcard --name "εΌ δΈ"Full business card
python3 scripts/qr-code.py vcard \
--name "John Smith" \
--phone "+1-555-1234" \
--email "john@company.com" \
--org "Acme Corp" \
--title "Senior Developer" \
--url "https://johnsmith.dev" \
~/business_card.png
Tips
Troubleshooting
"Missing qrcode module" error:
pip3 install qrcode[pil]
Permission denied when saving:
Output
All generated QR codes are saved as PNG images. The output path will be displayed after successful generation.
β‘ When to Use
π‘ Examples
Generate URL QR Code
python3 scripts/qr-code.py text "https://example.com"
Output: QR code saved to ~/qrcode_output.png
Generate WiFi QR Code
python3 scripts/qr-code.py wifi "MyNetwork" "myPassword"
Scan with phone to auto-connect
Generate Business Card
python3 scripts/qr-code.py vcard --name "John Doe" --phone "+1234567890" --email "john@example.com"
βοΈ Configuration
Install the required Python package:
pip3 install qrcode[pil]
or on Ubuntu/Debian:
sudo apt-get install python3-qrcode