Skip to content

How to pair secondary device? #618

Closed Answered by shalak
shalak asked this question in Q&A
Discussion options

You must be logged in to vote

Found the answer in another chain.

Steps I took:

  • initiated the pairing process in the desktop app
  • saved the QR code to JPEG file
  • used simple python script to scan it:
import cv2 as cv
from pyzbar.pyzbar import decode
import argparse

# Set up argument parser
parser = argparse.ArgumentParser(description="Decode QR Code from an image file.")
parser.add_argument("path", type=str, help="Path to the QR code image file.")
args = parser.parse_args()

# Read the image
qrcode_img = args.path
img = cv.imread(qrcode_img)

if img is None:
    print(f"Error: Could not read image from path '{qrcode_img}'")
    exit(1)

# Decode the QR code
decoded_data = decode(img)

if not decoded_data:
    print("N…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by shalak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant