From your last post, it seem like your board works fine with no tearing. Somehow the tearing only happens with the QrCode which is unfortunate but indicates that it could be an issue with the QrCode generation rather than tearing.
Does the tearing happens with scaling of 1?
To make the QrCode works even with the tearing you could try to increase the correction level (from what I know there is 4 levels of correction [this is different from the version number, the version number defines the number of dots]).
Finally, 2 QrCode displaying the same data could look different just because their version is not the same.
Here is mine running on TouchGFX simulator with quartile (3rd highest) level of correction (also works on board):
At the moment I dont think its a big problem because Qrcode is technology has bits corrections so a little noise on the picture should not be a problem. (you imaging if a qrcode printed on a metalized label could be a little bit scratched. Your App always read it without "any" problem). The real problem is that Qrcode has a lot of missing dots.
Traceback (most recent call last):File "D:\Python\qrcodesau.py", line 1, in import qrcodeFile "D:\Python\qrcode.py", line 3, in im=qrcode.make(url)^^^^^^^^^^^AttributeError: partially initialized module 'qrcode' has no attribute 'make' (most likely due to a circular import)
The main qr_code() function returns an object of the qr_code class. This is a logical matrix with specific methods for printing and plotting. The print version uses UTF-8 drawing symbols and the result depend on the font used. For a better quality QR code it best to use plot() or generate_svg().
The legacy function qrcode_gen() had several known bugs. Because of these bugs, we re-implemented the code from scratch in version 0.1.4. We created new functions. The old functions are defunct since version 0.2.0. We removed them in version 0.2.2.
Even after you remove the trailing ^^J, it won't work quite the way you wanted, as others have noted. After some experimenting, I found that removing all regular newlines and adding \? (which is qrcode's marker for "newline") does the trick:
I have a string item and I would like to create a qrcode from that string and display the qrcode in a page in main ui.
Is there an easy way doing this completely in the UI (without using a seperate tool)?
UI is able to do it for binding settings: Binding development question : storage, QR code. We probably miss a wrapper for vue-qrcode used by above mapping, but it should be rather easy to bring as a custom widget or wrapper which will call vue-qrcode with provided value coming out of item state.
Yes, I need the qrcode for the guest wifi sharing. I use openhab to automaticaly recreate the guest wifi password in regular intervals.
I was using HabPanel with a qrcode js library to create and display the qrcode, but as I moved to MainUI a few month ago I was looking for an easy way to add the qrcode.
GuestWifi_QR_Code_Codering is a string item and contains the string representation of the QR code (I get it from the Unifi binding).
GuestQRCode is an image item which I put in a sitemap.
I trigger the rule on a change of GuestWifi_QR_Code_Codering, which in itself gets updated when a new QR code needs to be generated by another rule.
I still cannot understand why the generated qrcode is not displayed on the iPhone screen, although everything works fine on the page in the browser chrome of my computer. On the iPhone screen, in the application, I see only an animated waiting icon.
I just added an extra tab with QRCode to my business card in the hopes that it will work. I take the data (URL) from the Glide table, and I just added another tab with exactly the same code, but I take the data (URL) from the Google Sheets table - the result is the same: everything works on the computer screen, a rotating icon on the iPhone screen expectations.
In smartforms, I created four STRING variables and put an ABAP code to fill them with the STRING from the qrcode(This size handling exists because smartforms only accepts the maximum size 255 in a variable)
Since iOS 14.2 we have a problem with the in camera QR code scanner. The square shows up but the pop up with the link does not. Also the scanner is not available in settings>control centre so we cannot add it to the control centre as an icon.
I think both problems are related and I am pretty sure it has something to do with our Jamf School environment as I have no problems with my personal (Identical type) iPad. Unfortunately I can't find anything in the restricions and there does not seem to be an QR code build in application which needs to be added to the whitelist. Nonethless it seems blocked somehow.
Same problem here - Frederic, did you find any solutions yet? The cameras on our iPads recognize the QR code (they show the border/frame around the image) but no action is taken to offer opening up Safari. I don't see anything in the profile restriction settings in Jamf.
i have some iPads (5th gen) with iOS 14.2, on those i don't have this issue. i can add (control center) and access the qr scanner and get the scanner in the camera app directly with link direct. I know there are some issues related only to newer iPad generations.
@FCervini The only management setting that concerns the camera is whether to allow its use or not. Similarly the only management change(not setting) for control centre that affects it's state is if the device is in Shared iPad Mode. Aside from those two no other mdm configurations limit your use of the QR code scanner. I've tested it in our environment on iPads from 7th gen on down to Air 2's.
Same problem here. The cameras on our iPads recognize the QR code (they show the border/frame around the image) but no action is taken to offer opening up Safari. I don't see anything in the profile restriction settings in Jamf.
@user-WardPoppe Have you been through your restrictions completely? Perhaps disable the profile(if one exists) on one device in the Managed Profiles tab and see if the functionality returns. I did a cursory look through and the only other one I can maybe see indirectly affecting this is if allow screen captures is disabled.
Thanks for all the comments. I appreciate all the help I can get.
Just to give some more info: We manage 67 iPads over 3 different school sites. We have a mix of iPad mini 4th/5th gen and iPad 6th gen. The restrictions for all the iPads are the same and they all are applied trough the same profile. iPads are shared. There are no specific users set.
The restrictions profile allows:
- Use of the camera
- screen captures
- Safari
What I have noticed so far:
- iOS devices prior to version 14 do not have the problem.
- In version 13.4.x or earlier, some iPads have the QR scanner control in the control centre list, others do not.. I can't find a reason yet why some of them have the option and others do not. (EDIT: This is due the Safelist Profile. See beneath)
- When I upgrade to version 14.4 the QR scanner dissapears from the control centre list (If it was visible in the first place) with one exception so far. One iPad mini 5th gen kept the control and after the update the QR code scanner still works. I am not sure what is different as they all share the same restrictions and DEP profile. I need to investigate this one more.
- Turning the QR-code scanner off and back on in the camera settings does not remedy the problem.
- Rebooting the iPad does not remedy the problem.
- Turning the QR scnanner off in the camera settings, then a reboot and turning it back on does not remedy the problem.
- I haven't tried a full reset yet. Probably need to try it if I can't find any other solution. (EDIT: Reset All Settings did not work).
Status update:
I think I am getting closer in solving this issue. The QR-code scanner is affected when using "Safelist and Blocklist" in a profile. As soon as I apply a Safelist profile, the QR-code scanner dissapears in the conctrol centre. The Safelist does not feature a QR-code scanner option so there is no way to turn it on.
Safelists are the bread and butter of managing apps which I use extensively. I really hope there is an option to keep the QR-code scanner active with Safelists. Does anyone have a suggestion to bypass this or do we need to ask Jamf to fix this for us?
EDIT: Never mind on that. Doesn't appear as though you can input bundle id's in the GUI. Time for a feature request to either add that support or for them to add that to the built in applications list even though it's not technically an app in itself. Speaking of which, have you safe-listed the camera app?
@FCervini See my edit below that. I went into my instance of School and didn't see a bundle id input anywhere. Your only options are to try a profile on a test iPad that was created in Profile Creator. The better, less tinkering type of solution, if you can call it a solution, is to submit feedback or a support request to get the OR code scanner added to the built in apps list.
EDIT: Still noticing some other odd behavior: I have iPads where the link pop up doesn't appear in the photo app (scan QR-codes is activated in the settings) even if the scanner is available in control centre (and works there). I have to figure out what the difference is.
Gotta love MSP's in this context. Great if you're a greenhorn, but I'm definitely not one yet I've been forced into MSP contracts(Thanks Ohio ITC laws!) and had to groan, moan and complain to get delegated admin to dashboards.
Update: I had contact with the developpers. There is no solution whitin Jamf School.
Since the QR code scanner is not really an app, Jamf can't activate it in the Safelists.
A third party scanner is the only option when using Safelists.
Added just the profile alone does not work, the device also requires a restart
Steps:
Add com.apple.barcodesupport.qrcode to your allowed apps in restrictions profile.
Needs a reboot to take effect.