Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Show QR Codes generated in /tmp #27

Open
duracell80 opened this issue Jul 6, 2022 · 0 comments
Open

Enhancement: Show QR Codes generated in /tmp #27

duracell80 opened this issue Jul 6, 2022 · 0 comments

Comments

@duracell80
Copy link

duracell80 commented Jul 6, 2022

It would be great to add a python generated QR Code just big enough to be readable in the main body of the message.

$ sudo pip3 install pyqrcode
$ sudo pip3 install pypng
import pyqrcode
import png
from pyqrcode import QRCode

url = "http://www.example.com"
qrl = pyqrcode.create(url)
irl = "/tmp/qr_" + url.replace("://", "-") + ".png"

qrl.png(irl, scale =8, module_color=[0, 0, 0, 255], background=[0xff, 0xff, 0xff])

https://www.geeksforgeeks.org/python-generate-qr-code-using-pyqrcode-module/
https://github.com/phuhl/notify-send.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant