Domotys WTS
  • Installation
  • Views
  • Application
  • Datasheet
  • Installation
  • Receive Node
  • Send Node
  • Protocols
  • Variables
  • Requests
  • Events
  • English
  • Français
  • Installation
  • Views
  • Application
  • Datasheet
  • Installation
  • Receive Node
  • Send Node
  • Protocols
  • Variables
  • Requests
  • Events
  • English
  • Français
  • Protocols
  • Variables
    • Domains
      • action
      • alarm
      • buzzer
      • config
      • date_time
      • domotys
      • heat
      • home
      • home_action
      • information
      • lighting
      • message
      • network
      • opening
      • screen
      • sd
      • theme
      • update
      • view_list
    • Type Definitions
    • ID Definitions
  • Requests
    • Get JSON
    • Set JSON
    • Set States
    • Set States View List
    • Get Files
    • Get Files List
    • Get Screenshot
    • Diverse
  • Events

Get Files

Downloads files from the MicroSD card.

HTTP Request

  • Method: GET
  • URL :
    http://screen-address:8080/api/get/sd/files/{file_path}
  • URL background folder :
    http://screen-address:8080/api/get/sd/image_background/{file_name}
  • URL screen saver folder :
    http://screen-address:8080/api/get/sd/image_screensaver/{file_name}

JSON TCP Request

  • URL :
    /api/get/sd/files/{file_path}
  • URL background folder :
    /api/get/sd/image_background/{file_name}
  • URL screen saver folder :
    /api/get/sd/image_screensaver/{file_name}

HTTP exemple

Request :
GET http://screen-address:8080/api/get/sd/files/sd_folder/image.jpg
Response :

Returns the requested file if it exists. If it doesn't, the server will send a 404 error.

JSON TCP exemple

Request :
{
	"request": {
        "url":"/api/get/sd/files/sd_folder/image.jpg"
    },
    "id":"message-id", //Optional
    "password":"password" //If defined and only for the first request
}
Response :
{
	"request":{
        "response": "STRING_RAW_FILE",
        "content_type":"image/jpeg"
    },
    "id":"message-id" //Returns the received ID if defined.
}
Prev
Set States View List
Next
Get Files List