package/lcd4linux-tew673gru: add a new package for TEW673GRU specific LCD4linux files
[openwrt/svn-archive/archive.git] / utils / lcd4linux-tew673gru / files / lcd4linux_tew673gru.conf
1 # LCD4Linux configuration file for the TRENDnet TEW-673GRU board
2
3 Variables {
4 tick 1500
5 tack 3000
6 minute 60000
7 barstyle 'H'
8 }
9
10 Display Image {
11 Driver 'Image'
12 Format 'PNG'
13 Size '220x176'
14 Font '6x8'
15 Pixel '1+0'
16 Gap '0x0'
17 Border 0
18 background 'ffffff00'
19 foreground 'ffffffff'
20 basecolor '000000'
21 }
22
23 Display TEW673GRU {
24 Driver 'TEW673GRU'
25 Port '/dev/spidev1.0'
26 Mode 1
27 Font '6x8'
28 background 'ffffff00'
29 foreground 'ffffffff'
30 basecolor '000000'
31 }
32
33 Display TEW673GRU_Text {
34 Driver 'TEW673GRU'
35 Port '/dev/spidev1.0'
36 Mode 0
37 background 'ffffff00'
38 foreground 'ffffffff'
39 basecolor '000000'
40 }
41
42 Widget OS {
43 class 'Text'
44 expression '*** '.uname('sysname').' '.uname('release').' ***'
45 width 20
46 align 'M'
47 style 'bold'
48 speed 0
49 update tick
50 }
51
52 Widget CPU {
53 class 'Text'
54 expression uname('machine')
55 prefix 'CPU '
56 width 9
57 align 'L'
58 style 'norm'
59 update tick
60 }
61
62 Widget CPUinfo {
63 class 'Text'
64 expression cpuinfo('model name')
65 prefix ''
66 width 20
67 align 'M'
68 speed 0
69 update tick
70 }
71
72 Widget RAM {
73 class 'Text'
74 expression meminfo('MemTotal')/1024
75 postfix 'MB RAM'
76 width 12
77 precision 1
78 align 'R'
79 update 0
80 }
81
82 Widget Uptime {
83 class 'Text'
84 expression uptime('%d days %H:%M:%S')
85 width 21
86 align 'R'
87 prefix 'Up '
88 update 1000
89 }
90
91 Widget Busy {
92 class 'Text'
93 expression proc_stat::cpu('busy', 500)
94 prefix 'Busy'
95 postfix '%'
96 width 10
97 precision 1
98 align 'R'
99 update tick
100 }
101
102 Widget BusyBar {
103 class 'Bar'
104 expression proc_stat::cpu('busy', 500)
105 expression2 proc_stat::cpu('system', 500)
106 length 10
107 direction 'E'
108 update tack
109 style barstyle
110 }
111
112 Widget Load {
113 class 'Text'
114 expression loadavg(1)
115 prefix 'Load'
116 postfix ' '
117 width 11
118 precision 1
119 align 'R'
120 update tick
121 }
122
123 Widget LoadBar {
124 class 'Bar'
125 expression loadavg(1)
126 max 2.0
127 length 10
128 direction 'E'
129 update tack
130 style barstyle
131 }
132
133 Widget LAN {
134 class 'Text'
135 expression (netdev('eth0.1', 'Rx_bytes', 500)+netdev('eth0.1', 'Tx_bytes', 500))/1024
136 prefix 'LAN'
137 postfix ' '
138 width 11
139 precision 0
140 align 'R'
141 update tick
142 }
143
144 Widget LANBar {
145 class 'Bar'
146 expression netdev('eth0.1', 'Rx_bytes', 500)
147 expression2 netdev('eth0.1', 'Tx_bytes', 500)
148 length 10
149 direction 'E'
150 update tack
151 style barstyle
152 }
153
154 Widget WAN {
155 class 'Text'
156 expression (netdev('eth2', 'Rx_bytes', 500)+netdev('eth2', 'Tx_bytes', 500))/1024
157 prefix 'WAN'
158 postfix ' '
159 width 11
160 precision 0
161 align 'R'
162 update tick
163 }
164
165 Widget WANBar {
166 class 'Bar'
167 expression netdev('eth2', 'Rx_bytes', 500)
168 expression2 netdev('eth2', 'Tx_bytes', 500)
169 length 10
170 direction 'E'
171 update tack
172 style barstyle
173 }
174
175 Widget Background {
176 class 'Image'
177 file '/etc/openwrt_220x176.png'
178 update 0
179 visible 1
180 }
181
182 Layout TEW673GRU {
183 Row5 {
184 Col1 'CPU'
185 Col10 'RAM'
186 }
187 Row7 {
188 Col1 'Busy'
189 Col12 'BusyBar'
190 }
191 Row9 {
192 Col1 'Load'
193 Col12 'LoadBar'
194 }
195 Row11 {
196 Col1 'LAN'
197 Col12 'LANBar'
198 }
199 Row13 {
200 Col1 'WAN'
201 Col12 'WANBar'
202 }
203 Row22 {
204 Col1 'Uptime'
205 }
206 Layer 2 {
207 X1.Y1 'Background'
208 }
209 }
210
211 Layout TEW673GRU_Text {
212 Row1 {
213 Col1 'CPU'
214 Col10 'RAM'
215 }
216 Row2 {
217 Col1 'Busy'
218 Col12 'BusyBar'
219 }
220 Row3 {
221 Col1 'Load'
222 Col12 'LoadBar'
223 }
224 Row4 {
225 Col1 'LAN'
226 Col12 'LANBar'
227 }
228 Row5 {
229 Col1 'WAN'
230 Col12 'WANBar'
231 }
232 Row11 {
233 Col1 'Uptime'
234 }
235 }
236
237 #Display 'Image'
238
239 Display 'TEW673GRU'
240 Layout 'TEW673GRU'
241
242 #Display 'TEW673GRU_Text'
243 #Layout 'TEW673GRU_Text'