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 List

Returns the list of files on the MicroSD card.

HTTP Request

  • Methods: GET/POST
  • URL: http://screen-address:8080/api/get/json/sd/files

JSON TCP Request

  • URL: /api/get/json/sd/files

HTTP response exemple

{
    "code":200,
	"files": [
        [
            "fodler/folder2",
            "file.ext",
            "1",
            "37523"
        ],
        [
            "fodler",
            "folder2",
            "0",
            "0"
        ],
        [
            "",
            "folder",
            "0",
            "0"
        ]
    ]
}

JSON TCP exemple

Request :
{
	"request": {
        "url":"/api/get/json/sd/files"
    },
    "id":"message-id", //Optional
    "password":"password" //If defined and only for the first request
}
Response :
{
	"request":{
        "response": {
            "code": 200,
            "files": [
            	[
            		"fodler/folder2",
            		"file.ext",
            		"1",
            		"37523"
            	],
            	[
            		"fodler",
            		"folder2",
            		"0",
            		"0"
            	],
            	[
            		"",
            		"folder",
            		"0",
            		"0"
            	]
            ]
        },
        "content_type":"application/json"
    },
    "id":"message-id" //Returns the received ID if defined.
}

Files array content

The files array contains elements in array format:

[
	"fodler/folder2",
	"file.ext",
	"1",
	"37523"
],
  • Type: Array
  • Size: 4

Item 0

File folder.

  • Type: String

Item 1

File name.

  • Type: String

Item 2

File type.

  • Type: String
  • Value:
    0 : Folder
    1 : File

Item 3

File size.

  • Type: String
Prev
Get Files
Next
Get Screenshot