https://github.com/jpizquierdo/printgrandma
Automatic thermal printer system for images using a telegram bot
https://github.com/jpizquierdo/printgrandma
Last synced: 28 days ago
JSON representation
Automatic thermal printer system for images using a telegram bot
- Host: GitHub
- URL: https://github.com/jpizquierdo/printgrandma
- Owner: jpizquierdo
- Created: 2023-12-22T10:06:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-02T21:19:18.000Z (about 1 year ago)
- Last Synced: 2025-03-27T15:08:05.145Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 249 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Introduction
============PrintGrandma is a simple implementation of an automatic thermal printer system for pictures made for my grandmother, inspired by [Yayagram's project](https://github.com/mrcatacroquer/yayagram). You can find more of Yayagram project in [instructables](https://www.instructables.com/Yayagram/).
In my case, the printing is automatic. My grandmother does not know how to read, does not have a smartphone and it has to be the easiest that it could be, so it will not be bydirectional, just one way.
Any of the grandson/grandsister can send a picture to the telegram bot, and it will be printed automatically.

Core functionality
============
- Telegram interface: to receive the pictures and save them for the printing queue.
- Thermal Printer interface: Control the printerFuture functionality
============
- Sound/Light notification.
- Voice message replayInstalling
============
$ pip install -r requirements.pyEnvironment variables configuration
============
Note that at least TELEGRAM_PRINTER_API_KEY and CHAT_ID_USER1 environment variables should be inside /etc/profile file:
$ export TELEGRAM_PRINTER_API_KEY="fadfadffs432432"
$ export CHAT_ID_USER1="123213123"Usage
============
$ sudo -E python printgrandma.py
#-E to use user environmental variables set in /etc/profileGetting help or sharing your idea
============
Ask questions by opening a discussion.License
============
MIT