Print current date onto a label when a button is pressed
8.5K

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.
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.
Philipp "pklaus" Klaus for his brother_ql package. Jim Lyles for the attached Vera font.
Content type
Image
Digest
sha256:6f21e5f84…
Size
382.8 MB
Last updated
almost 3 years ago
docker pull dersimn/brother_ql_fridgedate