Crate pispas_order_kitchen

Crate pispas_order_kitchen 

Source
Expand description

§pispas_order_kitchen — kitchen display server

Standalone HTTP server (actix-web) that a kitchen display (a browser on a cheap Android tablet, typically) points to. Each active order is represented by a Pedido (canal, numero, estado = en_preparacion / listo / recogido) and the list persists to comandas.json so restarts don’t lose state.

Orders arrive via POST from the order_kitchen module inside pispas_modules when a ticket with kitchen-bound items is rung up. The display polls this server and shows pending / ready orders on a TV.

  pispas-modules  --POST pedido-->  pispas_order_kitchen.exe
                                             |
                                             | GET list
                                             v
                                      kitchen display (browser)

This binary runs on the same machine as pispas-modules and is orchestrated by the service; end users never launch it manually.

Structs§

AppState 🔒
ModoConfig 🔒
Pedido 🔒
PedidoRequest 🔒
archivar
cocina
get_modo
get_pedidos
index
marcar_preparado
set_modo
set_pedido

Constants§

COMANDAS_FILE 🔒
FAVICON_ICO 🔒
INDEX_HTML 🔒
KITCHEN_HTML 🔒
LOGO_DARK_PNG 🔒
LOGO_WHITE_PNG 🔒
ORDER_KITCHEN_LOG

Functions§

cargar_comandas 🔒
guardar_comandas 🔒
main 🔒