Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
121 commits
Select commit Hold shift + click to select a range
ed787b6
Fixed issues with PHP8
Feb 5, 2023
696d4b3
Updated css
Feb 9, 2023
4447dea
Removed min-width
Feb 9, 2023
c9fad69
Updated CSS
Feb 9, 2023
899a237
Environnement de base:
Sep 11, 2023
5fee14a
Création d'un serveur TCP à côté de Flask
Sep 12, 2023
22d3182
Réception de l'impression fonctionne, sans en faire une visualisation…
Sep 12, 2023
b5ad6c2
Notes et TODO pour la suite.
Sep 12, 2023
313e2ee
Rename main script and document printer specs
Sep 14, 2023
4aeea6f
Variables d'environnement et mode debug fonctionnels.
Sep 14, 2023
edb8f07
Add printer port config + documenting comments.
Sep 15, 2023
c66c650
The minimum viable service: show the latest received receipt.
Sep 15, 2023
7ac4124
MVP+: manipuler le HTML
Sep 15, 2023
27d61d1
Add a full web interface plus cleanup of the docker container.
Sep 15, 2023
ffe4517
Move the escpos-tools licence and readme, relicence the software unde…
Sep 15, 2023
bb60829
Added print port number to startup log.
Sep 15, 2023
e1e6b18
Add a dummy file to ensure that the receipts directory is in git.
Sep 15, 2023
df3c773
New basic README.
Sep 15, 2023
ccb6fe6
Update README.md
gilbertfl Sep 18, 2023
0ee6c4d
Update README.md
gilbertfl Sep 18, 2023
5006908
Update install and start instructions, plus known issues.
Sep 18, 2023
929e375
Remove the contributing file.
Sep 18, 2023
62f8858
Add time zone info in file name
Sep 18, 2023
89d740b
Add printer IP to printer info page.
Sep 18, 2023
e256608
Completed conversion to SocketServer instead of raw socket. Adds nic…
Sep 19, 2023
fe942a6
Change install and run commands
Sep 19, 2023
770b55a
Change install and run commands
Sep 19, 2023
40507c6
Merge branch 'moveToSocketServer' of https://github.com/gilbertfl/esc…
Sep 19, 2023
33ff7c9
Add known issues with printing to readme.
Sep 21, 2023
822dfe0
Add known issues with printing to readme.
Sep 21, 2023
3b4e166
Merge branch 'moveToSocketServer' of https://github.com/gilbertfl/esc…
Sep 21, 2023
f4747db
Update README.md
gilbertfl Sep 21, 2023
a2d505a
Timeout test
Sep 22, 2023
748f688
Merge branch 'master' of https://github.com/gilbertfl/escpos-tools
Sep 22, 2023
9ecae28
1.0beta version published
Sep 22, 2023
1cac3ea
Basic QR code parsing structure
Sep 25, 2023
e9c69bf
QR command parsing complete, begin implementing the printing.
Sep 29, 2023
d20daad
Add qrcode library to dockerfile.
Oct 10, 2023
f3a66db
First implementation of QR code printing with chillerlan/qrcode
Oct 27, 2023
7d52e16
Basic config cleanup
Oct 31, 2023
fa9297e
All QR code processing OK.
Oct 31, 2023
c550a53
Deal with QR print command before data sent.
Oct 31, 2023
247ba2c
Almost complete.
Oct 31, 2023
c08fcde
Almost complete.
Oct 31, 2023
2f08aae
Merge branch 'master' of https://github.com/gilbertfl/escpos-netprinter
Oct 31, 2023
d1a6903
QR code render works
Oct 31, 2023
b81774d
Update Known issues
Nov 13, 2023
be6f367
First steps integrating CUPS for
Nov 13, 2023
54e42fe
CUPS integration continues
Nov 17, 2023
3738227
More debugging power
Nov 20, 2023
174a561
First CUPS print!
Dec 1, 2023
35cf467
HTML file creation works, but cannot be deposited
Dec 1, 2023
e61dbfb
First working version with CUPS frontend
Dec 19, 2023
5ce356b
Auto-create and share the printer on container start.
Dec 19, 2023
e170091
Reactivate the Jetdirect Python service.
Dec 21, 2023
79b10dd
Reorder dockerfile for speed
Jan 8, 2024
457a023
Remove direct file access and replace with database of files with ID's
Jan 8, 2024
b6d7e4b
Readd debug for bug: QR interpreted as text
Jan 8, 2024
2c09115
Cleaning up the resulting container
Jan 8, 2024
d28fc6a
Cleaning up the resulting container and updated
Jan 8, 2024
fec6441
Merge branch 'master' of https://github.com/gilbertfl/escpos-netprinter
Jan 8, 2024
2c3c5d2
esc2file cleanup: make the CUPS file names configurable in the devic…
Jan 9, 2024
0b2a386
Add VSCode dev environment to version control, without polluting the …
Jan 12, 2024
69e9bcf
Now the JetDirect service deals with the undocumented handshake.
Jan 12, 2024
d5e9d2b
Visual tweaks: emulate a 80mm paper receipt and center all QR codes p…
Jan 15, 2024
9514a51
Readme updates for version 2.0-beta
Jan 15, 2024
59f27b5
Readme updates for version 2.0-beta
Jan 15, 2024
cf2aef5
Merge branch 'master' of https://github.com/gilbertfl/escpos-netprinter
Jan 15, 2024
c58c63c
Consolidate esc2html logs for all sources
Jan 17, 2024
fa943d7
Consolidate esc2html logs for all sources
Jan 17, 2024
7627fae
Merge branch 'master' of https://github.com/gilbertfl/escpos-netprinter
Jan 17, 2024
13d7c4d
Add debugging for JetDirect
Jan 17, 2024
de9acf0
QR code parsing corrected.
Jan 17, 2024
cfdfcfe
QR code parsing AND rendering works
Jan 18, 2024
341d748
Update README.md
gilbertfl Jan 18, 2024
c452612
Change dockerfile to set debugging to false
gilbertfl Jan 18, 2024
6da83ab
Explicitly make the entrypoint executable.
Jan 22, 2024
b692139
Explicitly make the entrypoint executable.
Jan 22, 2024
1403025
Merge branch 'master' of https://github.com/gilbertfl/escpos-netprinter
Jan 22, 2024
02255e9
Add some debugging and deal with empty prints.
Jan 22, 2024
2303d07
Correct PSR-4 case-sensitivity issue.
Jan 24, 2024
f29797f
Sidestep permission problems by copying the whole CUPS log every time…
Jan 24, 2024
047b551
Update README.md
gilbertfl Jan 25, 2024
ee2aa8d
Ensure that ESCPOS_DEBUG enables debugging logs for all parts of the …
Jan 29, 2024
c248e4a
Merge branch 'master' of https://github.com/gilbertfl/escpos-netprinter
Jan 29, 2024
e944ac0
Prevent footer from overlapping the receipt list by making it sticky …
Mar 28, 2024
5536da2
Reverse receipt list order and fix footer max height.
Apr 3, 2024
7c9b627
Respond to DLE EOT "printer status" requests
Apr 4, 2024
5b1d8a2
Respond to DLE EOT "printer status" requests
Apr 4, 2024
2f99275
Merge branch 'master' of https://github.com/gilbertfl/escpos-netprinter
Apr 4, 2024
c3d78f2
Re-correct PSR-4 case sensitivity issue
Apr 24, 2024
efda3b1
Revert "Re-correct PSR-4 case sensitivity issue"
Apr 24, 2024
435d948
First draft for a complete "real-time command processing" block.
Jun 10, 2024
f85e710
Fully respond to FS (
Jan 14, 2025
3da25c5
Refactor parameter consumption plus deal with GS ( H
Jan 20, 2025
2567e36
Refactor parameter consumption plus deal with GS ( H
Jan 20, 2025
8e26bdb
Merge branch '1-deal-with-pre-print-requests-from-pos-systems' of htt…
Jan 20, 2025
043cc92
Update chillerlan/php-qrcode to enable jumpint to the latest PHP (8.4)
gilbertfl Apr 23, 2025
9ce4b1c
Finish FS processing plus separate GS and DLE requests.
gilbertfl Apr 25, 2025
d7047f5
Update VSCode dev container configuration
gilbertfl Apr 27, 2025
ea00bca
Move the testing scripts out of the CUPS directory.
gilbertfl Apr 27, 2025
1ba6d40
Move the testing scripts out of the CUPS directory and add the tests …
gilbertfl Apr 27, 2025
7ae0b6d
Complete responses for DLE DC4 and DLE EOT.
gilbertfl Apr 27, 2025
a0ee5fb
Tests for DLE DC4, DLE EOT, GS r complete.
gilbertfl Apr 27, 2025
b0d437c
GS I request tested
gilbertfl Apr 28, 2025
6bb3fc3
Add tests for GS g, GS ( r and start tests for GS ( E.
gilbertfl Apr 29, 2025
b6b19b3
More GS ( E functions.
gilbertfl Apr 29, 2025
fdd5067
Merge remote-tracking branch 'origin/1-deal-with-pre-print-requests-f…
gilbertfl Apr 29, 2025
7bae425
Tests of GS ( E added, fn=52 is buggy.
gilbertfl May 16, 2025
5935416
Remove GS ( E <fn=11> from functions that demand a response.
gilbertfl May 20, 2025
2e0bdf2
Test GS ( E, GS ( H, ESC u and ESC v, with bug squashing.
gilbertfl May 26, 2025
3c11744
Test FS (, GS a and GS j, plus complete functions where necessary.
gilbertfl May 27, 2025
1fabbc4
Test FS g request, with bug squashing.
gilbertfl May 27, 2025
41b75eb
Test FS p and FS q requests.
gilbertfl May 29, 2025
2012ec0
Merge branch '1-deal-with-pre-print-requests-from-pos-systems' - solv…
gilbertfl May 29, 2025
162895a
Merge branch '1-deal-with-pre-print-requests-from-pos-systems' - solv…
gilbertfl May 29, 2025
7c56549
Merge branch 'master' of https://github.com/gilbertfl/escpos-netprinter
gilbertfl May 29, 2025
999a4b5
Branch to create a pull request for QR code rendering
gilbertfl May 29, 2025
5508a96
Branch to create a pull request for QR code rendering
gilbertfl May 29, 2025
b4c4779
Document new debug mode for esc2html
gilbertfl May 30, 2025
2a1fa29
Merge branch 'QRcode-backport' of https://github.com/gilbertfl/escpos…
gilbertfl May 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ vendor/
# other build files
build/*
*.phar
composer.lock

51 changes: 0 additions & 51 deletions CONTRIBUTING.md
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file should not be deleted.

This file was deleted.

24 changes: 0 additions & 24 deletions LICENSE.md
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file should not be deleted.

This file was deleted.

Binary file added NoQR.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 0 additions & 53 deletions README.md
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file should not be deleted.

This file was deleted.

4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"require" : {
"php": "^8.4",
"squizlabs/php_codesniffer" : "^2.8",
"mike42/escpos-php": "^1.5"
"mike42/escpos-php": "^1.5",
"chillerlan/php-qrcode": "^5.0.3"
},
"autoload" : {
"psr-4" : {
Expand Down
152 changes: 0 additions & 152 deletions composer.lock
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file should be removed from the project, since composer generates it at install time.

This file was deleted.

18 changes: 18 additions & 0 deletions doc/esc2html.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,21 @@ This utility is included with escpos-tools. See the

## Usage

Basic usage:
```
php esc2html FILE
```

Optional debugging:
```
php esc2html --debug FILE
```
In the debug mode, the debugging messages are sent to the debug console while the output is the same as in basic mode.


## Example

### Basic example
```
$ php esc2html.php receipt-with-logo.bin > receipt-with-logo.html
```
Expand All @@ -38,6 +47,15 @@ $ cat receipt-with-logo.bin > /dev/usb/lp0

The input file used as an example here was generated by [escpos-php](https://github.com/mike42/escpos-php), and is available [here](https://raw.githubusercontent.com/receipt-print-hq/escpos-tools/master/receipt-with-logo.bin).

### Saving debugging output separately from the real output

```
$ php esc2html.php receipt-with-qrcode.bin 1>test.html 2>log.txt
```

The HTML representation of the receipt is saved to test.html, and the debugging output to log.txt.


## Further conversions

This utility will create a formatted HTML file. This can be converted accurately to PDF
Expand Down
Loading