-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.sample.json
45 lines (45 loc) · 1.06 KB
/
config.sample.json
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
{
"01:23:AB:CD": {
"name": "A very nice 4-byte NUID tag, triggering 2 actions: playing a playlist and setting the volume.",
"ondetect": [
{
"type": "curl",
"url": "http://localhost:3000/api/v1/commands/?cmd=playplaylist&name=my_playlist_1"
},
{
"type": "curl",
"url": "http://localhost:3000/api/v1/commands/?cmd=volume&volume=40"
}
]
},
"01:23:45:67:89:0A:BC": {
"name": "An even nicer 7-byte UID tag",
"ondetect": [
{
"type": "curl",
"url": "http://localhost:3000/api/v1/commands/?cmd=playplaylist&name=my_playlist_2"
}
],
"onremove": [
{
"type": "curl",
"url": "http://localhost:3000/api/v1/commands/?cmd=pause"
}
],
"onredetect": [
{
"type": "curl",
"url": "http://localhost:3000/api/v1/commands/?cmd=play"
}
]
},
"AA:BB:CC:DD:EE:FF:01": {
"name": "This tag is also nice",
"ondetect": [
{
"type": "command",
"command": "sudo shutdown -h now"
}
]
}
}