This project uses a Dymo LabelWriter printer and a Raspberry Pi with a simple Python script to create a timestamp picture and send it to the printer. The printer uses the CUPS Dymo driver to print the label, which is used to mark the open date for food in the fridge.
- Raspberry Pi
- Dymo LabelWriter 450 DUO Label printer
- CUPS (Common Unix Printing System)
- Python 3
- Python libraries:
cups,Pillow,RPi.GPIO
-
Install CUPS on your Raspberry Pi:
sudo apt-get update sudo apt-get install cups
-
Add your user to the
lpadmingroup:sudo usermod -aG lpadmin pi
-
Install the required Python libraries:
pip install pycups Pillow RPi.GPIO
-
Connect your Dymo LabelWriter printer to the Raspberry Pi and configure it using the CUPS web interface (
http://localhost:631). -
Make bootable "print_label.py" file, using
systemd,rc.localorcrontabmethod.
- Connect a button to GPIO pin 23 on the Raspberry Pi.
- Run the Python script:
python3 print_label.py
- Press the button to create and print a label with the current date and time.
The script performs the following steps:
- Sets up the GPIO pin for the button.
- Waits for the button to be pressed.
- When the button is pressed, it creates a label with the current date and time.
- Sends the label to the Dymo LabelWriter printer using CUPS.
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.


