Benutzer-Werkzeuge

Webseiten-Werkzeuge


qrencode

qrencode

URL

qrencode -o signal.png -s 2 'https://signal.org/de'

EPC-QR-Code für Banküberweisung

https://de.wikipedia.org/wiki/EPC-QR-Code

BCD
001
1
SCT
RZSTAT2G187
Alpenverein, Sektion Anger
AT503818700005004197
EUR5.00


Spende fuer Sektion Anger
cat epc.txt | qrencode -o epc.png

WLAN QR-Code

wlan.sh
#!/bin/bash
qrencode -t EPS -o wlan.eps "WIFI:S:SSID;T:WPA2;P:password;;"
WLAN

qrencode -o wifi.png "WIFI:S:my-ssid;T:[WEP|WPA|WPA2];P:PASSWORD;H:[true|false];"
qrencode -t png -o wifi.png 'WIFI:S:SSID;T:WPA2;P:password;;'

H steht für hidden

Die Datei wlan.eps kann in Inkscape importiert und beliebig skaliert werden.

QR-Codes als SVG speichern

cat address.txt | qrencode -t SVG -o address.svg

100 Stellen von PI

sudo apt-get install qrencode

Einen QR-Code erstellt man mit:

qrencode -o meinqrcode.png "Hallo Welt!"
File: address.txt

BEGIN:VCARD
N:Marianne Mustermann
URL:http://www.marianne-mustermann.de
EMAIL:info@www.marianne-mustermann.de
TEL:+49-1234-567890
END:VCARD

To convert this into the code, use:

cat address.txt | qrencode -o address.png
For example, if we wanted a 10×10 pixels QR code, we’d have to type the following instead.

qrencode -o m_wikipedia_big.png –s 2 http://en.m.wikipedia.org
qrencode -o qr_mecard.png 'MECARD:N:Max Mustermann;TEL:+49-123-45678;EMAIL:muster@mann.de;URL:http://home.page.com;ADR:Adresse;BDAY:19701228;NICK:musti;NOTE:keine Notizen;;' 
Kalendereintrag:

BEGIN:VEVENT
SUMMARY:Test Meeting
LOCATION:Auf der grünen Wiese
DTSTART:20110215T190000
DTEND:20110215T200000
DESCRIPTION:Beschreibung des Termines
END:VEVENT

Hardware auslesen und QR-Code erstellen

qr.sh
#!/bin/bash
 
BIOS=$(dmidecode -t system | grep -e Name -e Number | awk -F': ' '{print $2}' | tr -d '"' | sed 's/$/, /g' | tr -d "\n")
CPU=$(cat /proc/cpuinfo | grep "model name" -m1 | awk -F": " '{print $2}' )
MEM=$(hwinfo --mem | grep "Memory Size" | awk -F': ' '{print $2}')
HDD=$(for n in $(hwinfo --ide | grep "Device File:" | awk -F': ' '{print $2}'); do echo "$(hwinfo --ide | grep $n -B 7 | grep Model| awk -F'"' '{print $2}') $(fdisk -l | grep $n -m1 | awk -F" " '{print $3" "$4}')"; done)
#HDD=$(hwinfo --ide | grep -e Model -e Capacity | awk -F': ' '{print $2}' | tr -d '"' | sed 's/$/\n, /g' | cut -d"(" -f1 | tr -d "\n" | sed 's/ , /, /g')
NETCARD=$(hwinfo --netcard | grep -e "Device File" -e Model -e "HW Address" | awk -F': ' '{print $2}' | tr -d '"' | sed 's/$/\n, /g' | cut -d"(" -f1 | tr -d "\n" | sed 's/ , /, /g')
GFXCARD=$(hwinfo --gfxcard | grep Model | awk -F'"' '{print $2}')
 
qrencode -o qr.png "$BIOS$CPU, $MEM RAM,$HDD $NETCARD$GFXCARD"
qrencode.txt · Zuletzt geändert: 2023/07/14 07:00 von admin