17 lines
866 B
Markdown
17 lines
866 B
Markdown
|
|
||
|
# Phomemo-printer for macOS
|
||
|
|
||
|
Inspired by https://github.com/vivier/phomemo-tools
|
||
|
|
||
|
If you're on Linux, use the above repository which utilizes CUPS.
|
||
|
|
||
|
If you're on macOS, the Python pybluez Bluetooth drivers don't work (well) on the latest iteration of macOS (tested on Ventura 13.2). Instead, this repository uses [TinyGo's Bluetooth package](https://pkg.go.dev/tinygo.org/x/bluetooth), which wraps Apple's [CoreBluetooth](https://developer.apple.com/documentation/corebluetooth?language=objc) to be able to communicate with a Bluetooth device.
|
||
|
|
||
|
# Building & Installing
|
||
|
|
||
|
`go build`
|
||
|
|
||
|
The script checks a folder for files (intended to be set up as a cron job), if there are any, sends them to the printer (if detected), **and deletes them**.
|
||
|
|
||
|
See `main.go`, you'll probably want to edit some variables. I hacked everything together in a day for our specific case.
|