Skip to content

bitcoin-studio/LightningNespressoServer

Repository files navigation

Nespresso Capsule Vending Machine over Lightning Network

What is it?

This repository is part of a Do-It-Yourself vending machine project which connects to a Bitcoin point of sale terminal.
Select your coffee, pay with Bitcoin (via Lightning Network), and the vending machine will deliver your Nespresso capsule.

This code is written in Lua, executed on an ESP8266 microchip running the NodeMCU firmware, and has the function of listening to HTTP requests and activating a servomotor to deliver the coffee. It is available in two different versions, a simple server listening for the selected coffee, and a version made for use with BTCPay Server. The latter is listening for a 1006/invoice_completed IPN code, then asking for invoice details using the "Basic" authentication schema over HTTPS, to finally release the capsule.

See also