Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 773 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 773 Bytes

WiFi Access Printer

A small thing to give guests access to your WiFi with style.

Requirements

  • Ruby 2.7
  • A thermal printer that talks ESC/POS and has a "Feed" button, connected either via USB or ethernet
  • A UniFi controller, which
    • has a WiFi Access Point configured with WPA-Enterprise
    • and has a USG adopted which acts as a RADIUS server

Installation

  1. Copy config.rb.example to config.rb and configure it to match your setup
  2. Install the bundle: bundle install
  3. Run the application using ./exe/wap (run it with ./exe/wap fake for a testing mode that does not make calls to UniFi)

Usage

Push the "Feed" button on the thermal printer to receive a new access code that's valid for 24 hours.