CAM

Field Camera

Online
Enter your name and Team PIN to unlock camera
UPLOAD QUEUE
0 uploaded
Photos upload immediately when online — or queue safely on your device offline until cellular or Wi-Fi returns.
v2.0.0

Device & Capture Preferences

Attach Live GPS on "Take Photo" Non-blocking coordinates + Google Maps link when OS camera omits EXIF GPS
Offline Storage Checking...
Effective Timezone Detecting...
Local Queue 0 queued

Backend Connection Diagnostic

Verifies your Team PIN, Google Shared Drive write permissions, and D4H API v3 connectivity on this deployment.

Team PIN Not tested yet
Google Drive Not tested yet
D4H API v3 Not tested yet

Report Bug / Request Feature

Send a report directly to the maintainer without leaving the app (no GitHub account required). Reports never touch your team's Google Drive or D4H.

Preview Auto-Captured Diagnostics

Privacy Guarantee: Automatically excludes Team Codes, Team/Admin PINs, API tokens, GPS coordinates, incident/activity titles, and photo filenames.


        
Maintainer: Add New Team / Cloudflare Builder

Host multiple teams on a single Cloudflare Pages app using TEAMS_KV (no Cloudflare or GitHub account needed for other teams), or generate standalone environment variables.

Multi-Tenant KV Entry (Recommended — Paste into TEAMS_KV)

          
        
Standalone Single-Team Environment Variables

            
          
1. How to Add a New Team in Cloudflare KV (No Extra Accounts Needed)
  1. In Cloudflare Dashboard → Storage & Databases → KV, create a namespace (e.g., field-camera-teams) and bind it to your Pages project under Settings → Bindings → Add → KV namespace with variable name TEAMS_KV.
  2. Keep your single GOOGLE_SERVICE_ACCOUNT_JSON secret in Cloudflare Pages environment variables. Every team reuses that one Service Account while storing photos strictly inside their own Google Shared Drive.
  3. To onboard a new team, fill in Team Code, App Title, and Team PIN above, then add a KV entry with Key team:<team-code> and paste the JSON value.
  4. Send the team lead their invite link (?team=<team-code>) and Team PIN. On first login, the app guides them to share their Google Shared Drive as Content Manager and paste their Drive URL.
2. How to get Google Shared Drive ID & Service Account
  1. Open Google Cloud Console, create a project, and enable the Google Drive API.
  2. Go to IAM & Admin → Service Accounts → Create Service Account, then open Keys → Add Key → Create new key (JSON).
  3. Copy the Service Account's email (...@....iam.gserviceaccount.com) and share your team's target Google Shared Drive (or root folder) with that email as Content Manager.
  4. Paste the Shared Drive folder URL on first login (multi-team KV mode) or copy the ID after /folders/ into GOOGLE_DRIVE_ROOT_ID (standalone mode).
3. How to get D4H Team ID & API v3 Token
  1. Sign in to D4H Team Manager, click your profile avatar → API Access Tokens, and create a read-only token with Incidents, Exercises, and Events read scopes.
  2. To find your numeric D4H_TEAM_ID, inspect your D4H dashboard URL or call GET /v3/whoami once with your token.
  3. Don't use D4H? Leave d4hToken and d4hTeamId blank — Field Camera automatically switches to Custom Activity mode.
4. How to set up Private GitHub Feedback & Multi-Team Relay
  1. Create a dedicated private GitHub repository (e.g., your-handle/field-camera-feedback) and turn on Watch → All Activity for instant email notifications.
  2. Create a GitHub Fine-grained Personal Access Token scoped strictly to that private repository with Issues: Read & Write and Contents: Read & Write (for inline screenshots).
  3. In Cloudflare Pages, set GITHUB_FEEDBACK_REPO and encrypt GITHUB_FEEDBACK_TOKEN as a Secret.