{"id":16439,"date":"2021-03-07T13:07:04","date_gmt":"2021-03-07T12:07:04","guid":{"rendered":"http:\/\/blog.wenzlaff.de\/?p=16439"},"modified":"2021-04-18T09:19:18","modified_gmt":"2021-04-18T07:19:18","slug":"bitcoin-adressen-und-text-in-qr-code-schnell-mit-nodered-erzeugen","status":"publish","type":"post","link":"http:\/\/blog.wenzlaff.de\/?p=16439","title":{"rendered":"Bitcoin Adressen und Text in QR-Code schnell mit NodeRed erzeugen"},"content":{"rendered":"<p>Heute gehts mal kurz um die QR-Code Erzeugung wie z.B. dieser:<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/03\/wenzlaff-address-qr-code.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/03\/wenzlaff-address-qr-code.png\" alt=\"\" width=\"132\" height=\"132\" class=\"aligncenter size-full wp-image-16437\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/03\/wenzlaff-address-qr-code.png 132w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/03\/wenzlaff-address-qr-code-100x100.png 100w\" sizes=\"auto, (max-width: 132px) 100vw, 132px\" \/><\/a><\/p>\n<p>Manchmal braucht man z.B. einen QR-Code f\u00fcr die Bitcoin-Adresse. Wie z.B. By my a coffee: <strong>bitcoin:bc1qj4grttyhk2h5wqask3nku70e3qtycssz5kvw5l<\/strong> wird dann so erzeugt, und geht auf mein echtes Konto \ud83d\ude09 &#8230;<!--more--><\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/03\/wenzlaff.de-2021-03-29-um-19.31.55.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/03\/wenzlaff.de-2021-03-29-um-19.31.55.png\" alt=\"\" width=\"906\" height=\"1020\" class=\"aligncenter size-full wp-image-16611\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/03\/wenzlaff.de-2021-03-29-um-19.31.55.png 906w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/03\/wenzlaff.de-2021-03-29-um-19.31.55-266x300.png 266w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/03\/wenzlaff.de-2021-03-29-um-19.31.55-768x865.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Oder auch anderen Text. Daf\u00fcr habe ich diese NodeRed Node in JavaScript geschrieben.<\/p>\n<p>Der QR-Code kann nun mit diesem NodeRed Flow einfach erzeugt werden. Es braucht nur der Dateiname und Pfad und optional ein Prefix angegeben werden. Das ist schon alles. Der Flow ist schnell installiert:<\/p>\n<p><strong>npm install node-red-contrib-cryptography-qr-code<\/strong><\/p>\n<p>Oder \u00fcber die Paletten-Installation von NodeRed. Hier der Beispiel Flow:<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/03\/wenzlaff.de-2021-03-07-um-09.50.25.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/03\/wenzlaff.de-2021-03-07-um-09.50.25-1024x220.png\" alt=\"\" width=\"525\" height=\"113\" class=\"aligncenter size-large wp-image-16438\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/03\/wenzlaff.de-2021-03-07-um-09.50.25-1024x220.png 1024w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/03\/wenzlaff.de-2021-03-07-um-09.50.25-300x65.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/03\/wenzlaff.de-2021-03-07-um-09.50.25-768x165.png 768w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/03\/wenzlaff.de-2021-03-07-um-09.50.25-1536x331.png 1536w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/03\/wenzlaff.de-2021-03-07-um-09.50.25.png 1542w\" sizes=\"auto, (max-width: 525px) 100vw, 525px\" \/><\/a><\/p>\n<p>Hier der Code, f\u00fcr den Import <\/p>\n<pre class=\"lang:default decode:true \" >[ { \"id\": \"15f97750.9f15d1\", \"type\": \"inject\", \"z\": \"fa6c893a.ae8d8\", \"name\": \"Start\", \"props\": [ { \"p\": \"payload\" }, { \"p\": \"topic\", \"vt\": \"str\" } ], \"repeat\": \"\", \"crontab\": \"\", \"once\": false, \"onceDelay\": 0.1, \"topic\": \"bc1qj4grttyhk2h5wqask3nku70e3qtycssz5kvw5l\", \"payload\": \"www.wenzlaff.de\", \"payloadType\": \"str\", \"x\": 230, \"y\": 220, \"wires\": [ [ \"c36f4049.b9248\" ] ] }, { \"id\": \"4d0b1987.f7a86\", \"type\": \"debug\", \"z\": \"fa6c893a.ae8d8\", \"name\": \"Ergebnis\", \"active\": true, \"tosidebar\": true, \"console\": false, \"tostatus\": false, \"complete\": \"payload\", \"targetType\": \"msg\", \"statusVal\": \"\", \"statusType\": \"auto\", \"x\": 780, \"y\": 220, \"wires\": [] }, { \"id\": \"ed289c05.b34a7\", \"type\": \"comment\", \"z\": \"fa6c893a.ae8d8\", \"name\": \"(c) 2021 Thomas Wenzlaff www.wenzlaff.info\", \"info\": \"Verwendeter Node: node-red-contrib-miio-roborock\", \"x\": 690, \"y\": 140, \"wires\": [] }, { \"id\": \"987d0461.3a3738\", \"type\": \"comment\", \"z\": \"fa6c893a.ae8d8\", \"name\": \"Create simple QR-Code\", \"info\": \"\", \"x\": 260, \"y\": 140, \"wires\": [] }, { \"id\": \"c36f4049.b9248\", \"type\": \"cryptoqrcode\", \"z\": \"fa6c893a.ae8d8\", \"name\": \"\", \"filename\": \"\/data\/wenzlaff-address-qr-code.png\", \"prefix\": \"\", \"x\": 470, \"y\": 220, \"wires\": [ [ \"4d0b1987.f7a86\" ] ] } ]<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>QR-Code erzeugung mit NodeRed<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[3,4606,852,3137,2520,79,1023],"tags":[428,4740,4739,4670,4812,3748,2516,2475,2824,555,4113],"class_list":["post-16439","post","type-post","status-publish","format-standard","hentry","category-allgemein","category-crypto","category-heimautomatisierung","category-javascript","category-node-red","category-programmierung","category-raspberry-pi","tag-barcode","tag-bitcoin-addresse","tag-bitcoin-adresse","tag-bitcoin-adresse-zu-qr-code","tag-buy-me-a-coffee","tag-erzeugen","tag-flow","tag-node","tag-nodered","tag-qr-code","tag-qrcode"],"_links":{"self":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/16439","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16439"}],"version-history":[{"count":0,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/16439\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16439"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16439"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}