Skip to content

Latest commit

 

History

History
27 lines (15 loc) · 757 Bytes

README.md

File metadata and controls

27 lines (15 loc) · 757 Bytes

UniFi Voucher Generator

Generates UniFi Hotspot vouchers using the UniFi controller API ready for printing. Customise the design using CSS.

This should work on any Linux/Mac machine that can reach the UniFi controller.

Feb 2020: Now works with UniFi 5.12.35 Controller.

Preview of generated output

Setup

  1. Clone the repo:
git clone https://github.com/davidmaitland/unifi-voucher-generator.git
  1. Set the variables in unifi-api.sh with your controller's details (username, password, baseurl, site).

  2. Optionally customise the variables in gen.sh and the styles in style.css.

Run

  1. Run ./gen.sh $time $amount // for example ./gen.sh 100 10 - 100minutes 10 codes.

  2. Open vouchers.html and print!