OV Spark Pro + Ignition: webhooks
=================================
The camera posts every Production result (with the annotated image if you turn it on) to an
Ignition Web Dev endpoint, and an Overview-branded Perspective dashboard shows it.
Full steps and screenshots are in the PDF guide.

Files
  OV_SparkPro_Webhook_Project.zip         Ignition project: Camera Dashboard view, OV style classes,
                                          OVCamera project script (with handleWebhook), TriggerCamera event
  OV_tags.json                            37 memory tags for the OV folder
  ovwebhook_WebDev.py                     doGet / doPost / doPut scripts for the Web Dev resource
  Overview_Ignition_SparkPro_Webhook_Guide.pdf

Quick setup (Ignition 8.3 with the Web Dev module; camera software 2026.11.26 or later)
  1. Gateway: install the Web Dev module, then import OV_SparkPro_Webhook_Project.zip as a project.
  2. Designer > Tag Browser: select the "default" provider (top level), import OV_tags.json, collision policy Merge.
  3. Designer > Project Library > OVCamera: set CAMERA = "http://<camera IP>". Save.
  4. Designer > Web Dev > New Python Resource named ovwebhook. Enable doGet, doPost and doPut
     and paste each function from ovwebhook_WebDev.py. Save.
  5. Windows Firewall on the Gateway PC: allow inbound TCP 8088 (tick the Public profile too).
  6. Browser check: http://<Ignition IP>:8088/system/webdev/<project name>/ovwebhook shows {"ok":true}.
  7. Camera > Data Connectors > Webhooks > Add endpoint:
       POST http://<Ignition IP>:8088/system/webdev/<project name>/ovwebhook   (not localhost)
       What to send: Full    Image: Annotated    Sign-in: None
     Save, click Send test request, then switch the camera to Production.

Optional: to require a key, add a custom header X-API-Key on the camera endpoint and set the
same value as WEBHOOK_KEY in OVCamera.
