Main features

The script implements the SDK method for taking a screenshot with figures.

General view of a GET request:

https://server_ip:sdk_port/s/screenshots/get?server_guid=server_guid&channel_guid=channel_guid

Mandatory parameters:

  • server_ip - server's ip-address
  • sdk_port - SDK port
  • server_guid - server's GUID
  • channel_guid - channel's GUID


GUIDs

To get the Server and Channel GUIDs: 
open Trassir Server settings -> press F4 to open engineer menu -> navigate to required channel -> click on any parameter:



Also possible via SDK requests - https://www.dssl.ru/files/trassir/manual/en/sdk-commands.html

Non-mandatory parameters:

  • dt - date and time in YYYYMMDD_HHMMSS  format, the current date and time by default
  • figures - to save with figures (1) or without figures (0), default is 0
  • file_name - name with file extension, default "channel name (date time)"

An example for getting a screenshot for 2020/04/15 11:40:31 with figures:

https://server_ip:sdk_port/s/screenshots/get?server_guid=server_guid&channel_guid=channel_guid&dt=20200415_114031&figures=1

As a response to the request, a frame will be received from the specified channel with figures, the screenshot from the HDD will be deleted.

When requesting a screenshot without specifying the date and time but with the figures=1 parameter, it may turn out without displaying the figures because the screenshot is created online.

With figures, it is pulled from the archive and one must request screenshots indicating the time at least from the current with -5 seconds.

Installation:

Add script in Automation  Create new script... → Load example... → From file...

After the loading, press "Save and Run" and configure the script's settings.

  • Нет меток