feat: add browser-based sender and receiver (qrl_web) - #2
Open
minimike86 wants to merge 21 commits into
Open
minimike86 wants to merge 21 commits into
minimike86 wants to merge 21 commits into
Conversation
…ce chunk map display in receiver
- Updated sender.html to improve user instructions for missing chunk input. - Moved JavaScript code from sender.html to sender.js for better organization. - Introduced receiver.js to handle incoming data and manage camera interactions. - Implemented chunk parsing logic to support numbers, ranges, and comparisons for replaying missing chunks. - Added functionality to calculate estimated time of arrival (ETA) for data transfer. - Enhanced UI feedback for transfer status and chunk reception.
…unt in transfer logic
…section during transfer and replay; enhance layout and styling for improved user experience.
…ceiver; adjust layout positioning in sender
…anifest chunks; adjust cycle count display for fountain mode
…client - Deleted test files for parallel encoder, QR density, QR generation, QR reader, round trip, UI functionality, and UI theme. - Introduced a new `ui_theme.py` module in the QRL client to manage shared visual themes, including color palettes, font configurations, and ttk style settings.
… messages for chunk recovery
…code transmission
… for better clarity
…rop region functionality
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
qrl_web/— a zero-install, browser-only implementation of the QRLsender and receiver that can be hosted on GitHub Pages or served locally.
README.mdwith the web use case, GitHub Pages URLs, and a localserve command.
What's in qrl_web/
index.htmlsender.htmlreceiver.htmlHow it works
Uses the same 9-byte wire format as the Python server
(
[stream_id | seq(4 BE) | total(4 BE) | payload]) and the same manifestQR (stream_id 255) so the protocol is compatible.
qrcode@1.5.1in byte modejsQR@1.4.0withinversionAttempts: 'attemptBoth'.zipvia JSZip (download and unzip on arrival)Notes
getUserMedia) requires HTTPS or localhost — GitHub Pagessatisfies this automatically.
3 FPS). Larger files work but take more cycles.
Test plan
sender.html, select a small text file, verify QR codes cyclereceiver.html, point camera at sender, verify file downloadssender.html, select a folder, verify.zipdownloads correctly