Rameez ScriptsYour software partner Face & Fingerprint Attendance · setup guide
Get help
For buyers of F46. Download the project from your Rameez Scripts account first. Want us to set it up for you? Ask on WhatsApp
F46 · Face & Fingerprint Attendance

Face Attendance Setup Guide.

Put the app online on your own VPS, try it on your PC with localhost, and connect your Google Sheet. Plain steps, every command ready to copy.

  • 20Simple steps
  • 1Install command
  • VPSOnline
  • LocalhostOn your PC
Dashboard · My Company×+
attendance.yourcompany.com
Face and Fingerprint Attendance admin dashboard
The admin dashboard at your own address
Part 1 of 5

Start here.

01
Step 1 of 20

How it works

Face & Fingerprint Attendance is a web app. Your staff open it on their own phone and tap Check In: the phone checks the face, asks for a head turn and saves the location. You run it in one of two ways, and a Google Sheet can get a copy of the data.

WayWhat it is forSteps
Online on a VPSReal use. Staff punch from their own phones, anywhere, over https.2 to 11
On your PC (localhost)Try every page on your own computer before you go online.12 to 14
Google Sheets copyOptional. Punches and day rows go to your own Sheet every 10 minutes.15 to 17
Why a VPS for staff phones? The camera and the fingerprint / Face ID only work on a secure address (https://) or on localhost on the same computer. A phone in your office cannot reach your PC's localhost, so staff phones need the online version.
Next: What you need
Part 2 of 5

Put it online.

02
Step 2 of 20

What you need

ItemDetails
A VPSUbuntu 22.04 or 24.04, at least 1 CPU and 2 GB RAM. A plain server, with no control panel.
A domain or subdomainFor example attendance.yourcompany.com. Each phone is tied to this address, so pick one you will keep.
The project filesThe folder you downloaded from your Rameez Scripts account (F46).
Your PCWindows 10/11 (PowerShell) or a Mac / Linux (Terminal). Both already have ssh and scp.
Next: Buy a VPS
03
Step 3 of 20

Buy a VPS

  1. Open your hosting company's VPS plans (not shared or web hosting). We use Hostinger VPS.
  2. Pick a plan with at least 2 GB RAM and the location closest to your office.
  3. For the operating system choose plain Ubuntu 24.04 (or 22.04). Do not pick cPanel, Plesk, CloudPanel or any app template.
  4. Set a strong root password and save it.
  5. When the VPS shows Running, write down its IP address (like 203.0.113.25).
Why no control panel? The installer sets up its own secure web server on ports 80 and 443. A control panel already uses those ports and the install stops.
Referral link The Hostinger link is a referral link: I may earn a commission if you buy through it, at no extra cost to you.
Next: Point your domain
04
Step 4 of 20

Point your domain at the VPS

  1. Open the DNS settings of your domain (at Hostinger: Domains › your domain › DNS / Nameservers).
  2. Add an A record:
DNS record
Type:   A
Name:   attendance
Points to:  203.0.113.25   (your VPS IP)
TTL:    default
  1. Save, and wait 5 to 30 minutes.
  2. Check it from your PC: the reply must show your VPS IP.
Type on your PC (PowerShell or Terminal)
ping attendance.yourcompany.com
Done when The ping shows your VPS IP address.
Next: Copy the project
05
Step 5 of 20

Copy the project to the VPS

  1. Unzip the download and rename the folder to attendance (no spaces).
  2. Open PowerShell (Windows) or Terminal (Mac) in the folder that holds attendance.
  3. Copy it to the VPS. Type yes the first time, then the root password:
Type on your PC (PowerShell or Terminal)
scp -r attendance root@203.0.113.25:/root/
Use your own IP Replace 203.0.113.25 with the IP from step 3 in every command.
Next: Open the VPS
06
Step 6 of 20

Open the VPS from your PC

Type on your PC (PowerShell or Terminal)
ssh root@203.0.113.25
  1. Type yes if it asks about the fingerprint of the server.
  2. Type the root password (nothing shows while you type) and press Enter.
  3. You are in when the line ends with root@…:~#.
Next: Run the installer
07
Step 7 of 20

Run the installer

One command installs everything: Python, the face models, the app as a service that starts after a reboot, https through Caddy, and a daily copy of the database.

Type on the VPS (signed in as root)
cd /root/attendance
bash install.sh attendance.yourcompany.com
  1. Use your own domain from step 4.
  2. Wait about 5 minutes. It ends with active and done. open https://…/setup.
It stops early? "run as root" means you are not signed in as root. A Caddy error usually means the domain does not point to this VPS yet: go back to step 4.
Next: Create your company
08
Step 8 of 20

Create your company

Type in your browser address bar
https://attendance.yourcompany.com/setup
  1. Fill in the company name and the time zone.
  2. Fill in your name, an admin username and a password of 10 or more characters.
  3. Press the button to finish. You land on the admin dashboard.
Only once The setup page works only while there is no user. After that it is closed, so keep your admin password safe.
Next: Office location + network
09
Step 9 of 20

Set your office location and network

  1. Stand in the office with your phone or laptop and open Settings › Location & network.
  2. Press Use my current location and set the allowed distance (for example 100 m).
  3. Press Add the network I am on now to save the office internet (IP).
  4. Press Save.
Nothing is refused by default A punch from outside the area or another network is still saved, marked and sent to the Review Queue with a risk score. Strict modes for each rule are in Settings.
Next: Add shifts and staff
10
Step 10 of 20

Add shifts and staff

  1. Shifts: check the General shift (start, end, grace minutes, weekly off) or add your own.
  2. Staff › Add Staff: one account per person, with a username without spaces, a password and the shift.
  3. Send each person the address, their username and password.
Next: Staff set up their phone
11
Step 11 of 20

Staff set up their phone

  1. The staff member opens your address on their phone and signs in.
  2. Under Set up once, they tick the consent line (the face is saved as numbers, not as a photo).
  3. Your face › Start: look straight, turn left, turn right. It takes about 10 seconds.
  4. This phone › Register: the phone saves a passkey and asks for fingerprint or Face ID.
  5. From now on: tap Check In or Check Out.
Like an app In Chrome (Android) or Safari (iPhone), use Add to Home screen so it opens like an app.
Done when A staff member checks in and you see the punch on the dashboard and the Punch Map.
Next: Install Python
Part 3 of 5

Try it on your PC.

12
Step 12 of 20

Install Python

  1. Download Python 3.11 or newer from python.org.
  2. Windows: on the first screen tick Add python.exe to PATH, then Install Now.
  3. Check it in a new PowerShell or Terminal window:
Type on your PC (PowerShell or Terminal)
python --version
Next: Install the app on your PC
13
Step 13 of 20

Install the app on your PC

Open PowerShell or Terminal inside the project folder, then run the commands for your computer. The face models download from OpenCV's public model zoo.

Type in PowerShell (Windows)
python -m venv .venv
.\.venv\Scripts\python -m pip install -r requirements.txt
mkdir models
curl.exe -L -o models\yunet.onnx https://github.com/opencv/opencv_zoo/raw/main/models/face_detection_yunet/face_detection_yunet_2023mar.onnx
curl.exe -L -o models\sface.onnx https://github.com/opencv/opencv_zoo/raw/main/models/face_recognition_sface/face_recognition_sface_2021dec.onnx
Type in Terminal (Mac or Linux)
bash setup.sh
Photo / screen check The installer on Linux and Mac also downloads an optional photo / screen check model. The app runs without it.
Next: Start it on localhost
14
Step 14 of 20

Start it and open localhost

Type in PowerShell (Windows)
.\.venv\Scripts\python -m uvicorn app.main:app --port 8000
Type in Terminal (Mac or Linux)
./run.sh
  1. Leave that window open while you use the app.
  2. Open this address on the same computer and create your company (like step 8):
Type in your browser address bar
http://localhost:8000/setup
Phones need the online version The camera works on localhost in your PC's browser. Staff phones need the https address from steps 2 to 11.
Next: Script in a Google Sheet
Part 4 of 5

Connect Google Sheets.

15
Step 15 of 20

Put the script in a Google Sheet

  1. In the app open Settings › Google Sheet and copy the code shown there.
  2. Make a new Google Sheet, then Extensions › Apps Script.
  3. Delete what is there, paste the code and press Save.
  4. In the function list pick setup, press Run, then Allow.
Video: deploy an Apps Script web app
Next: Deploy it as a web app
16
Step 16 of 20

Deploy it as a web app

  1. Deploy › New deployment, type Web app.
  2. Execute as Me, Who has access Anyone, then Deploy.
  3. Copy the Web app URL. It ends in /exec.
Type in your browser address bar
https://script.google.com/macros/s/…/exec
Next: Connect it in the app
17
Step 17 of 20

Connect it in the app

  1. Back in Settings › Google Sheet, paste the URL in Web app URL.
  2. Switch on Send to Google Sheet. Send every is 10 minutes (1 to 120).
  3. Press Save, then Send now.
  4. Open your Sheet: the Punches and Daily tabs fill with your data.
Moving to another server? The Sheet remembers the first server that sends to it. To connect a new server, open the script editor, Project Settings › Script properties, and delete SYNC_KEY.
Next: Daily commands
Part 5 of 5

Help.

18
Step 18 of 20

Daily commands on the VPS

Type on the VPS (signed in as root)
# see the last log lines
journalctl -u attendance -n 100
# restart the app
systemctl restart attendance
# daily database copies (14 are kept)
ls /opt/attendance/data/backups
Backup from the app Admins can also download and restore a backup from Settings in the app.
Next: Problems and fixes
19
Step 19 of 20

Problems and fixes

The site does not open

Check that the domain points to the VPS (step 4) and that ports 80 and 443 are open in your hosting firewall.

The camera or fingerprint does not start

The address must start with https:// (or be localhost on the same PC). Allow the camera when the browser asks.

Face not matched for the right person

Good light, face straight and close to the oval. An admin can reset the face in Staff and the person sets it up again.

A staff member changed their phone

Staff › ⋮ › Reset phone, then they register the new phone under Set up once.

I changed the domain

Every phone registers again (Staff › Reset phone), because each passkey is tied to the old address.

Nothing arrives in the Google Sheet

Check the Web app URL ends in /exec, access is Anyone, and press Send now. Moved servers? Delete SYNC_KEY (step 17).

Next: Go-live checklist
20
Step 20 of 20

Go-live checklist

0 of 8 done
Stuck on a step?Send the step number and a photo of your screen on WhatsApp.
Get help