Skip to content

Instantly share code, notes, and snippets.

@ahoward
Created April 20, 2026 22:56
Show Gist options
  • Select an option

  • Save ahoward/02d65cd63de992888b864b4620299af8 to your computer and use it in GitHub Desktop.

Select an option

Save ahoward/02d65cd63de992888b864b4620299af8 to your computer and use it in GitHub Desktop.
PlateRecognizer Stream webhook test — POST fake payload to lpr-api.vrpaccess.com
#! /usr/bin/env bash
# Test the PR Stream webhook endpoint with a realistic fake payload.
# Usage: script/test_pr_webhook [host]
# Default host: https://lpr-api.vrpaccess.com
set -euo pipefail
HOST="${1:-https://lpr-api.vrpaccess.com}"
URL="$HOST/pr/vrps_phoenixgulfshores2/ingress"
echo "POSTing fake PR Stream payload to: $URL"
echo
curl -s -w "\n\nHTTP %{http_code}\n" \
-X POST "$URL" \
-H "Content-Type: application/json" \
-d @- <<'JSON'
{
"camera_id": "pgs2-entrance",
"timestamp": "2026-04-20T12:00:00.000Z",
"results": [
{
"plate": "TEST123",
"score": 0.921,
"region": {
"code": "us-al",
"score": 0.85
},
"vehicle": {
"type": "Sedan",
"score": 0.91
},
"box": {
"xmin": 100,
"ymin": 200,
"xmax": 300,
"ymax": 280
}
}
]
}
JSON
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment