Skip to main content

AI-POWERED DOCS

What do you want to know?

Ignition

Two ready-made kits connect OV Spark Pro to Inductive Automation Ignition (8.3, and 8.1 for the HTTP kit). Each one is an Ignition project, a tag file, a setup guide and a README. Import it, point it at your camera, and you get an Overview dashboard in Perspective with the inspection image, the verdict, every tool's result, counters and yield, and the camera's status.

Use them as a demo for a customer on Ignition, or as the starting point for an integration. The scripts are commented, so they are easy to adapt to other tags, an MES or a database.

Built on OV Spark Pro, works on OV Spark

The kits were built and tested on an OV Spark Pro, which is why the files are named SparkPro. OV Spark runs the same software and the same HTTP API, so they work the same way on both cameras.

Which kit do I need?​

HTTP clientWebhook
Who starts each inspectionIgnition, with POST /triggerAnything: a PLC, a sensor, the HMI, an interval, or Ignition
How the result reaches IgnitionIn the answer to the trigger requestThe camera sends every Production result to Ignition
Inspection image on the dashboardLoaded from the camera by the browserSent with the result, annotated, so the browser does not need to reach the camera
Camera softwareAny version with the HTTP API2026.11.26 or later (Data Connectors > Webhooks)
Ignition8.1 or 8.3, no extra modules8.3 with the Web Dev module
Use it whenIgnition or the customer's SCADA owns the triggerThe PLC owns the trigger and Ignition only needs the data

Downloads​

KitContainsDownload
HTTP clientIgnition project (dashboard view, Overview style classes, OVCamera script, TriggerCamera tag event), OV_tags.json (32 tags), setup guide, READMEOV_SparkPro_Ignition_HTTP_Client.zip
WebhookThe same, plus the Web Dev scripts ovwebhook_WebDev.py and 37 tagsOV_SparkPro_Ignition_Webhook.zip

The setup guides are inside each zip. To read one before you download a kit: HTTP client guide (PDF) · Webhook guide (PDF).

The dashboard​

Both kits install the same Camera Dashboard view.

The Camera Dashboard in Ignition Perspective, with numbered callouts on the camera status, result details, image, verdict, trigger button, counters, tool results and script variables

  1. Camera status: RUN MODE, SETUP MODE or OFFLINE, and the active recipe, read every 2 seconds.
  2. Last result: recipe, trigger ID and source, capture time (UTC), processing time, what decided the verdict, and the result ID.
  3. Inspection image.
  4. Verdict: green for PASS, red for FAIL, amber for NOT INSPECTED.
  5. Trigger Inspection: reads INSPECTING... and is disabled while the camera works, so it cannot overrun the camera.
  6. Counters kept in Ignition: inspected, pass, fail, not inspected, and yield (pass divided by pass plus fail). Reset counters does not touch the camera's own statistics.
  7. Tool results: one row per tool, with verdict, score, time, error and a one-line detail (alignment position, barcode data, OCR text and so on).
  8. Script metadata and variables the recipe script attached to the result.

HTTP client​

Ignition is the client and the camera is the server. Ignition sends POST /trigger, the camera runs one inspection on the active recipe and returns the whole result in the same answer. The OVCamera project script writes it to tags under [default]OV, and the dashboard reads the tags. There is no device connection, Gateway Network entry or certificate to set up: the Gateway only needs a network route to the camera.

Set it up​

  1. Get the camera ready. In the recipe's trigger settings, enable the HTTP source, then switch the camera to Production (run mode). From the Ignition server, open http://CAMERA_IP/api/integration/v1/health; it should return {"status":"ok"}.
  2. Import the project. Unzip the kit and import OV_SparkPro_HTTP_Client_Project.zip on the Gateway, then open it in the Designer.
  3. Import the tags. In the Designer Tag Browser, select the default provider at the top level (not inside an OV folder), import OV_tags.json, and choose Merge for collisions.
  4. Point the script at your camera. In Project Library > OVCamera, set CAMERA = "http://<camera IP>". If the camera has an Admin user, create a camera account for Ignition and set USERNAME and PASSWORD in the same place. Save.
  5. Open the dashboard in a Perspective session. The header turns green and reads RUN MODE within 2 seconds.
  6. Fire a test trigger. Press TRIGGER INSPECTION, or set [default]OV/Trigger to true. The verdict, image and tool table fill in. Each result is also logged under OV.SparkPro in the Gateway's Diagnostics > Logs.
Test the camera on its own first

From a PC on the camera network, curl -X POST http://CAMERA_IP/api/integration/v1/trigger -H "Content-Type: application/json" -d '{"wait_ms":5000}' should answer 200 with the result. If it does, the Ignition script will work too.

A PLC or another script can trigger through the tag: the TriggerCamera gateway tag event watches [default]OV/Trigger, runs one inspection when it goes true and sets it back to false. It runs on the Gateway, so no Designer or Perspective session has to be open.

Troubleshooting​

What you seeCauseFix
Error: 409 trigger_source_not_enabledThe active recipe does not accept HTTP triggersEnable the HTTP source in the recipe's trigger settings
Error: 409 trigger_phase_not_productionThe camera is in setup modeSwitch to Production. The header shows the current mode
Error: 409 trigger_disabledThe PLC's Trigger Disable signal is setClear it on the PLC
Error: 503 trigger_source_overrunA trigger arrived while the previous inspection was still runningSend the next trigger after the previous result
Header shows OFFLINEIgnition cannot reach the cameraCheck the route from the Gateway to the camera, and open /api/integration/v1/health from the server
Error: 401 or 403The camera has an Admin user, or the account's role cannot triggerSet USERNAME and PASSWORD in OVCamera. See Users and Permissions
Verdict updates but the image is blankThe browser loads the image straight from the cameraThe PC or panel showing the dashboard must be able to reach the camera
Nothing happens when OV/Trigger goes trueThe tag change event is not runningCheck the event is enabled, and look for errors in Diagnostics > Logs

Webhook​

The camera is the client: after every inspection in Production it sends the full result to an Ignition Web Dev endpoint, with the annotated image if you turn it on. Ignition does not poll or trigger anything, so results arrive whatever started the inspection. The body is the same result JSON as the HTTP API and MQTT.

If Ignition cannot be reached, the camera keeps retrying and holds results until they are delivered: about 8 per endpoint when each carries an image, up to 1,000 without. Results still waiting are lost if the camera restarts.

Set up Ignition​

IGNITION_IP is the IP of the PC or server running the Gateway, on the network the camera can reach. PROJECT_NAME is the name the project gets when you import it.

  1. Install the Web Dev module from Inductive Automation on the Gateway's Modules page. Without it, every request returns 404 No servlet "webdev" found.
  2. Import the project and tags. Import OV_SparkPro_Webhook_Project.zip, then in Project Library > OVCamera set CAMERA = "http://<camera IP>" (the dashboard uses it for the camera status). In the Tag Browser, select the default provider at the top level and import OV_tags.json with collision policy Merge.
  3. Create the Web Dev resource. In the Project Browser, right-click Web Dev > New Python Resource and name it ovwebhook. For each of doGet, doPost and doPut, pick it in the HTTP Method dropdown, tick Enabled, and paste its function from ovwebhook_WebDev.py. Save the project.
  4. Open port 8088 in Windows Firewall. Add an inbound rule for TCP 8088, set to Allow, with the Public profile ticked as well as Private and Domain. A cable straight to a camera usually shows up as an unidentified Public network.
  5. Check the endpoint. Open http://IGNITION_IP:8088/system/webdev/PROJECT_NAME/ovwebhook. It should show {"ok":true}.
A browser on the Gateway PC does not test the firewall

A browser on the same PC skips Windows Firewall, so a page that loads locally does not prove the camera can get through. Check from another PC on the camera network.

Set up the camera​

On the camera, open Data Connectors > Webhooks and click Add endpoint.

The camera&#39;s Add endpoint form: Name Ignition, Address POST to the Ignition Web Dev URL, What to send Full, Image Annotated, Sign-in None

SettingValue
NameIgnition
AddressPOST and http://IGNITION_IP:8088/system/webdev/PROJECT_NAME/ovwebhook. Not localhost: to the camera that means itself, and it refuses the address
What to sendFull, so the tool table gets positions, counts and decoded text
ImageAnnotated, to show the camera's overlay on the dashboard. Each request is then about 1 MB. With None the dashboard loads the image from the camera instead
Sign-inNone. To require a key, add a custom header X-API-Key and set the same value as WEBHOOK_KEY in OVCamera
  1. Save, then click Send test request. All four checks should pass. The dashboard shows the recipe "Webhook test", delivered by WEBHOOK TEST. The test has no real picture in it, and it counts as one inspection, so press Reset counters afterwards.
  2. Switch the camera to Production. Webhooks only carry Production results.

Check that results arrive​

The endpoint should read Delivering, with nothing waiting or lost:

Data Connectors, Webhooks: the Ignition endpoint is Delivering, with 40 delivered and none waiting or not delivered

Open the endpoint for its Deliveries tab. Every attempt should answer 200 within a few tens of milliseconds: the script replies to the camera first and writes the tags afterwards.

The Ignition endpoint&#39;s Deliveries tab: 40 delivered, recent attempts all answered 200 in 13 to 23 ms

In Ignition, the WebhookCount and LastWebhookAt tags count what came in, and WebhookLast holds the last body the camera sent. If Ignition also triggers the camera over HTTP, the same result arrives twice, in the trigger answer and by webhook; the script recognizes the result ID and counts it once.

Troubleshooting​

What you seeCauseFix
Test fails at Connect: destination refused (loopback or unspecified address)The Address uses localhostUse the Gateway PC's IP on the camera network (ipconfig on the PC)
Test fails: No answer within 15 secondsThe request does not reach IgnitionOpen TCP 8088 in Windows Firewall with the Public profile included, and remove any Block rule for Java or Ignition
404 No servlet "webdev" foundThe Web Dev module is not installed or runningInstall or start it on the Modules page
404 Resource "ovwebhook" not foundThe resource does not exist, has another name, or was not savedCreate ovwebhook under Web Dev in this project and save
501 Not ImplementeddoPost is not enabled on the resourceSelect doPost in the HTTP Method dropdown, tick Enabled, save
Nothing sent yet on the endpointThe camera is in SetupSwitch to Production. Send test request works in either mode
Results arrive but no imageThe ImageData tag is missing, Image is None, or only test requests were sentSet Image to Annotated and run a real inspection. The webhook guide has a snippet that adds the missing tags
Camera shows Refused by your serverIgnition answered 4xx, usually 401 from a key mismatchMatch the X-API-Key header to WEBHOOK_KEY
Webhooks stop after a whileThe Ignition trial timer ran out and the Gateway pausedReset the trial or activate the license. The camera retries until its queue is full

Where to go next​