Print beautifully formatted receipts, generated locally, to any CUPS printer with lite 'plug-in' system.
Does not require arduino or any other additional hardware. My printer (I am using on Citizen CT-S2000) is connected via USB.
Comes with 'plug-in's that allow to print a weather report and news feed. Optimized for 80mm paper output (640 pixel width, can be changed).
Project is in early draft state.
Icons in forecast
are currently broken
- To separate 'plug-ins' in node packages
- Compatability with
printer
project - Each section should render seperately
- To migrate from
Promise
toQ
module
Clone project and install all dependencies
git clone https://github.com/muchweb/my-little-printer.git
cd my-little-printer
npm install
Add your forecast.io API key and desired location to printerfile.json
or
Remove forecast entry from printerile.json
if you don't have a key.
node ./do.js
This will fetch latest weather and news data and produce an output
- Download data from RSS feeds
- Parse feeds using feedparser
- Generate HTML using handlebars
- Generate image from HTML
- Running CUPS lp command
- Your printer must be installed as default CUPS printer
- PhantomJS
- GraphicsMagick (on Debian could be easily installed by running
apt-get install graphicsmagick
)
- forecast.io API account
- Weather icons: Climacons
- Inspired by Hello, Printer (Printer project).