-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout.json
93 lines (91 loc) · 3.19 KB
/
layout.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
{
"info": {"version": 1, "license": "GPL-2.0-or-later", "author": "Cyril Hrubis <[email protected]>"},
"layout": {
"type": "vbox",
"widgets": [
{
"type": "frame",
"align": "hfill",
"title": "Battery status",
"widget": {
"type": "vbox",
"widgets": [
{"cols": 2, "rows": 1, "rpad": "2 * 0",
"widgets": [
{"type": "label", "halign": "right", "tattr": "bold", "text": "Status:"},
{"type": "label", "uid": "status", "text": "Unknown"}
]
},
{"cols": 3, "rows": 4,
"rpad": "5 * 0",
"widgets": [
null,
{"type": "label", "halign": "right", "tattr": "bold", "text": "Voltage:"},
{"type": "label", "halign": "right", "tattr": "bold", "text": "Current:"},
{"type": "label", "halign": "right", "tattr": "bold", "text": "Power:"},
{"type": "label", "halign": "right", "tattr": "bold", "text": "now", "align": "center"},
{"type": "label", "halign": "right", "uid": "voltage_now", "text": "00.000 V"},
{"type": "label", "halign": "right", "uid": "current_now", "text": "0.000 A"},
{"type": "label", "halign": "right", "uid": "power_now", "text": "00000 mW"},
{"type": "label", "halign": "right", "tattr": "bold", "text": "avg", "align": "center"},
{"type": "label", "halign": "right", "uid": "voltage_avg", "text": "00.000 V"},
{"type": "label", "halign": "right", "uid": "current_avg", "text": "0.000 A"},
{"type": "label", "halign": "right", "uid": "power_avg", "text": "00000 mW"}
]
}
]
}
},
{
"type": "frame",
"align": "fill",
"title": "Batttery energy",
"widget": {
"type": "vbox",
"align": "hfill",
"widgets": [
{
"cols": 2,
"rows": 4,
"rpad": "4 * 0, 1",
"widgets": [
{"type": "label", "halign": "right", "tattr": "bold", "text": "State now:"},
{"type": "label", "halign": "right", "tattr": "bold", "text": "State full:"},
{"type": "label", "halign": "right", "tattr": "bold", "text": "State design:"},
{"type": "label", "halign": "right", "tattr": "bold", "text": "Avg time rem:"},
{"type": "label", "uid": "state_now", "text": " 0000.000 mWh"},
{"type": "label", "uid": "state_full", "text": " 0000.000 mWh"},
{"type": "label", "uid": "state_design", "text": " 0000.000 mWh"},
{"type": "label", "uid": "time_rem", "text": "00:00:00"}
]
},
{"type": "pbar", "uid": "energy_pbar", "unit": "percents", "align": "fill"}
]
}
},
{
"type": "frame",
"align": "fill",
"title": "Battery wear",
"widget": {
"type": "vbox",
"align": "hfill",
"widgets": [
{
"cols": 2,
"rows": 2,
"rpad": "2 * 0, 1",
"widgets": [
{"type": "label", "halign": "right", "tattr": "bold", "text": "Technology:"},
{"type": "label", "halign": "right", "tattr": "bold", "text": "Cycle count:"},
{"type": "label", "uid": "technology", "text": "Unknown"},
{"type": "label", "uid": "cycle_count", "text": "Unknown"}
]
},
{"type": "pbar", "uid": "wear_pbar", "unit": "percents", "align": "fill"}
]
}
}
]
}
}