Go to file
2026-02-01 20:34:28 +01:00
jobs Fix calendar URL is entered just once 2026-02-01 20:34:28 +01:00
__init__.py New job: unit conversion. Refactoring to modules 2025-12-23 00:10:50 +01:00
.gitignore New job: daily tasks from a calendar 2026-02-01 20:20:29 +01:00
print_server.py New job: daily tasks from a calendar 2026-02-01 20:20:29 +01:00
print_tasks.py Tasks printed for multiple days 2026-02-01 20:32:28 +01:00
README.md New job: daily tasks from a calendar 2026-02-01 20:20:29 +01:00

Print Homework

Simple homework printer using a thermal printer. Practice makes perfect!

Install

pip install python-escpos[all] --user

Chess module

pip install chess

Tasks from Google Calendar

pip install requests icalendar recurring-ical-events pytz

You need to specify the calendar URL by pasting it into calendar_url.txt in this project directory.

To find the secret iCal URL for your Google Calendar, follow these steps:

Open Google Calendar in your web browser. In the top right, click the Settings (gear icon) > Settings. On the left sidebar, under "Settings for my calendars", click the name of the calendar you want to use. Scroll down to the "Integrate calendar" section. Look for the field "Secret address in iCal format". Copy this URL (it should end in .ics).

Config

Consult python-escpos docs:

Run

python print_server.py