Let's get you set up

Five steps — about 10 minutes. No technical knowledge needed.

1
2
3
4
5
Create your Supabase project
Supabase is a free, open-source backend. Your data stays in your account.

1. Create a free account

Go to supabase.com and sign up. It's free — no credit card required.

Open supabase.com →

2. Create a new project

Click "New project", choose a name (e.g. pas-alarm), pick a region close to you, and set a strong database password. Save it somewhere.

Account created at supabase.com
New project created
Wait ~60s for it to spin up

3. Run the database schema

In your Supabase project, go to SQL Editor → New query. Paste the contents of schema.sql (included in this package) and click Run.

schema.sql executed successfully
No red errors in the output

4. Copy your credentials

Go to Project Settings → API. You'll need two values:

Looks like: https://abcdefgh.supabase.co
The "anon" key — safe to use in the browser.
Please fill in both fields.
Deploy the admin dashboard
Choose where to host your dashboard. All options are free.
☁️
Cloudflare Pages
Fastest global CDN. Drag-and-drop or CLI.
Recommended
Vercel
One command deploy. Great DX.
Easy
🟢
Netlify
Drag-and-drop the folder. Done.
Easy
💻
Local / self-hosted
Run on your own server or homelab.
Advanced

Cloudflare Pages — drag and drop

1. Go to pages.cloudflare.com and sign in.
2. Click Create application → Pages → Upload assets.
3. Drag your pas/ folder into the upload area.
4. Set project name (e.g. pas-dashboard) and deploy.
5. Your dashboard will be live at pas-dashboard.pages.dev in ~30s.

Open Cloudflare Pages →
Configure your first sensor node
Set up the phone that will run as a sensor. You can add more later.

Open the sensor node app on the phone

On the Android phone you want to use as a sensor, open Chrome and go to:

https://your-dashboard-url/index.html

Tap the browser menu → Add to Home Screen to install it as a PWA.

Important: battery settings

For reliable 24/7 operation, configure the phone:

Disable Battery Optimization for Chrome
Settings → Apps → Chrome → Battery → Unrestricted
Keep phone plugged in
Continuous camera + sensors drains battery fast
Choose your passphrase
8+ chars — you'll need this every time you arm the system
This will be used to encrypt all sensor data. Not stored anywhere.
Passphrase must be at least 8 characters.
Passphrases do not match.
Test your connection
Let's make sure everything is wired up correctly before you go live.
Supabase connection
Pending
Database schema
Pending
Write permission
Pending
Realtime / polling
Pending
You're live 🎉
PAS is configured and ready. Here's your setup summary.
Supabase URL
Dashboard
Encryption
AES-256-GCM
Key derivation
PBKDF2 100k
Deploy platform
Schema
Installed ✓

Next steps

Your system is configured. Here's what to do now:

Open the sensor node on your phone
Enter your passphrase and tap "Start sensors"
Open the dashboard in a browser
You should see the device appear on the map within 30s
Trigger a test alert
Wave in front of the camera — watch it appear in the alert feed
Enter Sensor Mode on the phone
Black screen, wake lock active — ready for overnight monitoring