Created
April 20, 2026 22:56
-
-
Save ahoward/02d65cd63de992888b864b4620299af8 to your computer and use it in GitHub Desktop.
PlateRecognizer Stream webhook test — POST fake payload to lpr-api.vrpaccess.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /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