This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

qr code generator
#2
It's easier to use an API. I just tested with the script below and it works. Check the website for the API options. Source: http://goqr.me/api/

Add the script below to your controller and fill the data with your ASCII string.
Next step is to add an image object to your visualization with the remote url: /scada/resources/img/qr-code.png and a refresh interval of 10 seconds for example.
Now each time you run the script an png image with the qr code will be added to the folder /scada/resources/img and dueto the refresh it will be visible within 10 seconds.


SCRIPT:
--Source: http://goqr.me/api/

require('ssl.https')

data = 'https://knxgroothandel.nl' --QR code data
qr = ssl.https.request('https://api.qrserver.com/v1/create-qr-code/?size=250x250&data=' .. data)

io.writefile("/www/scada/resources/img/qr-code.png", qr)
Reply


Messages In This Thread
qr code generator - by Auzzii - 27.12.2019, 23:10
RE: qr code generator - by Joep - 28.12.2019, 08:34
RE: qr code generator - by admin - 28.12.2019, 08:37
RE: qr code generator - by Auzzii - 30.12.2019, 15:38
RE: qr code generator - by Auzzii - 30.12.2019, 15:52

Forum Jump: