forked from jac459/metadriver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.js
229 lines (223 loc) · 21.4 KB
/
settings.js
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
var settings =
{"drivers":
[
/* {
name:"Yamaha Network Receiver",
manufacturer:"Yamaha",
version:5,
variables:{
MyStatus:"",
IsMuted:"true",
InputName:"",
InputLabel:"",
InputImage:"",
},
labels:{
"CurrentStatus" : {label:"status", listen:"MyStatus"},
},
buttons:{
"POWER ON": {label:"", type:"http-get", command:"http://192.168.1.24/YamahaExtendedControl/v1/main/setPower?power=on", queryresult:"$.response_code", evalwrite:[{variable:"MyStatus",value:"($Result==0)?\"Receiver On\":\"Command Failed\""}]},
"POWER OFF": {label:"", type:"http-get", command:"http://192.168.1.24/YamahaExtendedControl/v1/main/setPower?power=standby", queryresult:"$.response_code", evalwrite:[{variable:"MyStatus",value:"($Result==0)?\"Receiver On\":\"Command Failed\""}]},
"VOLUME UP": {"label":"", "type":"slidercontrol", "slidername":"VOLUME", "step":"5"},
"VOLUME DOWN": {"label":"", "type":"slidercontrol", "slidername":"VOLUME", "step":"-5"},
"MUTE TOGGLE": {label:"", type:"http-get", command:"http://192.168.1.24/YamahaExtendedControl/v1/main/setMute?enable=$IsMuted", queryresult:"$.response_code", evalwrite:[{variable:"MyStatus",value:"($Result==0)?(($IsMuted==true)?\"Receiver muted\":\"Receiver unmuted\"):\"Command failed\""},
{variable:"IsMuted",value:"($IsMuted==false)?true:false" }]},
"INPUT HDMI 1": {label:"", type:"http-get", command:"http://192.168.1.24/YamahaExtendedControl/v1/main/setInput?input=hdmi1", queryresult:"$.response_code", evalwrite:[{variable:"MyStatus",value:"($Result==0)?\"HDMI 1 set\":\"Command Failed\""}]},
"INPUT HDMI 2": {label:"", type:"http-get", command:"http://192.168.1.24/YamahaExtendedControl/v1/main/setInput?input=hdmi1", queryresult:"$.response_code", evalwrite:[{variable:"MyStatus",value:"($Result==0)?\"HDMI 2 set\":\"Command Failed\""}]},
"INPUT HDMI 3": {label:"", type:"http-get", command:"http://192.168.1.24/YamahaExtendedControl/v1/main/setInput?input=hdmi1", queryresult:"$.response_code", evalwrite:[{variable:"MyStatus",value:"($Result==0)?\"HDMI 3 set\":\"Command Failed\""}]},
"INPUT HDMI 4": {label:"", type:"http-get", command:"http://192.168.1.24/YamahaExtendedControl/v1/main/setInput?input=hdmi1", queryresult:"$.response_code", evalwrite:[{variable:"MyStatus",value:"($Result==0)?\"HDMI 4 set\":\"Command Failed\""}]},
"INPUT HDMI 5": {label:"", type:"http-get", command:"http://192.168.1.24/YamahaExtendedControl/v1/main/setInput?input=hdmi1", queryresult:"$.response_code", evalwrite:[{variable:"MyStatus",value:"($Result==0)?\"HDMI 5 set\":\"Command Failed\""}]},
"INPUT HDMI 6": {label:"", type:"http-get", command:"http://192.168.1.24/YamahaExtendedControl/v1/main/setInput?input=hdmi1", queryresult:"$.response_code", evalwrite:[{variable:"MyStatus",value:"($Result==0)?\"HDMI 6 set\":\"Command Failed\""}]},
"INPUT AV1": {label:"", type:"http-get", command:"http://192.168.1.24/YamahaExtendedControl/v1/main/setInput?input=av1", queryresult:"$.response_code", evalwrite:[{variable:"MyStatus",value:"($Result==0)?\"AV 1 set\":\"Command Failed\""}]},
"INPUT AV2": {label:"", type:"http-get", command:"http://192.168.1.24/YamahaExtendedControl/v1/main/setInput?input=av2", queryresult:"$.response_code", evalwrite:[{variable:"MyStatus",value:"($Result==0)?\"AV 2 set\":\"Command Failed\""}]},
"INPUT AV3": {label:"", type:"http-get", command:"http://192.168.1.24/YamahaExtendedControl/v1/main/setInput?input=av3", queryresult:"$.response_code", evalwrite:[{variable:"MyStatus",value:"($Result==0)?\"AV 3 set\":\"Command Failed\""}]},
},
sliders:{
"VOLUME": {label:"", min : 0, max : 161, unit : "db", type:"http-get", command:"http://192.168.1.24/YamahaExtendedControl/v2/main/setVolume?volume=", statuscommand:"http://192.168.1.24/YamahaExtendedControl/v2/main/getStatus", queryresult:"$.volume"},
},
directories:{
"INPUT": {label:"", feeders: {
"Inputs":{label:"", querylabel:"", type:"http-get", command:"http://192.168.1.24/YamahaExtendedControl/v2/system/getFeatures", queryresult:"$.system.input_list[*]", itemname:"JSON.parse(\"$Result\").id", itemlabel:"\"Yamaha input\"", itemaction:"\"http://192.168.1.24/YamahaExtendedControl/v1/main/setInput?input=\" + JSON.parse(\"$Result\").id", itemimage:"\"https://raw.githubusercontent.com/jac459/metadriver/master/AVReceiver/Input/ThemeStandard/input_\" + JSON.parse(\"$Result\").id + \".jpg\""},
},
},
"DSP": {label:"", feeders: {
"DSP": {label:"", querylabel:"", type:"http-get", command:"http://192.168.1.24/YamahaExtendedControl/v1/main/getSoundProgramList", queryresult:"$.sound_program_list[*]", itemname:"\"$Result\"", itemlabel:"\"Yamaha DSP\"", itemaction:"\"http://192.168.1.24/YamahaExtendedControl/v1/main/setSoundProgram?program=\" + \"$Result\"", itemimage:"\"https://raw.githubusercontent.com/jac459/metadriver/master/AVReceiver/DSP/ThemeStandard/$Result_sce.jpg\""},
}
}
}
},
{
name:"MiTV Box",
manufacturer:"Xiaomi",
version:8,
variables:{
MyStatus:"",
},
labels:{
"CurrentStatus" : {label:"status", listen:"MyStatus"},
},
buttons:{
"CURSOR LEFT": {label:"", type:"http-get", command:"http://192.168.1.33:6095/controller?action=keyevent&keycode=left", queryresult:"$.msg", evalwrite:[{variable:"MyStatus",value:"(\"$Result\"==\"success\")?\"Left pressed\":\"Command Failed\""}]},
"CURSOR RIGHT": {label:"", type:"http-get", command:"http://192.168.1.33:6095/controller?action=keyevent&keycode=right", queryresult:"$.msg", evalwrite:[{variable:"MyStatus",value:"(\"$Result\"==\"success\")?\"Right pressed\":\"Command Failed\""}]},
"CURSOR UP": {label:"", type:"http-get", command:"http://192.168.1.33:6095/controller?action=keyevent&keycode=up", queryresult:"$.msg", evalwrite:[{variable:"MyStatus",value:"(\"$Result\"==\"success\")?\"Up pressed\":\"Command Failed\""}]},
"CURSOR DOWN": {label:"", type:"http-get", command:"http://192.168.1.33:6095/controller?action=keyevent&keycode=down", queryresult:"$.msg", evalwrite:[{variable:"MyStatus",value:"(\"$Result\"==\"success\")?\"Down pressed\":\"Command Failed\""}]},
"CURSOR OK": {label:"", type:"http-get", command:"http://192.168.1.33:6095/controller?action=keyevent&keycode=enter", queryresult:"$.msg", evalwrite:[{variable:"MyStatus",value:"(\"$Result\"==\"success\")?\"Ok pressed\":\"Command Failed\""}]},
"INPUT HDMI 1": {label:"", type:"http-get", command:"http://192.168.1.33:6095/controller?action=changesource&source=HDMI1", queryresult:"$.msg", evalwrite:[{variable:"MyStatus",value:"(\"$Result\"==\"success\")?\"HDMI 1 Source\":\"Command Failed\""}]},
"INPUT HDMI 2": {label:"", type:"http-get", command:"http://192.168.1.33:6095/controller?action=changesource&source=HDMI2", queryresult:"$.msg", evalwrite:[{variable:"MyStatus",value:"(\"$Result\"==\"success\")?\"HDMI 2 Source\":\"Command Failed\""}]},
"INPUT HDMI 3": {label:"", type:"http-get", command:"http://192.168.1.33:6095/controller?action=changesource&source=HDMI3", queryresult:"$.msg", evalwrite:[{variable:"MyStatus",value:"(\"$Result\"==\"success\")?\"HDMI 3 Source\":\"Command Failed\""}]},
"MENU": {label:"", type:"http-get", command:"http://192.168.1.33:6095/controller?action=keyevent&keycode=menu", queryresult:"$.msg", evalwrite:[{variable:"MyStatus",value:"(\"$Result\"==\"success\")?\"Menu pressed\":\"Command Failed\""}]},
"BACK": {label:"", type:"http-get", command:"http://192.168.1.33:6095/controller?action=keyevent&keycode=back", queryresult:"$.msg", evalwrite:[{variable:"MyStatus",value:"(\"$Result\"==\"success\")?\"Back pressed\":\"Command Failed\""}]},
"EXIT": {label:"", type:"http-get", command:"http://192.168.1.33:6095/controller?action=keyevent&keycode=exit", queryresult:"$.msg", evalwrite:[{variable:"MyStatus",value:"(\"$Result\"==\"success\")?\"Exit pressed\":\"Command Failed\""}]},
"VOLUME UP": {label:"", type:"http-get", command:"http://192.168.1.33:6095/controller?action=keyevent&keycode=volumeup", queryresult:"$.msg", evalwrite:[{variable:"MyStatus",value:"(\"$Result\"==\"success\")?\"Volume up\":\"Command Failed\""}]},
"VOLUME DOWN": {label:"", type:"http-get", command:"http://192.168.1.33:6095/controller?action=keyevent&keycode=volumedown", queryresult:"$.msg", evalwrite:[{variable:"MyStatus",value:"(\"$Result\"==\"success\")?\"Volume down\":\"Command Failed\""}]},
"POWER ON": {label:"", type:"http-get", command:"http://192.168.1.33:6095/controller?action=getinstalledapp&count=999&changeIcon=1", queryresult:"$.msg", evalwrite:[{variable:"MyStatus",value:"(\"$Result\"==\"success\")?\"TV is ON\":\"Trying to Switch on by IR\""}], evaldo:[{test:"\"$Result\"==\"success\"", then:"", or:"POWER ON-IR"}]},
"POWER ON-IR": {label:"", type:"http-get", command:"http://192.168.1.26:3000/v1/projects/home/rooms/6394342251295670272/devices/6689940872680701952/macros/6689940872756199425/trigger", queryresult:"$.estimatedDuration", evalwrite:[{variable:"MyStatus",value:"(\"$Result\"==\"2000\")?\"IR called done\":\"Could not call the IR\""}]},
"POWER OFF": {label:"", type:"http-get", command:"http://192.168.1.33:6095/controller?action=keyevent&keycode=power", queryresult:"$.msg", evalwrite:[{variable:"MyStatus",value:"(\"$Result\"==\"success\")?\"OFF pressed\":\"Command Failed\""}]},
},
directories:{
"Programs": {label:"", feeders: {
"Programs":{label:"", querylabel:"", type:"http-get", command:"http://192.168.1.33:6095/controller?action=getinstalledapp&count=999&changeIcon=1", queryresult:"$.data.AppInfo[*]", itemname:"JSON.parse(\"$Result\").AppName", itemlabel:"\"Android TV App\"", itemaction:"\"http://192.168.1.33:6095/controller?action=startapp&type=packagename&packagename=\" + JSON.parse(\"$Result\").PackageName", itemimage:"JSON.parse(\"$Result\").IconURL"},
},
},
}
},
/* {
"name":"LG TV",
"manufacturer":"LG",
"version":4,
"buttons":{
"POWER ON": {"label":"", "type":"wol", "command":"10:08:C1:33:FA:4E", "queryresult":"", "expectedresult":"", "fallbackbutton":""},
"POWER OFF": {"label":"", "type":"http-post", "command":{"post":"http://localhost:1234/command/off", "message":""}, "queryresult":"", "expectedresult":"OK", "fallbackbutton":""},
"CURSOR LEFT": {"label":"", "type":"http-post", "command":{"post":"http://localhost:1234/command/left", "message":""}, "queryresult":"", "expectedresult":"OK", "fallbackbutton":""},
"CURSOR RIGHT": {"label":"", "type":"http-post", "command":{"post":"http://localhost:1234/command/right", "message":""}, "queryresult":"", "expectedresult":"OK", "fallbackbutton":""},
"CURSOR UP": {"label":"", "type":"http-post", "command":{"post":"http://localhost:1234/command/top", "message":""}, "queryresult":"", "expectedresult":"OK", "fallbackbutton":""},
"CURSOR DOWN": {"label":"", "type":"http-post", "command":{"post":"http://localhost:1234/command/bottom", "message":""}, "queryresult":"", "expectedresult":"OK", "fallbackbutton":""},
"CURSOR ENTER": {"label":"", "type":"http-post", "command":{"post":"http://localhost:1234/command/ok", "message":""}, "queryresult":"", "expectedresult":"OK", "fallbackbutton":""},
"VOLUME UP": {"label":"", "type":"http-post", "command":{"post":"http://localhost:1234/command/sound-plus", "message":""}, "queryresult":"", "expectedresult":"OK", "fallbackbutton":""},
"VOLUME DOWN": {"label":"", "type":"http-post", "command":{"post":"http://localhost:1234/command/sound-minus", "message":""}, "queryresult":"", "expectedresult":"OK", "fallbackbutton":""},
"MENU": {"label":"", "type":"http-post", "command":{"post":"http://localhost:1234/command/home", "message":""}, "queryresult":"", "expectedresult":"OK", "fallbackbutton":""},
"BACK": {"label":"", "type":"http-post", "command":{"post":"http://localhost:1234/command/back", "message":""}, "queryresult":"", "expectedresult":"OK", "fallbackbutton":""},
},
"directories":{
"Applications": {"label":"", "feeders": {
"Applications":{"label":"", "queryname":"$.data.AppInfo[*].PackageName", "type":"http-get", "command":"http://192.168.1.33:6095/controller?action=getinstalledapp&count=999&changeIcon=1", "actioncommand":"http://192.168.1.33:6095/controller?action=startapp&type=packagename&packagename=", "queryname":"$.data.AppInfo[*].AppName", "imageurl":"", "imageurlpost":"", "queryimage":"$.data.AppInfo[*].IconURL"},
}
}
}
},
*/
{
name:"Plex Remote",
manufacturer:"Plex",
version:3,
variables:{
Token:"Ea6Q4hnybqknyhwXEnS4",
PlexIP:"192.168.1.138",
MyStatus:"Ready",
},
labels:{
"CurrentStatus" : {label:"status", listen:"MyStatus"},
},
buttons:{
},
directories:{
Library: {label:"", feeders: {
"Pictures":{label:"Gallery", commandset: [{type:"http-get-soap", command:"http://192.168.1.138:32400/library/sections?X-Plex-Token=$Token", queryresult:"/MediaContainer/Directory", itemname:"DYNAMIK new xmldom().parseFromString(\"$Result\").getAttribute(\"title\")", itemtype: "listitem", itemlabel:"Recipe name", itembrowse:"DYNAMIK new xmldom().parseFromString(\"$Result\").getAttribute(\"title\")", itemimage:"https://raw.githubusercontent.com/jac459/metadriver/master/AVReceiver/rooms.jpg", evalnext:[{test:true, then:"Devices", or:"Rooms"}], evalwrite:[{variable:"RoomKey",value:""}]},
]},
}
}
}
},
{name:"Brain Navigator",
manufacturer:"JAC",
version:20,
variables:{
MyStatus:"",
RoomKey:"",
DeviceKey:"",
MyPicture:"https://scontent.fsin5-1.fna.fbcdn.net/v/t1.0-9/s960x960/83258087_10156692837451196_8122948557457063936_o.jpg?_nc_cat=109&_nc_sid=8024bb&_nc_ohc=pW8b6Dvy070AX9XJIND&_nc_ht=scontent.fsin5-1.fna&_nc_tp=7&oh=d5f9ac574e9e31977f23791c1848e501&oe=5F4490D2"
},
images:{
"MyCover" : {label:"", size : "small", listen:"MyPicture"},
"MyCover2" : {label:"", size : "large", listen:"MyPicture"}
},
labels:{
"CurrentStatus" : {label:"status", listen:"MyStatus"},
},
buttons:{
"CURSOR LEFT": {label:"", type:"static", command:"{name:\"\"}", queryresult:"", evalwrite:[{variable:"MyPicture",value:"DYNAMIK (true)?\"https://scontent.fsin5-1.fna.fbcdn.net/v/t1.0-9/s960x960/83258087_10156692837451196_8122948557457063936_o.jpg?_nc_cat=109&_nc_sid=8024bb&_nc_ohc=pW8b6Dvy070AX9XJIND&_nc_ht=scontent.fsin5-1.fna&_nc_tp=7&oh=d5f9ac574e9e31977f23791c1848e501&oe=5F4490D2\":\"Command Failed\""}]},
"CURSOR ENTER": {label:"", type:"static", command:"{name:\"\"}", queryresult:"", evalwrite:[{variable:"MyPicture",value:"DYNAMIK (true)?\"https://upload.wikimedia.org/wikipedia/commons/5/58/The_Chemical_Brothers_performing_in_Barcelona%2C_Spain_%282007%29.jpg\":\"Command Failed\""}]},
"CURSOR RIGHT": {label:"", type:"static", command:"{name:\"\"}", queryresult:"", evalwrite:[{variable:"MyPicture",value:"DYNAMIK (true)?\"https://dancingastronaut.com/wp-content/uploads/2015/05/chemical-brothers.jpg\":\"Command Failed\""}]},
},
directories:{
"recipes": {label:"", feeders: {
"Rooms":{label:"Rooms list", commandset: [{type:"http-get", command:"http://192.168.1.151:3000/v1/projects/home/rooms/", queryresult:"$.*", itemname:"DYNAMIK JSON.parse(\"$Result\").name", itemtype: "listitem", itemlabel:"Recipe name", itembrowse:"DYNAMIK JSON.parse(\"$Result\").key", itemimage:"https://raw.githubusercontent.com/jac459/metadriver/master/AVReceiver/rooms.jpg", evalnext:[{test:true, then:"Devices", or:"Rooms"}], evalwrite:[{variable:"RoomKey",value:"$Result"}]},
{type:"http-get", command:"http://192.168.1.151:3000/v1/projects/home/rooms/", queryresult:"$.*", itemname:"DYNAMIK JSON.parse(\"$Result\").name", itemtype: "tile", itemlabel:"Recipe name", itembrowse:"DYNAMIK JSON.parse(\"$Result\").key", itemimage:"https://raw.githubusercontent.com/jac459/metadriver/master/AVReceiver/rooms.jpg", evalnext:[{test:true, then:"Devices", or:"Rooms"}], evalwrite:[{variable:"RoomKey",value:"$Result"}]},
]},
//"Rooms":{label:"Rooms list", type:"http-get", command:"\"http://192.168.1.151:3000/v1/projects/home/rooms/\"", queryresult:"$.*", itemname:"JSON.parse(\"$Result\").name", itemlabel:"\"Recipe name\"", itembrowse:"JSON.parse(\"$Result\").key", itemimage:"\"https://raw.githubusercontent.com/jac459/metadriver/master/AVReceiver/rooms.jpg\"", evalnext:[{test:true, then:"Devices", or:"Rooms"}], evalwrite:[{variable:"RoomKey",value:"\"$Result\""}]},
"Devices":{label:"Devices list", commandset: [{type:"http-get", command:"http://192.168.1.151:3000/v1/projects/home/rooms/$RoomKey/devices", queryresult:"$.*", itemname:"DYNAMIK JSON.parse(\"$Result\").name", itemlabel:"Recipe name", itembrowse:"DYNAMIK JSON.parse(\"$Result\").key", itemimage:"https://raw.githubusercontent.com/jac459/metadriver/master/AVReceiver/devices.jpg", evalnext:[{test:true, then:"Macros", or:"Devices"}], evalwrite:[{variable:"DeviceKey",value:"$Result"}]},
]},
"Macros":{label:"Macros list", commandset: [{type:"http-get", command:"http://192.168.1.151:3000/v1/projects/home/rooms/$RoomKey/devices/$DeviceKey/macros", queryresult:"$.*", itemname:"DYNAMIK JSON.parse(\"$Result\").name", itemlabel:"Recipe name", itemaction:"DYNAMIK \"http://192.168.1.130:3000/v1/projects/home/rooms/$RoomKey/devices/$DeviceKey/macros/\" + JSON.parse(\"$Result\").key + \"/trigger\"", itemimage:"https://raw.githubusercontent.com/jac459/metadriver/master/AVReceiver/Neeo_logo.jpg"},
]},
},
},
},
},
/* {"name":"Volumio 2",
"manufacturer":"Volumio",
"version":1,
variables:{
MyStatus:"",
},
labels:{
"CurrentStatus" : {label:"status", listen:"MyStatus"},
},
buttons:{
"CURSOR LEFT": {label:"", type:"static", command:"{\"\":\"Left\"}", queryresult:"$.*", evalwrite:[{variable:"MyStatus",value:"\"$Result\""}], evaldo:[{test:true, then:"CURSOR RIGHT", or:"CURSOR ENTER"}]},
"CURSOR RIGHT": {label:"", type:"static", command:"{\"\":\"Right\"}", queryresult:"$.*", evalwrite:[{variable:"MyStatus",value:"\"$Result\""}]},
"CURSOR ENTER": {label:"", type:"static", command:"{\"\":\"Enter\"}", queryresult:"$.*", evalwrite:[{variable:"MyStatus",value:"\"$Result\""}]},
},
directories:{
"Collection": {label:"My music", feeders: {
"Artists":{label:"Artists list", type:"http-get", command:"\"http://volumio.local/api/v1/browse?uri=artists://\"", queryresult:"$.navigation.lists[0].items[*]", itemname:"JSON.parse(\"$Result\").title", itemlabel:"\"Artist Collection\"", itembrowse:"JSON.parse(\"$Result\").title", itemimage:"\"http://volumio.local\" + JSON.parse(\"$Result\").albumart", evalnext:[{test:true, then:"Albums", or:""}]},
"Albums":{label:"Albums list", type:"http-get", command:"\"http://volumio.local/api/v1/browse?uri=artists://\" + \"$Result\"", queryresult:"$.*[name,key]", itemname:"\"$Result\"", itemlabel:"\"Recipe name\"", itembrowse:"\"$Result\"", itemimage:"\"\"", evalnext:[{test:true, then:"CURSOR RIGHT", or:"CURSOR ENTER"}]},
},
},
},
},
/* {name:"cli demonstrator",
manufacturer:"JAC",
version:15,
variables:{
CurrentPath:"/home/pi",
ResultPath:"",
},
labels:{
"CurrentStatus" : {label:"", listen:"ResultPath"},
},
buttons:{
"CURSOR OK": {label:"", type:"static", command:"{\"\":\"Final22Value\"}", "queryresult":"$.*", "evaldo":[{"test":"\"$Result\"==\"FinalValue\"","then":"","or":""}], "evalwrite":[{"variable":"ResultPath","value":"$CurrentPath$Result"}]},
},
directories:{
// "Files": {"label":"FileSystem", "type":"cli", "command":"cd @=>CurrentPath<=@ ; find \"$(pwd)\" -maxdepth 1", "actioncommand":"", "queryname":"\n", "imageurl":"", "imageurlpost":"", "queryimage":"", "variable2assign":"CurrentPath"},
},
},
/* {"name":"Volumio2",
"manufacturer":"Volumio",
"version":1,
"variables":{
},
"buttons":{
"CURSOR OK": {"label":"", "type":"cli", "command":"cd @=>CurrentPath<=@ ; pwd", "queryresult":"\n", "expectedresult":"", "fallbackbutton":"", "variable2assign":"CurrentPath"},
},
"directories":{
"Collection": {"label":"My Artists", "feeders": {
"Artists":{"label":"", "querylabel":"", "type":"http-get", "command":"http://volumio.local/api/v1/browse?uri=artists://", "actioncommand":"", "queryname":"$.navigation.lists[0].items[*].title", "imageurl":"http://volumio.local", "imageurlpost":"", "queryimage":"$.navigation.lists[0].items[*].albumart", "variable2assign":"", "nextdatafeeder":"albums"},
"Albums":{"label":"", "querylabel":"", "type":"http-get", "command":"http://volumio.local/api/v1/browse?uri=artists://", "actioncommand":"", "queryname":"$.navigation.lists[0].items[*].title", "imageurl":"http://volumio.local", "imageurlpost":"", "queryimage":"$.navigation.lists[0].items[*].albumart", "variable2assign":"", "nextdatafeeder":"albums"},
}
}
}
}*/
]
}
module.exports = settings;