forked from Freeboard/freeboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdashboard.json
108 lines (108 loc) · 2.69 KB
/
dashboard.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
{
"version": 1,
"allow_edit": true,
"plugins": [],
"panes": [
{
"title": "Bitcoin Price",
"width": 1,
"row": {
"2": 1,
"3": 1,
"4": 1,
"5": 1,
"6": 1
},
"col": {
"2": 1,
"3": 1,
"4": 2,
"5": 1,
"6": 1
},
"col_width": 1,
"widgets": [
{
"type": "text_widget",
"settings": {
"title": "",
"size": "big",
"value": "datasources[\"Bitcoin Price\"][\"bpi\"][\"USD\"][\"rate_float\"].toFixed(0);",
"sparkline": true,
"animate": true,
"units": "USD"
}
}
]
},
{
"title": "To Do",
"width": 1,
"row": {
"2": 7,
"3": 7,
"4": 7,
"5": 1,
"6": 1
},
"col": {
"2": 1,
"3": 2,
"4": 3,
"5": 5,
"6": 5
},
"col_width": 2,
"widgets": [
{
"type": "html",
"settings": {
"html": "var result = [];\ndatasources[\"Trello Home\"].forEach(card => {\n result.push(\"<li>\" + card.name + \"</li>\");\n})\nreturn \"<h3><ul style=\\\"list-style-type:disc;\\\">\" + result.join(\"\") + \"</ul></h3>\";",
"height": 2
}
},
{
"type": "html",
"settings": {
"html": "var result = [];\ndatasources[\"Trello Zorg\"].forEach(card => {\n result.push(\"<li>\" + card.name + \"</li>\");\n})\nreturn \"<h3><ul style=\\\"list-style-type:disc;\\\">\" + result.join(\"\") + \"</ul></h3>\";",
"height": 4
}
}
]
}
],
"datasources": [
{
"name": "Bitcoin Price",
"type": "JSON",
"settings": {
"url": "https://api.coindesk.com/v1/bpi/currentprice.json",
"use_thingproxy": true,
"refresh": 20,
"method": "GET"
}
},
{
"name": "Trello Home",
"type": "JSON",
"settings": {
"url": "https://api.trello.com/1/lists/5d369784c3acba2fbdab5d4a/cards?key=1f3602a4baa4f66bc0e15d98e2b79035&token=3bc982008c9eadc903cd4c68276b936d70dac90d418a140f06538e2caac16a0c",
"use_thingproxy": true,
"refresh": 60,
"method": "GET",
"name": "Trello Home"
}
},
{
"name": "Trello Zorg",
"type": "JSON",
"settings": {
"url": "https://api.trello.com/1/lists/5d494a8deafe1432d92292fe/cards?key=1f3602a4baa4f66bc0e15d98e2b79035&token=3bc982008c9eadc903cd4c68276b936d70dac90d418a140f06538e2caac16a0c",
"use_thingproxy": true,
"refresh": 60,
"method": "GET"
}
}
],
"columns": 6
}