Commit 515dca54 authored by Administrator's avatar Administrator
Browse files

including qrcodes

parent 6064199d
#!/bin/bash
street='Boltzmannstr.3'
city='Garching'
query='https://nominatim.openstreetmap.org/search?street='"$street"'&city='"$city"'&format=json'
geolocation=$(curl -s "$query" | jq '.[0].lat ,.[0].lon')
longitude=$(echo "$geolocation" | sed -n 2p| tr -d '"')
latitude=$(echo "$geolocation" | sed -n 1p| tr -d '"')
#foto=$(base64 test.jpg)
location="geo:$latitude,$longitude"
vcardbusiness='MECARD:N:Dr. Michael Petter;TEL:+49-89-28918150;EMAIL:petter@in.tum.de;ORG:TU München;URL:http://www.in.tum.de/i02/personen/michael-petter;ADR:TUM Informatik Lst 2, Boltzmannstr. 3,85748 Garching;NOTE:keine Notizen;;'
vcardbusiness2="MECARD:N:Dr. Michael Petter;TEL:+49-89-28918150;PHOTO;TYPE=JPEG;VALUE=URL:http://www2.in.tum.de/~petter/portrait.jpg;EMAIL:petter@in.tum.de;ORG:TU München;URL:http://www.in.tum.de/i02/personen/michael-petter;ADR:TUM Informatik Lst 2, Boltzmannstr. 3,85748 Garching;NOTE:keine Notizen;;"
url="http://www.in.tum.de/i02"
paypal="https://www.paypal.me/MichaelPetter"
sonnenblume="WIFI:T:WPA;S:sonnenblume;P:passwort;;"
tweedback="https://tweedback.de/ednf"
what="$tweedback"
echo Performing qrcode generations
qrencode -o qrcode.png -t PNG "$what"
qrencode -o qrcode.eps -t EPS "$what"
qrencode -o qrcode.svg -t SVG "$what"
qrencode -o - -t UTF8 "$what"
qrencode --size=10 -o qrcode2.png --level=H "$what"
echo preparing logos
cp logo.png copy.png
mogrify -colorspace RGB -layers merge -background white copy.png
mogrify -resize 100x100 copy.png
mogrify -border 10x10 -bordercolor white copy.png
composite -colorspace RGB -gravity center -background white copy.png qrcode2.png qrcode-withlogo.png
convert qrcode-withlogo.png -gravity North -fill chocolate1 -pointsize 30 -annotate 0 "$what" qrcode-withlogo.png
#cp qrcode2.png qrcode-withlogo.png
rm copy.png qrcode2.png
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment