- Install docker https://www.docker.com/community-edition#download
- Install docker compose https://docs.docker.com/compose/install/#install-compose
- Navigate to the unzipped directory
- Run “docker-compose up” in the terminal
- A pollworker user is needed in order to check users in - press login in the top right
- Select Sign Up in the bottom right of the form
- Enter the credentials, along with a precinct ID that you are a pollworker for. You can only check users into your precinct - we will check!
- Sign in every time you need to with the login button in the top right
- Setup the printer - see the printer section below
- When voting: - Go to the top left and select dash - this is where you will check voters in - Select your precinct and the election that people will vote in - When searching a voter, ask for their name, first and last - Should they not know their voter number, hopefully they know the last 4 digits so you can confirm identity (note you will also have an ID). However, should this not be the case, address can be checked on the admin site by a pollworker administrator. This is strongly discouraged! - A QR code should print when the serial code is accessed - if this is untrue, make sure the printer is set up correct - Inform the voter to go to a voting station and scan their QR code in order to vote. Furthermore, a primary or general should be selected
- Select the vote screen in the top left
- That's literally it
- Go to the host_script directory within the project with
cd host_scripts
- Open the printAdafruit.py file with your favorite text editor
- Depending on the printer, uncomment a line:
- If you have the blue printer, ensure the line
p = Usb(0x456, 0x0808, 0, 0x81, 0x03)
is uncommented and the other commented - If you have the black printer, ensure the linep = Usb(0x416, 0x5011)
is uncommented and the other commented - Note that the blue printer is superior so some functionality might be lacking on the black printer. Please use the blue printer for all of our sakes. - Should NO PRINTER be present, comment out every line that sart withp.
- Should you have problems, be sure the printer paper is facing the right way (the tongue unrolls up) - Plug printer into USB
- Run code with
sudo python printAdafruit.py
- Note it's python3 so might have to usepython3
depending on system setup - Also note thatsudo
is necessary to access USB (on Linux) - Be sure topip install
whatever modules you don't have - Watch your printer print stuff!
- The site automatically pulls the client IP and uses to print - The printer will correctly set up the IP to use your IP