Skip to content

xsyt/dymo_datastamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dymo datastamp label printer

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.

Requirements

  • Raspberry Pi
  • Dymo LabelWriter 450 DUO Label printer
  • CUPS (Common Unix Printing System)
  • Python 3
  • Python libraries: cups, Pillow, RPi.GPIO

Installation

  1. Install CUPS on your Raspberry Pi:

    sudo apt-get update
    sudo apt-get install cups
  2. Add your user to the lpadmin group:

    sudo usermod -aG lpadmin pi
  3. Install the required Python libraries:

    pip install pycups Pillow RPi.GPIO
  4. Connect your Dymo LabelWriter printer to the Raspberry Pi and configure it using the CUPS web interface (http://localhost:631).

  5. Make bootable "print_label.py" file, using systemd, rc.local or crontab method.

Usage

  1. Connect a button to GPIO pin 23 on the Raspberry Pi.
  2. Run the Python script:
    python3 print_label.py
  3. Press the button to create and print a label with the current date and time.

Script Details

The script performs the following steps:

  1. Sets up the GPIO pin for the button.
  2. Waits for the button to be pressed.
  3. When the button is pressed, it creates a label with the current date and time.
  4. Sends the label to the Dymo LabelWriter printer using CUPS.

License

This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.

screenshot example print video in action

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages