1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
| {
"info": {
"_postman_id": "83506d9f-335f-4aaa-a582-5949a3bd74b6",
"name": "Slide HTTP (Local) API V0.9",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Slide.GetInfo",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{slide_ip}}/rpc/Slide.GetInfo",
"host": [
"{{slide_ip}}"
],
"path": [
"rpc",
"Slide.GetInfo"
]
},
"description": "Request basic information from the device. Please note, output of identifiers (device name etc) is incomplete for now. \nWe're working hard to add these data points, in the meantime we recommend you take \"slide_id\" as unique identifier and bind it to a human-readable name on your end.\n\nUse \"pos\" parameter to obtain current curtain position. Output is a floating point between 0 and 1.\n0 is curtain(s) fully open, 1 is curtain(s) fully closed\n\nUse \"touch_go\" parameter to see if T&G is currently enabled or disabled. (The ability to toggle this feature will be added in the next version)."
},
"response": []
},
{
"name": "Slide.Calibrate",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{slide_ip}}/rpc/Slide.Calibrate",
"host": [
"{{slide_ip}}"
],
"path": [
"rpc",
"Slide.Calibrate"
]
},
"description": "(Re)calibrate your curtains.\n\nOverwrites current calibration settings!"
},
"response": []
},
{
"name": "Slide.SetPos",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"pos\": 0\n}"
},
"url": {
"raw": "{{slide_ip}}/rpc/Slide.SetPos",
"host": [
"{{slide_ip}}"
],
"path": [
"rpc",
"Slide.SetPos"
]
},
"description": "Request Slide to move your curtain to a certain position.\n\nInput is a floating point between 0 and 1. \n\n0 is curtain(s) fully open, 1 is curtain(s) fully closed"
},
"response": []
},
{
"name": "Slide.Stop",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{slide_ip}}/rpc/Slide.Stop",
"host": [
"{{slide_ip}}"
],
"path": [
"rpc",
"Slide.Stop"
]
},
"description": "This will stop the motor from moving.\n\n(Note: call will also respond with ' success' if the motor is not moving)"
},
"response": []
},
{
"name": "Slide.Config.WiFi",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"ssid\": \"YourNewSSID\",\n\t\"pass\":\"YourSuperSecretSSIDPassword\"\n}"
},
"url": {
"raw": "{{slide_ip}}/rpc/Slide.Config.WiFi",
"host": [
"{{slide_ip}}"
],
"path": [
"rpc",
"Slide.Config.WiFi"
]
},
"description": "Allows you to update the WiFi credentials that your Slide connects to."
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"id": "b05a27b6-ac23-4d81-be49-0d66a6f2f7dc",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "73694967-2029-40fc-a1fc-c8d47b31ac3b",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"protocolProfileBehavior": {}
} |