46 lines
1.1 KiB
Markdown
46 lines
1.1 KiB
Markdown
# Print Homework
|
|
|
|
Simple homework printer using a thermal printer. Practice makes perfect!
|
|
|
|
## Install
|
|
|
|
```shell
|
|
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:
|
|
- [Usage](https://python-escpos.readthedocs.io/en/latest/user/usage.html)
|
|
- [Available profiles](https://python-escpos.readthedocs.io/en/latest/printer_profiles/available-profiles.html)
|
|
|
|
## Run
|
|
|
|
```shell
|
|
python print_server.py
|
|
```
|