Dispatch within 24 h · 24-month warranty · Czech supportTrack shipment+420 311 440 241

Integration with other systems

Camera CGI/snapshot API — a static snap.jpg image

How to get a static JPEG snapshot from a PATRONUM camera or NVR recorder via snap.jpg: URL formats, Basic vs. Digest authentication, the effect of firmware version and diagnostics for Loxone or Synology.

Applies to Gen 2This guide applies to Gen 2 systems (recorder, BitVision app, web interface). GEN3 cameras are set up and updated in the PATRONUM Vision app.

Quick answer: You get a static snapshot from a PATRONUM IP camera at http://IPaddress:HTTPport/snap.jpg (with login in the address: http://user:password@IPaddress:HTTPport/snap.jpg), and from a PoE NVR recorder at http://NVRIPaddress:HTTPport/snap.jpg?channel=1. If the URL works in a browser but not in a higher-level system (e.g. Loxone), the cause is usually the HTTP authentication method — which depends on the firmware version.

What a snapshot (CGI) URL is

In addition to RTSP video streams, PATRONUM cameras and recorders offer a simple CGI interface that returns the current static image in JPEG format in response to an HTTP request. A higher-level system (smart home, door panel, your own script) downloads the snapshot whenever it needs it — typically after a doorbell ring or on a detected event. This is exactly the mechanism LOXONE uses, for example, to display a camera image.

Address formats

IP camera

http://IPaddress:HTTPport/snap.jpg
http://user:password@IPaddress:HTTPport/snap.jpg (login credentials directly in the address)

IP address – the camera's address on the network (e.g. 192.168.1.168)
HTTP port – the camera's HTTP port (default 80; if it has been changed, check it in the device's network settings)
user / password – a user account in the camera, the same as for the web interface (default: admin)

JPEG stream (repeated images): http://IPaddress:HTTPport/live.htm

PoE NVR recorder

http://NVRIPaddress:HTTPport/snap.jpg?channel=1

The channel parameter determines the channel number in the NVR. All new PoE NVR recorders and selected older models, after a firmware update, can share images from cameras connected directly to the PoE ports in this way.

Note: The recorder must be set for local display on a TV/monitor on the home screen (camera preview). If the initial wizard is running or a menu is open on the screen, the JPEG files are not created.

A complete overview of addresses including RTSP streams is in the article Formatting stream addresses.

Authentication: Basic vs. Digest

When a snapshot is downloaded, the device asks for the login credentials of the same user you use to log in to the web interface. There are two common methods of HTTP authentication:

  • Basic — the name and password are sent directly with the request and can also be written into the URL in the form user:password@address. The vast majority of third-party systems support it.
  • Digest — a more secure challenge–response mechanism. Some third-party systems do not support it, however — for example Loxone states in its documentation that it does not support Digest authentication.

Which method the device requires depends on the firmware version and in the device settings it can usually not be switched. From our support practice we know of a case where, after a camera firmware update, the static image in Loxone stopped working (only a question mark was shown instead of the snapshot), although the same URL in a browser returned the image normally. If you encounter this problem, contact support with the device model and the exact firmware version — returning to older firmware is not possible and the behaviour has to be assessed individually.

Step-by-step diagnostics

  1. Open the snapshot URL in a browser on a computer on the same network. If the current image from the camera is displayed, the CGI interface works and the camera is fine.
  2. The browser shows the snapshot but the integration does not? The problem is on the side of the higher-level system — most often the authentication method (see Basic vs. Digest above), a typo in the address, a wrong HTTP port or a missing channel parameter for the NVR.
  3. The browser does not show it either? Check the IP address and HTTP port in the device's network settings, the login credentials and, for an NVR recorder, also that it is on the home screen with the camera preview.
  4. Stopped working after a firmware update? The behaviour of the snapshot interface may differ between firmware versions. Contact support with the model name and the exact firmware version — you will find both in the device's web interface.

Use in practice

Security recommendations

  • Login credentials written in the URL are transmitted in readable form — use snapshot addresses only on the local network.
  • Never expose the camera's HTTP port directly to the internet; for remote access use a P2P connection or a VPN. More in the article How to secure cameras against hacking.
  • After a firmware update, always verify that integrations built on the snapshot URL still work.

Frequently asked questions

What is the default HTTP port?

The default HTTP port of PATRONUM cameras and recorders is 80. If it was changed during installation, you will find the current value in the network settings in the device's web interface.

Why do I see the image in the browser but Loxone shows only a question mark?

The most common cause is authentication — if the device's firmware requires Digest authentication, Loxone does not support it according to its documentation. The authentication method depends on the firmware version; contact support with the model and firmware version.

Does snap.jpg also work for cameras connected to the recorder's PoE ports?

Yes, via the recorder's address with the channel parameter: http://NVRIPaddress:HTTPport/snap.jpg?channel=1. All new PoE NVR recorders and selected older models support it after a firmware update. The recorder must be on the home screen with the camera preview.

Can I return to an older firmware version with which the snapshot worked?

No, a firmware downgrade is not possible. If you run into a change in the snapshot interface's behaviour after an update, contact support — the behaviour depends on the firmware version and we will assess it individually.

Need detailed help?

This article is part of our Czech support center. For full assistance with PATRONUM camera systems, installation in Czech Republic / Slovakia, or technical questions, contact us directly.

Contact our team
Dispatch within 24 h
In stock and shipping
24-month warranty
Statutory warranty, up to 36 for PRO
Support in Czech
Phone and e-mail
Online payment
Card via Comgate