Hacker News new | ask | show | jobs
by irs 526 days ago
This is cool. Please make it so its not just for news and developer friendly so it can print any content on demand using api. Tried to use a "memobird" printer for similar purpose but couldn't get any support for their API.
1 comments

You can write your own script to do this. It's a few lines of scripting to query whatever APIs you want, and then output to /dev/usb0 or wherever the printer is hooked up. Seems a bit unnecessary to add an extra API wrapper just to do that

You can test this right now by running `echo "Hello, world!" > /dev/usb0`, assuming a printer is connected to that USB port of your Unix-based device.

https://unix.stackexchange.com/questions/141016/a-laymans-ex...

Interesting.i have always known usb0 exists but didnt think this would work. Now i am wondering what the equivalent command to print using bluetooth printers is.