Skip to content

Guest network password printer, using Raspberry Pi Zero, a thermalprinter and this code.

License

Notifications You must be signed in to change notification settings

PaintSplasher/guest-password-printer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

guest-password-printer

This project uses a thermalprinter, which is connected via Serial, to print out guest passes for Ubiquiti Unifi enabled wireless networks. We use this one: https://www.adafruit.com/product/597 - but you can use any, if the protocols are the same.

Installation

Node part

This Project uses Node 6.10.0, so you have to install this.

Use either NVM or follow the docs at https://nodejs.org/en/ to install Node and NPM. Once you installed Node do npm install. This will install the needed libs and you are ready to go.

You propably need to adjust the Serialport used. Just change line 2 in index.js to your corresponding port. The one used, is the correct one for the raspberrypi zero.

Python part

TODO

Usage

The button.py script, listens for buttonpresses on GPIO Pin 24 (Pin 19 on the Board) on a Raspberrypi Zero or compatible and then runs the Node script, if the button is pressed. Example:

# export USER=unifiuser;
# export PASSWORD=unifiuserpassword;
# export HOST=unificontrollerhost
# python button.py

Or replace python button.py with node index.js if you just want to print a code.

About

Guest network password printer, using Raspberry Pi Zero, a thermalprinter and this code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 60.5%
  • Python 39.5%