Skip to content

Commit c77353b

Browse files
authored
adjusted JSON to fit to new Teach-UI input restrictions
1 parent 1da9c1c commit c77353b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

TEACH-UI.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,30 @@
55
### Set volume
66
```
77
Action: <set>
8-
Function: volume
9-
Data: {"number":11}
8+
Function: <volume>
9+
Data: 11
1010
```
1111

1212
### Call SEPIA Mesh-Node from client
1313
```
1414
Action: <on>
15-
Function: meshNode
16-
Data: {"url":"http://localhost:20780", "plugin":"RuntimePlugin", "data":{"command":["echo", "test"]}}
15+
Function: <meshNode>
16+
Data: {"value": {"url":"http://localhost:20780", "plugin":"RuntimePlugin", "data":{"command":["echo", "test"]}}}
1717
```
1818

1919
### Call CLEXI
2020
```
2121
Action: <on>
22-
Function: clexi
23-
Data: {"xtension":"clexi-broadcaster", "data":{"text":"Hello", "sender":"Me"}}
22+
Function: <clexi>
23+
Data: {"value": {"xtension":"clexi-broadcaster", "data":{"text":"Hello", "sender":"Me"}}}
2424
```
2525

2626
## Platform actions (platform_controls)
2727

2828
### Call Android Intent for certain device or browser action
2929
```
30-
Device IDs: { "a1": {"type": "androidIntent", "data": {"action": "android.media.action.MEDIA_PLAY_FROM_SEARCH", "extras": {"query": "Paradise City"} }} }
31-
Browser: { "type": "url", "data": "https://open.spotify.com/track/3YBZIN3rekqsKxbJc9FZko?si=Stqe48xYS52Gim_Lr-JEFg" }
30+
Device IDs: {"value": { "a1": {"type": "androidIntent", "data": {"action": "android.media.action.MEDIA_PLAY_FROM_SEARCH", "extras": {"query": "Paradise City"} }} } }
31+
Browser: {"value": { "type": "url", "data": "https://open.spotify.com/track/3YBZIN3rekqsKxbJc9FZko?si=Stqe48xYS52Gim_Lr-JEFg" } }
3232
```
3333
***Some useful Android intents:***
3434
https://developer.android.com/guide/components/intents-common

0 commit comments

Comments
 (0)