import { ThermalPrinterAPI } from '@orderdive/core'
const odtp = ThermalPrinterAPI('API_SECRET')
await odtp.printer('printer_kslklxos0sl').send([
{
type: 'image',
alignment: 'ct',
width: 0.5,
content: 'https://orderdive.com/sallys-pizza.png'
},
{
type: 'text',
content: [
'Order #fast-fish-dance-93mxk2ma1lxow0 ',
'**Prepaid** ',
'Order Type: Pickup ',
'',
'Item QTY Price',
'Coca-cola 2 $2.00',
'Pizza 1 $20.00',
' Size ',
' Large 24" $4.00',
' Toppings ',
' Bacon $2.00',
' Roma Tomatoes ',
'Breadsticks 2 $4.00',
'--------------------------------------',
'Subtotal $32.00',
'Tip $8.00',
'--------------------------------------',
'Order Total $40.00'
'======================================',
],
},
])
DIY or sold at cost | |
---|---|
Powered by the Raspberry Pi | |
Uses off-the-shelf commodity parts | |
No ink | |
Wide 80mm tickets | |
Auto-cutting | |
Print Images | |
Linux open-source ecosystem | |
Vendor neutral - No lock in | |
Open-source, extendable, and reprogrammable (yes it runs Doom) | |
Last mile idempotency (No unintentional double printing) | |
DIY version requires no soldering | |
Plug-and-play with the OrderDive Event Engine |