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.

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 PINs, API tokens, GPS coordinates, incident/activity titles, and photo filenames.


        

Team Setup & Cloudflare Env Builder

Deploying Field Camera for another SAR team? API tokens stay securely on your team's Cloudflare Pages server — never on responders' phones. Fill in your team's values below to generate ready-to-paste environment variables.


        

        
1. 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. Open that Shared Drive folder in your browser and copy the ID after /folders/ in the URL into GOOGLE_DRIVE_ROOT_ID.
2. 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 D4H_TOKEN and D4H_TEAM_ID unset — Field Camera automatically switches to Custom Activity mode.
3. Deploy to Cloudflare Pages
  1. Fork this repository to your team's GitHub account and connect it to Cloudflare Pages (Build command: none, Build output directory: /).
  2. Go to Cloudflare Pages → Settings → Environment variables and add the variables generated above (encrypt GOOGLE_SERVICE_ACCOUNT_JSON, D4H_TOKEN, and TEAM_PIN as Secrets).
  3. Trigger a deployment, open the app, enter your Team PIN, and click Test Backend Connection above!
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. Other teams can point FEEDBACK_ENDPOINT_URL at your central https://.../api/feedback URL with zero credentials shared.