here an extension to decode the COVID-19 EU QR Certificate, also called QR Green Pass. It's a demo, have a Toast. I have published this extension on my website in Spanish and I adapt it to this Community.
0.- About EU QR Certificate. Green Pass.
In some European countries, those vaccinated against COVID-19 (also those who have been recovered and those who have undergone a test) are given a QR code called the EU QR Certificate or QR Green Pass.
In this QR code you will find data such as the user's name, their date of birth, when they were vaccinated, when the code expires, type of vaccine...
The main block is TextQRGPToJson, the result of a QR scan, through the BarcodeScanner component, is inserted and the Json of the QR is obtained.
QRGPToJson block is similar to the previous one, but in this case a QR image located in the Image component is inserted.
QRToText, we put a QR of any type, it does not have to be Green Pass, and we obtain its text.
TextToBarCode, we insert a text and an Image component, we obtain the Bar Code 128 of that text.
TextToQR, we insert a text and an Image component, we obtain the QR of that text.
ImageToFile, converts an image located in an Image component to a file. Set the full path where we want to get that file, for example /storage/emulated/0/.../my_file.png
{-260: {1: {'dob': '1998-02-26', date of birth
'nam': {'fn': 'Musterfrau-Gößinger', family name
'fnt': 'MUSTERFRAU<GOESSINGER',
'gn': 'Gabriele', given name
'gnt': 'GABRIELE'},
'v': [{'ci': 'URN:UVCI:01:AT:10807843F94AEE0EE5093FBC254BD813#B', certificate ID
'co': 'AT', country of vaccination
'dn': 1, doses received
'dt': '2021-02-18', date of vaccination
'is': 'Ministry of Health, Austria', cert issuer
'ma': 'ORG-100030215', vaccine manufacturer
'mp': 'EU/1/20/1528', vaccine product id
'sd': 2, total number of doses
'tg': '840539006', targeted disease (COVID-19)
'vp': '1119349007'}], vaccine or prophylaxis
'ver': '1.2.1'}}, schema version
1: 'AT', QR code issuer
4: 1624458597, QR code expiry
6: 1624285797} QR code generated
Instead of using the BarcodeScanner, we can use the Camera component.
We TakePicture, place it in an Image1.Picture and by means of the QRGPToJson block we decode it to JSON.
when a scan is been confermed then you post to alert your website . Why did you do that ???? can you please remove it pls we will appriciate ia so much and ou will help up pls
i cannot do that action i put the following json code to encode it doesnt
exple what i use on the text to qr block and it is not working {-260: {1: {'dob': '1998-02-26', date of birth
'nam': {'fn': 'Musterfrau-Gößinger', family name
'fnt': 'MUSTERFRAU<GOESSINGER',
'gn': 'Gabriele', given name
'gnt': 'GABRIELE'},
'v': [{'ci': 'URN:UVCI:01:AT:10807843F94AEE0EE5093FBC254BD813#B', certificate ID
'co': 'AT', country of vaccination
'dn': 1, doses received
'dt': '2021-02-18', date of vaccination
'is': 'Ministry of Health, Austria', cert issuer
'ma': 'ORG-100030215', vaccine manufacturer
'mp': 'EU/1/20/1528', vaccine product id
'sd': 2, total number of doses
'tg': '840539006', targeted disease (COVID-19)
'vp': '1119349007'}], vaccine or prophylaxis
'ver': '1.2.1'}}, schema version
1: 'AT', QR code issuer
4: 1624458597, QR code expiry
6: 1624285797}