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.
Apr 2018: Still works on the UniFi 5.6.26 Controller.
- Clone the repo:
git clone https://github.com/davidmaitland/unifi-voucher-generator.git
-
Set the variables in
unifi-api.sh
with your controller's details (username, password, baseurl, site). -
Optionally customise the variables in
gen.sh
and the styles instyle.css
.
-
Run
./gen.sh
. -
Open
vouchers.html
and print!