Hello to all,
I can run the qr command with putty but I can not run it in the node-red with exec node.Could you help me ?
There is a flow in the flow tab that says it generates a QR code from your ip. You might try looking at it and see if it works then compare it to what you are doing. Search for ‘qr’
Yes I compared with that example.Everything is same. I dont understand the reason. I used this example: https://flows.nodered.org/flow/f53bb131d112543169c66ddc05f33037
Also I installed all needed package. As you see terminal is generating qr code but when i write same command to exec node it doesnt work.
I’ll try to take a look in a bit. Right now I have a 6 day old o sleeping on my chest while my daughter gets some sleep
What hardware are you running on?
I am not a python expert but I think the error indicates that the library it is trying to reference is not built correctly to be compatible with your python install. Have you installed the right versions of packages?
When you run it in the command line is it using the same python that it is in the exec node? You might be better to include python
in the command line.
Are you running anything using Docker?
hello colin,
I am using siemens iot2050 with debian 10. I checked version of package. All of them are true. I am not sure about terminal running which version. When i write pyhton or python 3 with qr system return "python3: can't open file 'qr': [Errno 2] No such file or directory" message. So i can not add python header and I am not running anything with docker.
I'm not sure where you can get that qr package from.
I have previously used the debian qrencode
package with no problem.
thank you dceejay,
I used same library and it is succesfull. So is there a way adding logo to this QR code in node-red ?
that is a qrencode question... or another qr code generator.
You can add -l H
to make it have more error correction...
You may then be able to use the node-rec-contrib-image-tools nodes to overlay an icon - but I have not idea if really possible - you would need to experiment.
Or you may get some ideas from this https://dev.iachieved.it/iachievedit/customized-qr-codes-with-logos/ (use sudo apt install imagemagick instead of brew)
Yes, that is doable...
[{"id":"dd9f8e58.79d1","type":"jimp-image","z":"3455541a.95deec","name":"","data":"payload","dataType":"msg","ret":"img","parameter1":"","parameter1Type":"msg","parameter2":"","parameter2Type":"msg","parameter3":"","parameter3Type":"msg","parameter4":"","parameter4Type":"msg","parameter5":"","parameter5Type":"msg","parameter6":"","parameter6Type":"msg","parameter7":"","parameter7Type":"msg","parameter8":"","parameter8Type":"msg","sendProperty":"payload","sendPropertyType":"msg","parameterCount":0,"jimpFunction":"none","selectedJimpFunction":{"name":"none","fn":"none","description":"Just loads the image.","parameters":[]},"x":430,"y":260,"wires":[["b6b7d499.f7b758"]]},{"id":"754f4a75.acb974","type":"inject","z":"3455541a.95deec","name":"Barcode b64","topic":"","payload":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPYAAAD2CAIAAABqcO2fAAAABmJLR0QA/wD/AP+gvaeTAAAGJElEQVR4nO3d0W0rOQwFUGfxWnIZKSlfLs9FZQtQsCsIpKTcd863PTNJLoQMIZEf39/fD8j1z+kHgF4iTjgRJ5yIE07ECSfihBNxwok44USccCJOOBEn3J+ZD318fHQ/x3+Y2UUzPuH4raqfoup5Zr7V9zwz19n5W10z87NbxQkn4oQTccKJOOFEnHBTFZXR19fX8/msfZTH4/F+v1+v1/9+bK1eUXW+aebuVfc6WxdaczYbo8WIP5/Pz8/Pte+S7bZs+EeFcCJOOBEnnIgTbvF1c9S3v2LN/ZWHmSdcqx2N1vaf9NWgZlTd3SpOOBEnnIgTTsQJJ+KEK6uo3GathjBaq3vMPM+aqpM4f09HYqs44USccCJOOBEnnIgT7ldWVPpqCH3X2dkjpeqsUNUOmbOs4oQTccKJOOFEnHAiTriyisr979pV9YGzXV6resic7Qazk1WccCJOOBEnnIgTbvF18/1+1z5H62XZ6bZsfPTNoKlSVZ3wmT2f2cmsHxBx0ok44USccCJOuKmKym2qOqKcPQc042xf3N+YjZFVnHAiTjgRJ5yIE07ECTe1DWtnP42+e1V1Xzk7RaivLrR299Ft9SWrOOFEnHAiTjgRJ5yIE25xj0pfL5Gqu8+4/wlHO2cY9Z0D2jmfyCpOOBEnnIgTTsQJJ+KEW+yjcvY9+v69JX07be6v+YzO7lqxihNOxAkn4oQTccKJOOGmTv2svbOf3U0x47b9OVXzd3bOA+qrto3Wqi5WccKJOOFEnHAiTjgRJ9xiH5Uqfe/at+0J6dsz03edvk4vO3fIWMUJJ+KEE3HCiTjhRJxwi3tUbpvhO+r71tl5wTOqfs9re2Z29pCZYRUnnIgTTsQJJ+KEE3HClU1Pvq0f6ehsB5KdvUTur/mM+rJhFSeciBNOxAkn4oQTccJN7VFZs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FEnHAiTjgRJ5yIE26qogK/l1WccCJOOBEnnIgTTsQJJ+KEE3HCiTjhRJxwIk44ESfcvwXt4+7FUytdAAAAAElFTkSuQmCC","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":270,"y":260,"wires":[["dd9f8e58.79d1"]]},{"id":"2fb3081f.3a2b68","type":"jimp-image","z":"3455541a.95deec","name":"icon + resize","data":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAmCAMAAACBKikvAAAABGdBTUEAALGPC/xhBQAAAwBQTFRFAAAAHICYHYGZIIKaIYKbIoSbI4ScJIScJYWdJoadJ4aeKIadKIaeKYefKoieKoifK4igLImgLYmhLoqgL4qhMIuhMIuiMYyiMoyjM46jNo6jNo6kN4+lOI+lOJCkOJClOZCmOpGnPJGnPZKoQpWpQpWqQ5aqRJaqRZerR5irR5isSJisSZitSpquTJquTZuvUJ6wU56xVqCzWKGzWKG0WaK0WqK1XKO1X6a3Y6e4Zai6Z6q6aKq7a6y8bq2+bq69b66+cK++ca+/c7HAdLHAdbLAdrLBeLTCerTDfLbDfbbEfrbFgLfFgLjGg7nHg7rHhLrHhrvIiLzJib3KjL7Ljr/Mj8DNkcHNksLOlMPOlMPPlsTPl8XQmcbRnMfSnsnToMrUpMvWpMzWps3Xps7Xp87YqM7YrtLbstPbstPcstTdtNXdt9beutjfutjgvtvhw93jxt/lyODmyeHny+LozuTp1efr2uru2+vv3Ovv3ezv3uzw3+3x4O7x4+/y4+/z5fDz5vH05/L06fP17PT27vb38/j58/n69fn69vr7+Pv8+fz8+vz9/P39/P3+/f7+////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAqlDKYAAAAQB0Uk5T////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AFP3ByUAAAAJcEhZcwAADsEAAA7BAbiRa+0AAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAn1JREFUOE+d1PlT00AUB3DF0BxufInSphq0VTxqsUWrrQooilWw9QIqoijeVcFb643igViLNP9x3H27ISGdcRi/PzW7n9l9u2+na9xV5n/h8PF00jKjnbv7T4oRL0H4MLOVEADDAABd25y6IMYxAdgngRmM0b5HzLAsw2vblZWOhphDYtaHI0DEbDBAcmLeg6O6Iea8GHxAK3Ag4ASEnE4si2ApWj8KAe3QviR5sXr/ks0kQAUJwrzK572AfavuOPWnEtuHxJfhVOheTDJIneM0exX2peCBGMyGHGgV5hxnsp19GpIHt+G0F5Ct0msOz8k4op7mcEicBHS6MkTM0ouf3C1s4VvBPg4HEEI8cyjVYSTGvi023l4+9mpurrbfu4sUh2m8hV0zDWfhzvgXp167bkvy+p4MaJyZZnQKYZLByBO2WbPp1EpplZVA3xFXNDCCMM7GN/7BsubP2npr0wl9GxRaFOpxdM67rEnCXafwDELWKZA/cPljPGeG+kSXOY9wJytGOzpLS6w9+7308W5+LYFIW1vEL/IqwgGd/Ybu0WoxETtQayx+n06ZY29qlZgnrUcIi3wrXZZUwyRSYeaz82u+Sct47h28m9/jFf4lYqhQuPeVF9zHlyBHOHS7/GJYQI3e5HBSwoF11CAcxtcUCCkvISzjoyBdHnSjeBw/sPclq/F9B9sKVEY4vMGaFoyWfzD7aTqHO6knfOiWWja3s5lO7CU5jEJAtxhuMP1bwVYS+zEXArqDSmuLabREVQAPumUldCIaUHrFbAC6E5vCRwKZnwPjQ1roDv+1GvRZpsU4Jgjp1R9MbiCKLKsk1nPqthjkWQn/kVVC1/0L8pqmO/ekVn4AAAAASUVORK5CYII=","dataType":"str","ret":"img","parameter1":"75","parameter1Type":"num","parameter2":"","parameter2Type":"auto","parameter3":"RESIZE_NEAREST_NEIGHBOR","parameter3Type":"resizeMode","parameter4":"","parameter4Type":"msg","parameter5":"","parameter5Type":"msg","parameter6":"","parameter6Type":"msg","parameter7":"","parameter7Type":"msg","parameter8":"","parameter8Type":"msg","sendProperty":"payload2","sendPropertyType":"msg","parameterCount":3,"jimpFunction":"resize","selectedJimpFunction":{"name":"resize","fn":"resize","description":"resize the image. One of the w or h parameters can be set to automatic (\"Jimp.AUTO\" or -1).","parameters":[{"name":"w","type":"num|auto","required":true,"hint":"the width to resize the image to (or \"Jimp.AUTO\" or -1)"},{"name":"h","type":"num|auto","required":true,"hint":"the height to resize the image to (or \"Jimp.AUTO\" or -1)"},{"name":"mode","type":"resizeMode","required":false,"hint":"a scaling method (e.g. Jimp.RESIZE_BEZIER)"}]},"x":650,"y":260,"wires":[["81e25172.24409"]]},{"id":"b6b7d499.f7b758","type":"image viewer","z":"3455541a.95deec","name":"","width":160,"data":"payload","dataType":"msg","x":430,"y":340,"wires":[["2fb3081f.3a2b68"]]},{"id":"81e25172.24409","type":"jimp-image","z":"3455541a.95deec","name":"","data":"payload","dataType":"msg","ret":"img","parameter1":"payload2","parameter1Type":"msg","parameter2":"85","parameter2Type":"num","parameter3":"85","parameter3Type":"num","parameter4":"0","parameter4Type":"num","parameter5":"0","parameter5Type":"num","parameter6":"75","parameter6Type":"num","parameter7":"72","parameter7Type":"num","parameter8":"","parameter8Type":"msg","sendProperty":"payload","sendPropertyType":"msg","parameterCount":7,"jimpFunction":"blit","selectedJimpFunction":{"name":"blit","fn":"blit","description":"blit the image with another Jimp image at x, y, optionally cropped","parameters":[{"name":"src","type":"","required":true,"hint":"the source image (a Jimp instance)","defaultType":"msg","defaultValue":"payload"},{"name":"x","type":"num","required":true,"hint":"the x position to blit the image"},{"name":"y","type":"num","required":true,"hint":"the y position to blit the image"},{"name":"srcx","type":"num","required":false,"hint":"the x position from which to crop the source image"},{"name":"srcy","type":"num","required":false,"hint":"the y position from which to crop the source image"},{"name":"srcw","type":"num","required":false,"hint":"the width to which to crop the source image"},{"name":"srch","type":"num","required":false,"hint":"the height to which to crop the source image"}]},"x":650,"y":300,"wires":[["59082dec.a8c424"]]},{"id":"59082dec.a8c424","type":"image viewer","z":"3455541a.95deec","name":"","width":160,"data":"payload","dataType":"msg","x":650,"y":340,"wires":[[]]}]
On a side note - I am adding barcode generation to image-tools (its working but needs some work on the UI on how to present the thousands of options for the many barcode types it supports)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.