Sign inSign up

dersimn/brother_ql_fridgedate

By dersimn

•Updated about 3 years ago

Print current date onto a label when a button is pressed

Image
0

10K+

dersimn/brother_ql_fridgedate repository overview

Gif

This whole project is still kinda sketchy. The goal is to attach a Raspberry Pi (or any other small board) to a Brother labelprinter and use it to print the current date onto a label, when a button is pressed.
Why? To stick it on food in your fridge. Ever lived in a shared appartment?

The script implements this topic with last-will message as indicator if it's still running:

dersimn/maintenance/LabelPrinter/online

Sending anything to this topic will trigger printing of a new label with the current date:

dersimn/action/LabelPrinter/printdate

Configure OpenHAB or mqtt-smarthome⁠ to trigger this topic when an Amazon Dash button is pressed.

⁠Usage

Install Docker⁠ on your Raspberry Pi and use this command to run the script:

docker run -d --restart=always --name=labelprinter \
    --device=/dev/usb/lp0 \
    -e BROTHER_MODEL="QL-700" \
    -e BROTHER_LABEL="d24" \
    -e MQTT_HOST="10.1.1.50" \
    -e TZ="Europe/Berlin" \
    dersimn/brother_ql_fridgedate:armhf

Refer to the brother_ql⁠ documentation / source code for compatible printer models⁠ and label types⁠.

⁠Credits

Philipp "pklaus" Klaus⁠ for his brother_ql⁠ package. Jim Lyles for the attached Vera font⁠.

Tag summary

Content type

Image

Digest

sha256:6f21e5f84…

Size

382.8 MB

Last updated

about 3 years ago

docker pull dersimn/brother_ql_fridgedate