-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathsettings-schema.json
404 lines (356 loc) · 9.97 KB
/
settings-schema.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
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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
{
"top" : {
"type" : "header",
"description" : "Weather configuration"
},
"webservice" : {
"type": "combobox",
"default" : "bbc",
"description" : "Data service",
"options" : {
"BBC" : "bbc",
"Open Weather Map (requires API key)": "owm",
"Open Weather Map Free (requires API key)": "owm2",
"Wunderground (requires API key)": "wunderground",
"World Weather Online (deprecated) (requires API key)": "wwo",
"World Weather Online Premium (requires API key)": "wwo2",
"APIXU (requires API key)": "apixu",
"Forecast.io (requires API key)" : "forecast",
"weather.com (deprecated)" : "twc",
"meteoblue (requires API key)" : "meteoblue"
},
"tooltip" : "Select the data service you wish to use"
},
"stationID": {
"type" : "entry",
"default" : "2643743",
"description" : "Location",
"tooltip" : "Set your location here"
},
"apikey": {
"type" : "entry",
"default" : "",
"description" : "API key",
"tooltip" : "Required for some services only. Enter your API key for your chosen service"
},
"tunits" : {
"type": "combobox",
"default" : "C",
"description" : "Temperature measurement unit",
"options" : {
"Celsius" : "C",
"Fahrenheit" : "F"
},
"tooltip" : "Measurement units used to display temperature"
},
"wunits" : {
"type": "combobox",
"default" : "mph",
"description" : "Wind speed measurement unit",
"options" : {
"mph" : "mph",
"km/h" : "kph",
"knots": "knots",
"m/s": "mps"
},
"tooltip" : "Measurement units used to display wind speed"
},
"punits" : {
"type": "combobox",
"default" : "mb",
"description" : "Pressure measurement unit",
"options" : {
"mb" : "mb",
"in (Hg)" : "in",
"mm (Hg)": "mm",
"kPa": "kpa"
},
"tooltip" : "Measurement units used to display atmospheric pressure"
},
"userno" : {
"type" : "spinbutton",
"default" : 3,
"min" : 2,
"max" : 7,
"step" : 1,
"units" : "days",
"description" : "Show forecast for",
"tooltip" : "The number of days of forecast to display. Note that not all services support all values"
},
"refreshtime" : {
"type" : "spinbutton",
"default" : 30,
"min" : 10,
"max" : 90,
"step" : 5,
"units" : "minutes",
"description" : "Refresh forecast every",
"tooltip" : "Period between refreshing forecasts. Note that not all services support lower refresh times"
},
"sep1" : {
"type" : "separator"
},
"display" : {
"type" : "header",
"description" : "Optional items to display (not all options are supported by all services)"
},
"display__meta__country" : {
"type" : "checkbox",
"default" : false,
"description": "Country",
"tooltip": "Check to display the country"
},
"display__cc__weather" : {
"type" : "checkbox",
"default" : true,
"description": "Current weather and icon",
"tooltip": "Check to display the current weather and large icon"
},
"display__cc__pressure" : {
"type" : "checkbox",
"default" : true,
"description": "Current pressure",
"tooltip": "Check to display the current pressure"
},
"display__cc__humidity" : {
"type" : "checkbox",
"default" : true,
"description": "Current humidity",
"tooltip": "Check to display the current humidity"
},
"display__cc__wind_speed" : {
"type" : "checkbox",
"default" : true,
"description": "Current wind",
"tooltip": "Check to display the current wind"
},
"display__cc__feelslike" : {
"type" : "checkbox",
"default" : true,
"description": "Current 'feels like'",
"tooltip": "Check to display the current apparent temperature"
},
"display__cc__visibility" : {
"type" : "checkbox",
"default" : false,
"description": "Current visibility",
"tooltip": "Check to display the current visibility"
},
"display__forecast__maximum_temperature" : {
"type" : "checkbox",
"default" : true,
"description": "Forecast maximum",
"tooltip": "Check to display the forecast maximum temperature"
},
"display__forecast__minimum_temperature" : {
"type" : "checkbox",
"default" : true,
"description": "Forecast minimum",
"tooltip": "Check to display the forecast minimum temperature"
},
"display__forecast__wind_speed" : {
"type" : "checkbox",
"default" : true,
"description": "Forecast wind speed",
"tooltip": "Check to display the forecast wind speed"
},
"display__forecast__wind_direction" : {
"type" : "checkbox",
"default" : true,
"description": "Forecast wind direction",
"tooltip": "Check to display the forecast wind direction"
},
"display__forecast__pressure" : {
"type" : "checkbox",
"default" : false,
"description": "Forecast pressure",
"tooltip": "Check to display the forecast pressure"
},
"display__forecast__humidity" : {
"type" : "checkbox",
"default" : false,
"description": "Forecast humidity",
"tooltip": "Check to display the forecast humidity"
},
"sep2" : {
"type" : "separator"
},
"styling" : {
"type" : "header",
"description" : "Desklet style"
},
"zoom" : {
"type" : "spinbutton",
"default" : 1.0,
"min" : 0.5,
"max" : 2.0,
"step" : 0.1,
"units" : "times",
"description" : "Zoom by",
"tooltip" : "Change the size of the desklet"
},
"layout" : {
"type": "combobox",
"default": "0",
"description" : "Layout",
"options" : {
"Horizontal": "0",
"Vertical": "1"
},
"tooltip": "Set the overall layout of the desklet"
},
"iconstyle" : {
"type": "combobox",
"default": "light",
"description" : "Icon style",
"options" : {
"Colorful": "colourful",
"Dark": "dark",
"Light": "light",
"Flat colorful": "flat_colourful",
"Flat black": "flat_black",
"Flat white": "flat_white",
"VClouds" : "vclouds",
"Novacon" : "novacon",
"Weezle" : "weezle",
"Meteocons 1" : "meteo_outline",
"Meteocons 2" : "meteo_filled",
"Sketchy" : "sketchy",
"User defined" : "user"
},
"tooltip": "Select the style for the weather icons"
},
"citystyle" : {
"type" : "checkbox",
"default" : false,
"description": "Bold city name",
"tooltip": "Check to display the city name in bold"
},
"overrideTheme": {
"type" : "checkbox",
"default" : true,
"description": "Override desktop theme (enables the settings below)",
"tooltip": "Check this to override the desktop theme and configure the appearance manually"
},
"transparency" : {
"type" : "scale",
"indent": true,
"dependency": "overrideTheme",
"default" : 0.5,
"min" : 0.0,
"max" : 1.0,
"step" : 0.05,
"description" : "Transparency",
"tooltip" : "Set the transparency of the desklet"
},
"textcolor" : {
"type": "colorchooser",
"indent": true,
"dependency": "overrideTheme",
"default" : "rgb(255,255,255)",
"description" : "Text color",
"tooltip" : "Click the button to select a new text color"
},
"bgcolor" : {
"type": "colorchooser",
"indent": true,
"dependency": "overrideTheme",
"default" : "rgb(0,0,0)",
"description" : "Background color",
"tooltip" : "Click the button to select a new background color"
},
"cornerradius" : {
"type" : "spinbutton",
"indent": true,
"dependency": "overrideTheme",
"default" : 12.0,
"min" : 0,
"max" : 50.0,
"step" : 1,
"units" : "px",
"description" : "Corner radius",
"tooltip" : "Radius for rounding the desklet's corners"
},
"border" : {
"type" : "checkbox",
"indent": true,
"dependency": "overrideTheme",
"default" : false,
"description": "Show border",
"tooltip": "Check this to turn border on/off"
},
"bordercolor" : {
"type" : "colorchooser",
"default" : "white",
"description" : "Border color",
"indent": true,
"dependency" : "border",
"tooltip" : "Select the color for the border. Only available if the 'Border' checkbox is enabled"
},
"borderwidth" : {
"type" : "spinbutton",
"default" : 2,
"min" : 1,
"max" : 20,
"step" : 1,
"units" : "px",
"description" : "Border width",
"indent": true,
"dependency": "border",
"tooltip" : "Select the width of the border. Only available if the 'Border' checkbox is enabled"
},
"sep3" : {
"type" : "separator"
},
"locationlookups" : {
"type" : "header",
"description" : "Location display settings"
},
"locsrc" : {
"type": "combobox",
"default": "service",
"description" : "Get displayed location from",
"options" : {
"Data service": "service",
"Google": "google"
},
"tooltip": "The source of the text displayed as the current location. Yahoo! and Google may offer city names in other languages"
},
"manuallocation" : {
"type" : "entry",
"default" : "",
"description" : "Manually override displayed location",
"tooltip" : "Set your city name manually."
},
"sep4" : {
"type" : "separator"
},
"experimental" : {
"type" : "header",
"description" : "Experimental and buggy features (read documentation!!)"
},
"experimental_enabled" : {
"type" : "checkbox",
"default" : false,
"description": "Enable experimental features",
"tooltip": "Check this to enable experimental and buggy features"
},
"gravity" : {
"type": "combobox",
"default": 0,
"dependency": "experimental_enabled",
"description" : "Anchor desklet by",
"options" : {
"Default": 0,
"Top left": 8,
"Left center": 7,
"Bottom left": 6,
"Bottom center": 5,
"Bottom right": 4,
"Right center": 3,
"Top right" : 2,
"Top center" : 1
},
"tooltip": "Select the point on the desklet to which it is anchored. This point will remain static as the desklet grows and shrinks"
}
}