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 JSON

Returns the full JSON or the requested domain defined in the variables section.

HTTP Request

  • Methods : GET/POST
  • URL full JSON : http://screen-address:8080/api/get/json
  • URL domain JSON : http://screen-address:8080/api/get/json/{domain}

JSON TCP Request

  • URL full JSON : /api/get/json
  • URL domain JSON : /api/get/json/{domain}

Parameters

AttributeDescription
passwordapi password (optional)

HTTP full JSON

Request :
GET http://screen-address:8080/api/get/json
Response :
{
    "code":200,
	"domotys": {...},
	"config": {...},
	"information": {...},
	"theme": {...},
	"network": {...},
	"update": {...},
	"screen": {...},
	"date_time": {...},
	"home": {...},
	"home_action": {...},
	"lighting": {...},
	"opening": {...},
	"alarm": {...},
	"action": {...},
	"heat": {...},
	"view_list": {...}, 
	"buzzer": {...},
	"message": {...},
	"sd": {...}
}

HTTP domotys domain

Request :
GET http://screen-address:8080/api/get/json/domotys
Response :
{
    "code":200,
    "model": "wts-04"
}

JSON TCP full JSON

Request :
{
	"request": {
        "url":"/api/get/json"
    },
    "id":"message-id", //Optional
    "password":"password" //If defined and only for the first request
}
Response :
{
	"request":{
        "response": {
			"code": 200,
			"domotys": {...},
			"config": {...},
			"information": {...},
			"theme": {...},
			"network": {...},
			"update": {...},
			"screen": {...},
			"date_time": {...},
			"home": {...},
			"home_action": {...},
			"lighting": {...},
			"opening": {...},
			"alarm": {...},
			"action": {...},
			"heat": {...},
			"view_list": {...}, 
			"buzzer": {...},
			"message": {...},
			"sd": {...}
		},
        "content_type":"application/json"
    },
    "id":"message-id" //Returns the received ID if defined.
}

JSON TCP domotys domain

Request :
{
	"request": {
        "url":"/api/get/json/domotys"
    },
    "id":"message-id", //Optional
    "password":"password" //If defined and only for the first request
}
Response :
{
	"request":{
        "response": {
			"code":200,
			"model":"wts-04"
		},
        "content_type":"application/json"
    },
    "id":"message-id" //Returns the received ID if defined.
}

Next
Set JSON