VoucherPI is a simple, hacky script that prints out a freshly generated voucher using the Unifi API.
The implementation is hacky and needs to be worked on. Error handling is non-existant. It can and will crash.
You may use the Unifi API provided in this project for your own projects. The documentation can be found in the file.
See settings.py
.
This repository provides voucherpi.service
, an expample systemd service file for this project.
Adjust neccesary parameters and copy to /etc/systemd/user/voucherpi.service
. You can also create a link. You can also create a link.
systemctl --user enable voucherpi
systemctl --user start voucherpi
- Daniel Malik [email protected]