From 2630a5616240dde4792192781c595988a27ebba1 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Tue, 14 Jan 2025 17:42:39 -0500 Subject: [PATCH 1/3] setup remote printing --- printer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/printer.py b/printer.py index 7032872..bbae47c 100644 --- a/printer.py +++ b/printer.py @@ -104,4 +104,5 @@ class ReceiptPrinter(CupsPrinter): with self.set(align="center", double_height=True, double_width=True): p.textln(text) -p = ReceiptPrinter("EPSON-TM-m30", profile="default") +#p = ReceiptPrinter("EPSON-TM-m30", profile="default") +p = ReceiptPrinter("EPSON-TM-m30-remote", profile="default") From 60edbd0df1ff20a972cd57883d25bb607144ffec Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Tue, 14 Jan 2025 17:42:49 -0500 Subject: [PATCH 2/3] override tag to null --- shell.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/shell.nix b/shell.nix index a960ebf..6588b4a 100644 --- a/shell.nix +++ b/shell.nix @@ -7,6 +7,7 @@ let python-escpos = pythonPrev.python-escpos.overrideAttrs (oldAttrs: { version = "0.0.0+unstable-2024-10-10"; src = oldAttrs.src.override { + tag = null; rev = "7d42f117161362e99c56431ebeb2ef1e9c91c495"; hash = "sha256-Wl7naHbsYfN+VYASQXyWrLNF953nwoM0ugiutE2jYNI="; }; From 30b300986c3dfd52e6b8ba3bcf78c1bf6acf212e Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Tue, 14 Jan 2025 17:42:59 -0500 Subject: [PATCH 3/3] create todo list script --- todo.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 todo.py diff --git a/todo.py b/todo.py new file mode 100644 index 0000000..35005fd --- /dev/null +++ b/todo.py @@ -0,0 +1,11 @@ +from printer import p +from datetime import datetime + +with p: + p.title(" TODO List ", size=4) + p.subtitle(datetime.today().strftime("%Y-%m-%d")) + p.ln() + + with open("/home/infinidoge/TODO.txt", "r") as f: + for line in f.readlines(): + p.textln(line.replace("- ", "[ ] ").rstrip())