Misc

Screenshot via HTTP Request

If, for example, decisions are made on the shop floor on the basis of a visualization, it is necessary to document the decision basis. This can be done, for example, by taking a screenshot of the visualization.

Technically, a screenshot can be extracted directly from the box via an HTTP get request.

This command looks like this for Peakboard 2 boxes:

HTTP Get Request

The request URL is as follows, where GET is used as the method:

[Box name]:40404/api/screenshot

As shown in the diagram, the authorization is Base64 encoded. You can find a corresponding encoder for example here. The authorization string is composed as follows:

pbadmin:Your_device_password

If the request is successful, you receive a screenshot of the current display for further processing from the box.

For Peakboard 1 boxes the command looks slightly different:

HTTP Get Request

The request URL is as follows, where GET is used as the method:

[Box name]:8080/api/iot/screenshot

As shown in the diagram, the authorization is Base64 encoded. You can find a corresponding encoder for example here. The authorization string is composed as follows:

Administrator:Your_device_password

If the request is successful, you receive a screenshot of the current display for further processing from the box.

Be enlightened!

Do you need more support?

Peakboard Youtube icon Visit our YouTube channel

Our numerous videos for beginners and advanced users explain exactly how to design your dashboard.

Peakboard Templates icon Visit the Peakboard Templates

Download our templates for various use cases for free.

Peakboard icon Visit www.peakboard.com

Find out all about Peakboard and browse our different use cases and success stories.