Slideshow

The slideshow feature allows displaying a sequence of images on the device's screen. Images are stored on the device and must be in .jpg or .jpeg format, with a maximum of 10 images. After each upload or deletion, the slideshow video is automatically regenerated.

Available on versions V7 and V8.

List slideshow images

Returns the list of image files currently stored on the device.

GET /get_slideshow_images_list.fcgi

Parameters

  • This request has no parameters.

Response

  • images (array): List of image objects. Each object contains:
    • filename (string): Name of the image file.
  • max_files (int): Maximum number of images allowed on the device (always 10).

Request example

$.ajax({
    url: "/get_slideshow_images_list.fcgi?session=" + session,
    type: 'GET',
    contentType: 'application/json'
});

Response example

{
    "images": [
        { "filename": "slide1.jpg" },
        { "filename": "slide2.jpeg" }
    ],
    "max_files": 10
}

Get slideshow image

Downloads a slideshow image stored on the device.

GET /get_slideshow_image.fcgi

Parameters

  • filename (string): Required. Name of the image file to retrieve. Passed as a query string parameter.

Response

  • Binary image file with Content-Type .jpg or .jpeg.

Request example

$.ajax({
    url: "/get_slideshow_image.fcgi?filename=slide1.jpg&session=" + session,
    type: 'GET'
});

Upload slideshow image

Uploads an image to the device's slideshow. The request body must contain the raw binary content of the image. Only .jpg and .jpeg files are accepted. Returns an error if the maximum of 10 images has already been reached or if there is less than 10 MB of free storage space. After a successful upload, the slideshow video is regenerated automatically.

POST /send_slideshow_images.fcgi

Parameters

  • filename (string): Required. Name to assign to the image file. Passed as a query string parameter. Must have .jpg or .jpeg extension.

Response

  • success (bool): true if the file was saved successfully.
  • filename (string): Name of the saved image file.

Request example

$.ajax({
    url: "/send_slideshow_images.fcgi?filename=slide1.jpg&session=" + session,
    type: 'POST',
    contentType: 'application/octet-stream',
    data: [bytes of the image file]
});

Response example

{
    "success": true,
    "filename": "slide1.jpg"
}

Delete slideshow image

Deletes a single image from the device's slideshow. The slideshow video is regenerated automatically after deletion.

POST /delete_slideshow_image.fcgi

Parameters

  • filename (string): Required. Name of the image file to delete. Passed as a query string parameter.

Response

  • success (bool): true if the file was deleted successfully.

Request example

$.ajax({
    url: "/delete_slideshow_image.fcgi?filename=slide1.jpg&session=" + session,
    type: 'POST',
    contentType: 'application/json'
});

Response example

{
    "success": true
}

Remove all slideshow images

Removes all slideshow images, the configuration file, and the generated video from the device. Also notifies the video player that the content has changed.

POST /remove_slideshow_images.fcgi

Parameters

  • This request has no parameters.

Response

  • success (bool): true if all content was removed successfully.

Request example

$.ajax({
    url: "/remove_slideshow_images.fcgi?session=" + session,
    type: 'POST',
    contentType: 'application/json'
});

Response example

{
    "success": true
}