Pfsence Voucher Printer
This is some simple python scripts and Flask interface to importing and printing vouchers generated from pfsense
Rolls from pfSense are store in a sqlite3 database. Since this uses SQLAlchemy most any databases should work since I dont use dialects.
You should secure this by running it behind a real webserver like nginx or apache which provides the means for security.
FYI, if you try to run this in a desktop web browser, it might seem like its not working. Thats because the output generated after clicking the button is meant to only be supported by Android bluetoohprint app.
Requires Python v3+ to run.
$ git clone https://github.com/hornetmadness/pfsence-voucher-printer.git $ cd pfsence-voucher-printer
Install the dependencies
$ pip install -r requriements.txt
Import the CSV Rolls
$ python import.py --file /tmp/roll1 --minutes 60
Start the server
This image is provided