AutoPrint is a simple .NET Core utility to help keep your inkjet printer's print heads from getting clogged.
AutoPrint will print to the default printer.
This should run on a stock Windows install.
libgdiplus from the Mono project is required. Install using brew install mono-libgdiplus.
libgdiplus from the Mono project is required. Install on most distros with sudo apt-get install libgdiplus.
Checkout, build & run using standard .NET Core commands:
git clone https://github.com/willson556/autoprint.gitcd autoprintdotnet run
Schedule using Cron, Systemd, Windows Task Scheduler. Place the paper back into the printer between each scheduled run until it's full.
The provided docker image bundles CUPS and cron. Replace the provided URI with your printer's IPP (or some other CUPS-compatible) URI.
| Variable | Required | Default | Description |
|---|---|---|---|
PRINTER_URI |
Yes | — | Your printer's IPP (or CUPS-compatible) URI |
TZ |
No | UTC |
Timezone for the cron schedule |
PRINT_INTERVAL |
No | 2 |
Days between prints (e.g. 1 = daily, 7 = weekly) |
PRINT_TIME |
No | 08:00 |
Time to print in 24h HH:MM format |
services:
autoprint:
container_name: autoprint
image: sc-frederick/autoprint
restart: unless-stopped
environment:
- TZ=America/New_York
- PRINTER_URI=https://192.168.1.138:631/ipp/print
- PRINT_INTERVAL=2
- PRINT_TIME=08:00docker run -d \
--name autoprint \
-e TZ=America/New_York \
-e PRINTER_URI=https://192.168.1.138:631/ipp/print \
-e PRINT_INTERVAL=2 \
-e PRINT_TIME=08:00 \
sc-frederick/autoprintThis project is a fork of willson556/autoprint, originally created by Thomas Willson. All credit for the original concept and implementation goes to him. This project is distributed under the same MIT license as the original.