Skip to content

Spring boot growler label printer for raspberry pi

Notifications You must be signed in to change notification settings

dregnaught/brew-printer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Growler label printing and management

Single fat-jar Spring boot project for managing printing of growler stickers for growler sales.

Getting Started

This includes a web interface for printing and managing brews. Printed on a Dymo 450 printer with 1" labels.

Prerequisites

Raspberry PI (I used a pi zero W): Java 8 WiringPi

Installing

####PI Install:

  • Install Raspbian Image
  • Install Java 8: sudo apt-get install openjdk-8-jdk
  • Install WiringPI: sudo apt-get install wiringpi
  • Install CUPS: sudo apt-get install libcups2-dev libcupsimage2-dev g++ cups cups-client links2

####Dymo Drivers (quite problematic, but works with these steps)

####Configure CUPS for remote access

  • Open the file /etc/cups/cupsd.conf (ex. sudo nano /etc/cups/cupsd.conf - note: use crtl+x then "y" if using nano to save)
  • In the blocks , <Location /admin> and <Location /admin/conf>, add Allow All (or secure it better if you need to)
  • In the "Listen" section, replace the loopback localhost Listen with: Port 631 (no Listen, just Port 631). Or secure it better if you need to. -- https://help.ubuntu.com/lts/serverguide/cups.html
  • restart CUPS (sudo systemctl restart cups.service)

####Add Printer

  • Navigate to http://[ip]:631
  • Add printer (make sure it is hooked up and on)
  • Add the Dymo -- Probably don't need to share it.

####Run Application

  • Build source with Maven
  • Copy target to PI
  • Start far jar with: sudo java -Dspring.profiles.active=pi -jar growler-brewprinter-0.0.1-SNAPSHOT.jar

Add to startup once happy with it:

  • sudo nano /etc/rc.local
  • sudo java -Dspring.profiles.active=pi -jar /home/pi/growler-brewprinter-0.0.1-SNAPSHOT.jar & > /home/pi/brewlog.txt 2>&1

Wiring

Code uses Pi4J. It has it's own wiring diagram (https://pi4j.com/1.2/pins/model-zerow-rev1.html) Code sets up listeners for buttons in the ControllerConfig component. Modify to your needs.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Troubleshooting

If you get a "file not found" error when printing, you may need to install cups-bsd (did with a PI Zero W)

About

Spring boot growler label printer for raspberry pi

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published