QR Code Scan from mobile Device to PC

36 views
Skip to first unread message

Sebastian Jung

unread,
Oct 27, 2022, 2:59:26 AM10/27/22
to django-oscar
Hello,

on a PC is Django Oscar in a Browser open with catalogue listview. Now i want to implement that i have on a mobile android device i have a QR Code Scanner how can send code to PC and in this QR Code is a article number and on PC this article number is automatical enter as keystrokes and then django oscar automatical recognize this article number and open detail view of this article.

Have anyone a idea how i can insert a javascript code that waiting for keystrokes? Have anyone experience with Android QR Code Scanner how sends content of QR Code as keystrokes to a pc and process it?

Have another developer interest to help me to implement this in django oscar?

Regards
Message has been deleted

Mateusz Kalinowski

unread,
Nov 4, 2022, 8:32:34 AM11/4/22
to django-oscar
Hello!

You can generate qr code in django with order id as data, qrcode module (documentation here: https://pypi.org/project/qrcode/). You can find many Android qr code scanners, I saw some of them connecting through WiFi or Bluetooth with PC. I never tried one that sends keystrokes to PC, where exactly it sends the keystrokes to ? 

Standard way to wait for keystrokes in the browser is something like:

  document.addEventListener('keydown', event => {
    console.log(event.key);
  });

Sebastian Jung

unread,
Nov 4, 2022, 8:51:18 AM11/4/22
to django...@googlegroups.com
Hello,

I implement it self. This was really easy.

Thank you 

Mateusz Kalinowski <mateusz.ka...@gmail.com> schrieb am Fr., 4. Nov. 2022, 13:29:

Hello!

You can generate qr code in django with order id, qrcode module (documentation here: https://pypi.org/project/qrcode/). You can find many Android qr code scanners, I saw some of them connecting through WiFi or Bluetooth with PC. I never tried one sending keystrokes to PC, where exactly it sends the keystrokes to ? 


Standard way to wait for keystrokes in the browser is something like:

  document.addEventListener('keydown', event => {
    console.log(
event.key);
  });

On Thursday, 27 October 2022 at 08:59:26 UTC+2 sebasti...@gmail.com wrote:

--
https://github.com/django-oscar/django-oscar
http://django-oscar.readthedocs.org/en/latest/
---
You received this message because you are subscribed to the Google Groups "django-oscar" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-oscar...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/django-oscar/89fff790-8f9d-4416-b13a-178d6de1b288n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages