Skip to content

Commit

Permalink
escpos 2.0.0 & Python 3.10 required
Browse files Browse the repository at this point in the history
  • Loading branch information
frederickding committed Oct 22, 2023
1 parent 626690f commit da0cd8c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import textwrap
import time
from urllib.parse import urlparse
from escpos import *
from escpos.printer import Network
from unidecode import unidecode

global _config
Expand Down Expand Up @@ -92,7 +92,7 @@ def rss_section_loop():

def print_to_receipt(text):
global _config
p = printer.Network(_config['DEFAULT'].get('printer_ip'))
p = Network(_config['DEFAULT'].get('printer_ip'))
p.set("left")

p.ln()
Expand Down
10 changes: 5 additions & 5 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[tool.poetry]
name = "rss-receipts"
version = "0.1.5"
version = "0.1.6"
description = "Fetches RSS feeds from a configuration file and prints formatted output to an ESCPOS receipt printer"
authors = ["Frederick Ding <frederick@frederickding.com>"]

[tool.poetry.dependencies]
python = "^3.9"
python = "^3.10"
feedparser = "^6.0.10"
escpos = "^1.9"
escpos = "^2.0"
Unidecode = "^1.3"

[tool.poetry.dev-dependencies]
Expand Down

0 comments on commit da0cd8c

Please sign in to comment.