~siretart/lcd4linux/debian

« back to all changes in this revision

Viewing changes to lcd4linux.conf.sample

  • Committer: Reinhard Tartler
  • Date: 2011-04-27 17:24:15 UTC
  • mto: This revision was merged to the branch mainline in revision 750.
  • Revision ID: siretart@tauware.de-20110427172415-6n4aptmvmz0eztvm
Tags: upstream-0.11.0~svn1143
ImportĀ upstreamĀ versionĀ 0.11.0~svn1143

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#  $Id: lcd4linux.conf.sample 1133 2010-11-19 09:02:34Z harbaum $
 
2
#  $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/lcd4linux.conf.sample $
 
3
 
 
4
 
 
5
Variables {
 
6
   tick 500
 
7
   tack 100
 
8
   minute 60000
 
9
}
 
10
 
 
11
Display G15 {
 
12
    Driver 'G-15'
 
13
    Font   '6x8'
 
14
    Contrast 10
 
15
    Inverted 0
 
16
    UInput '/dev/input/uinput'
 
17
    SingleKeyPress 1
 
18
}
 
19
 
 
20
 
 
21
Display SerDispLib {
 
22
    Driver 'serdisplib'
 
23
    Port 'PAR:/dev/parports/0'
 
24
    #Port '/dev/tts/0'  
 
25
    Model 'OPTREX323'
 
26
    Options ''
 
27
}
 
28
 
 
29
 
 
30
Display Trefon {
 
31
    Driver 'TREFON'
 
32
    Size '16x2'
 
33
    Backlight 1
 
34
    Icons 1
 
35
}
 
36
 
 
37
 
 
38
Display LCD-Linux {
 
39
    Driver 'LCD-Linux'
 
40
    Size '20x2'
 
41
    UseBusy 0
 
42
}
 
43
 
 
44
Display IRLCD {
 
45
    Driver 'IRLCD'
 
46
    Size '16x2'
 
47
    Backlight 0
 
48
    Icons 1
 
49
}
 
50
 
 
51
Display LCD2USB {
 
52
    Driver 'LCD2USB'
 
53
    Size '20x2'
 
54
    Backlight 1
 
55
    Icons 1
 
56
}
 
57
 
 
58
Display GLCD2USB {
 
59
    Driver 'GLCD2USB'
 
60
    Brightness 255
 
61
}
 
62
 
 
63
Display ABP08-16x3 {
 
64
    Driver  'LW_ABP'
 
65
    Port '/dev/tts/0'
 
66
    Speed 19200
 
67
    Size    '16x3'
 
68
}
 
69
 
 
70
Display LCD2041 {
 
71
    Driver 'MatrixOrbital'
 
72
    Model 'LCD2041'
 
73
    Port '/dev/tts/0'
 
74
    Speed 19200
 
75
    Contrast 160
 
76
}
 
77
 
 
78
Display LK202 {
 
79
    Driver 'MatrixOrbital'
 
80
    Model 'LK202-24-USB'
 
81
    Port '/dev/tts/USB0'
 
82
    Speed 19200
 
83
    Contrast 256/2
 
84
}
 
85
 
 
86
Display LK204 {
 
87
    Driver 'MatrixOrbital'
 
88
    Model 'LK204-24-USB'
 
89
    Port '/dev/usb/tts/0'
 
90
#   Port '/dev/tts/0'
 
91
    Speed 19200
 
92
    Contrast 256/2
 
93
}
 
94
 
 
95
 
 
96
Display MI240 {
 
97
    Driver 'MilfordInstruments'
 
98
    Model 'MI240'
 
99
    Port '/dev/tts/0'
 
100
    Speed 19200
 
101
}
 
102
 
 
103
 
 
104
Display CW12232 {
 
105
    Driver 'Cwlinux'
 
106
    Model 'CW12232'
 
107
    Port '/dev/usb/tts/0'
 
108
    Speed 19200
 
109
    Brightness 2
 
110
    Icons 1
 
111
}
 
112
 
 
113
 
 
114
Display CF631 {
 
115
    Driver 'Crystalfontz'
 
116
    Model '631'
 
117
    Port '/dev/tts/USB0'
 
118
    Speed 115200
 
119
    Contrast 95
 
120
    Backlight 50
 
121
    Icons 1
 
122
}
 
123
 
 
124
Display CF632 {
 
125
    Driver 'Crystalfontz'
 
126
    Model '632'
 
127
    Port '/dev/tts/0'
 
128
    Speed 19200
 
129
    Icons 1
 
130
}
 
131
 
 
132
Display CF633 {
 
133
    Icons 1
 
134
    Driver 'Crystalfontz'
 
135
    Model '633'
 
136
    Port '/dev/tts/0'
 
137
    Speed 19200
 
138
    Contrast 16
 
139
    Backlight 50
 
140
}
 
141
 
 
142
Display CF635 {
 
143
    Icons 1
 
144
    Driver 'Crystalfontz'
 
145
    Model '635'
 
146
    Port '/dev/ttyUSB0'
 
147
    Speed 115200
 
148
    Contrast 100
 
149
    Backlight 128
 
150
}
 
151
 
 
152
Display Curses {
 
153
    Driver 'Curses'
 
154
    Size '20x6'
 
155
}
 
156
 
 
157
# generic HD44780 display (LCD4Linux wiring)
 
158
Display HD44780-generic {
 
159
    Driver 'HD44780'
 
160
    Model 'generic'
 
161
    Port '/dev/parports/0'      
 
162
    Size '8x2'
 
163
    asc255bug 0
 
164
    GPOs 8
 
165
    Wire {
 
166
        RW      'GND'
 
167
        RS      'AUTOFD'
 
168
        ENABLE  'STROBE'
 
169
        ENABLE2 'GND'
 
170
        GPO     'INIT'
 
171
        POWER   'GND'
 
172
    }
 
173
}
 
174
 
 
175
# generic HD44780 display (WinAmp wiring)
 
176
Display HD44780-winamp {
 
177
    Driver 'HD44780'
 
178
    Model 'generic'
 
179
    UseBusy 1
 
180
    Port '/dev/parports/0'      
 
181
    Size '20x4'
 
182
    asc255bug 1
 
183
    Wire {
 
184
        RW      'AUTOFD'
 
185
        RS      'INIT'
 
186
        ENABLE  'STROBE'
 
187
        ENABLE2 'GND'
 
188
        GPO     'GND'
 
189
        POWER   'GND'
 
190
    }
 
191
    Timing {
 
192
        # fuzz timings by value (100 = no change)
 
193
        fuzz 100
 
194
        # low-level communication [ns]
 
195
        CY 1000  # Enable cycle time
 
196
        PW  450  # Enable pulse width
 
197
        AS  140  # Address setup time
 
198
        AH   20  # Address hold time
 
199
        # HD44780 execution timings [us]
 
200
        INIT1 4100  # first init sequence: 4.1 msec
 
201
        INIT2  100  # second init sequence: 100 usec
 
202
        EXEC    80  # normal execution time
 
203
        WRCG   120  # CG RAM Write
 
204
        CLEAR 2250  # Clear Display
 
205
        HOME  2250  # Return Cursor Home
 
206
        ONOFF 2250  # Display On/Off Control
 
207
        # GPO timing [ns]
 
208
        GPO_ST  20  # 74HCT573 set-up time
 
209
        GPO_PW 230  # 74HCT573 enable pulse width
 
210
        # Power supply timing [ms]
 
211
        POWER  500  # power-on delay
 
212
    }
 
213
}
 
214
 
 
215
# HD44780 display 4-Bit mode
 
216
Display HD44780-4bit {
 
217
    Driver 'HD44780'
 
218
    Model 'generic'
 
219
    Port '/dev/parports/0'      
 
220
    Size '16x1'
 
221
    Bits 4
 
222
    UseBusy 0
 
223
    asc255bug 0
 
224
    Wire {
 
225
        RW     'GND'
 
226
        RS     'DB4'
 
227
        ENABLE 'DB6'
 
228
        GPO    'GND'
 
229
    }
 
230
}
 
231
 
 
232
# Dual-HD44780 display from Pollin
 
233
Display WDC2704M {
 
234
    Driver 'HD44780'
 
235
    Model 'generic'
 
236
    Controllers 2
 
237
    UseBusy 1
 
238
    Port '/dev/parports/0'      
 
239
    Size '27x4'
 
240
    Wire {
 
241
        RW      'AUTOFD'
 
242
        RS      'INIT'
 
243
        ENABLE  'STROBE'
 
244
        ENABLE2 'SLCTIN'
 
245
        GPO     'GND'
 
246
        POWER   'GND'
 
247
    }
 
248
}
 
249
 
 
250
# HD44780 display from www.kernelconcepts.de
 
251
Display HD44780-kernelconcepts {
 
252
    Driver 'HD44780'
 
253
    Model 'HD66712'
 
254
    UseBusy 1
 
255
    Port '/dev/parports/0'      
 
256
    Size '20x4'
 
257
    Wire {
 
258
        RW      'AUTOFD'
 
259
        RS      'INIT'
 
260
        ENABLE  'STROBE'
 
261
        ENABLE2 'GND'
 
262
        GPO     'GND'
 
263
        POWER   'GND'
 
264
    }
 
265
}
 
266
 
 
267
Display picoLCD {
 
268
    Driver 'picoLCD'
 
269
    Size     '20x2'
 
270
    Contrast  0
 
271
    Backlight 1
 
272
    Icons     1
 
273
}
 
274
 
 
275
Display picoLCDGraphic {
 
276
    Driver 'picoLCDGraphic'
 
277
    Size     '256x64'
 
278
    Contrast  0
 
279
    Backlight 100
 
280
}
 
281
 
 
282
Display SC1602D {
 
283
    Driver 'HD44780'
 
284
    Port '/dev/parports/0'      
 
285
    Bits '8'
 
286
    Size '16x2'
 
287
    asc255bug 0
 
288
    Icons 1
 
289
    Wire {
 
290
        RW     'GND'
 
291
        RS     'AUTOFD'
 
292
        ENABLE 'STROBE'
 
293
        GPO    'INIT'
 
294
        POWER  'GND'
 
295
    }
 
296
}
 
297
 
 
298
 
 
299
Display LCM-162 {
 
300
    Driver 'HD44780'
 
301
    Model 'LCM-162'
 
302
#   Bus 'parport'
 
303
    Port '/dev/parports/0'      
 
304
    Size '16x2'
 
305
    UseBusy 1
 
306
    asc255bug 0
 
307
    Icons 1
 
308
}
 
309
 
 
310
 
 
311
Display HD44780-I2C {
 
312
    Driver 'HD44780'
 
313
    Model 'generic'
 
314
    Bus 'i2c'
 
315
    Port '/dev/i2c-0'
 
316
    Device '70'
 
317
    Bits '4'
 
318
    Size '20x4'
 
319
    asc255bug 0
 
320
    Icons 1
 
321
    Wire {
 
322
        RW     'DB5'
 
323
        RS     'DB4'
 
324
        ENABLE 'DB6'
 
325
        GPO    'GND'
 
326
    }
 
327
}
 
328
 
 
329
 
 
330
Display LCDTerm {
 
331
    Driver 'LCDTerm'
 
332
    Port '/dev/tts/0'
 
333
    Speed 19200
 
334
    Size '20x4'
 
335
    Icons 1
 
336
}
 
337
 
 
338
Display SimpleLCD {
 
339
    Driver 'SimpleLCD'
 
340
    Port '/dev/tts/0'
 
341
    Speed 1200
 
342
    Options 0
 
343
    Size '20x2'
 
344
}
 
345
 
 
346
Display PHAnderson {
 
347
    Driver 'PHAnderson'
 
348
    Port '/dev/tts/0'
 
349
    Speed 19200
 
350
    Size '24x2'
 
351
    Blackligth 100
 
352
    Bootscreen '123456789012345678901234ABCDEFGHIJKLMNOPQRSTUVWX'                                         
 
353
}
 
354
 
 
355
Display BA63 {
 
356
    Driver   'WincorNixdorf'
 
357
    Model    'BA63'
 
358
    Port     '/dev/tts/0'
 
359
#   Port     '/dev/tts/USB0'
 
360
    Speed     9600
 
361
    BarChar   219
 
362
    SelfTest  0
 
363
}
 
364
 
 
365
Display M50530-24x8 {
 
366
    Driver 'M50530'
 
367
    Port '/dev/parports/0'      
 
368
#   Port '0x378'
 
369
    Size '24x8'
 
370
    Font '5x7'
 
371
    Duty 2
 
372
    Wire.RW   'INIT'
 
373
    Wire.EX   'STROBE'
 
374
    Wire.IOC1 'SLCTIN'
 
375
    Wire.IOC2 'AUTOFD'
 
376
    Wire.GPO  'GND'
 
377
    UseBusy    1
 
378
    Timing.fuzz 100
 
379
}
 
380
 
 
381
 
 
382
Display CT20x4 {
 
383
    Driver 'Beckmann+Egle'
 
384
    Model 'CT20x4'
 
385
    Port '/dev/tts/0'
 
386
#    Size '16x2'
 
387
#    Contrast 7
 
388
#    Backlight 1
 
389
    Icons 1
 
390
}
 
391
 
 
392
 
 
393
Display ULA200 {
 
394
    Driver 'ULA200'
 
395
    Size '20x4'
 
396
    Icons 0
 
397
    Backlight 1
 
398
}
 
399
 
 
400
Display USBLCD {
 
401
    Driver 'USBLCD'
 
402
#   Port '/dev/lcd0'
 
403
    Port 'libusb'
 
404
    Size '20x4'
 
405
    asc255bug 1
 
406
    Icons 1
 
407
}
 
408
 
 
409
 
 
410
Display BWCT {
 
411
    Driver 'BWCT'
 
412
    Size '20x4'
 
413
    Contrast 220
 
414
    asc255bug 1
 
415
    Icons 1
 
416
}
 
417
 
 
418
 
 
419
Display T6963-240x64 {
 
420
    Driver 'T6963'
 
421
    Port '/dev/parports/0'
 
422
    Size '240x64'
 
423
    DualScan 0
 
424
    Cell 6
 
425
    Wire.CE 'STROBE'
 
426
    Wire.CD 'SLCTIN'
 
427
    Wire.RD 'AUTOFD'
 
428
    Wire.WR 'INIT'
 
429
    Timing.fuzz 120
 
430
    Font '6x8'
 
431
}
 
432
 
 
433
Display T6963-240x128 {
 
434
    Driver 'T6963'
 
435
    Port '/dev/parports/0'
 
436
    Size '240x128'
 
437
    DualScan 0
 
438
    Cell 6
 
439
    Wire.CE 'STROBE'
 
440
    Wire.CD 'SLCTIN'
 
441
    Wire.RD 'AUTOFD'
 
442
    Wire.WR 'INIT'
 
443
    Timing.fuzz 120
 
444
    Font '6x8'
 
445
}
 
446
 
 
447
Display T6963-240x128D {
 
448
    Driver 'T6963'
 
449
    Port '/dev/parports/0'
 
450
    Size '240x128'
 
451
    DualScan 1
 
452
    Cell 6
 
453
    Wire.CE 'STROBE'
 
454
    Wire.CD 'SLCTIN'
 
455
    Wire.RD 'AUTOFD'
 
456
    Wire.WR 'INIT'
 
457
    Timing.fuzz 120
 
458
    Font '6x8'
 
459
}
 
460
 
 
461
 
 
462
Display LPH7508 {
 
463
    Driver 'LPH7508'
 
464
    Port   '/dev/parports/0'
 
465
    Font   '6x8'
 
466
    Contrast 15
 
467
    Inverted 0
 
468
}
 
469
 
 
470
Display LPH7508-serdisplib {
 
471
    Driver 'serdisplib'
 
472
    Port 'PAR:/dev/parports/0'
 
473
    Model 'LPH7508'
 
474
}
 
475
 
 
476
Display ctinclud {
 
477
   Driver  'serdisplib'
 
478
   Port    'USB:7c0/1501'
 
479
   Model   'CTINCLUD'
 
480
   Options ''
 
481
   Inverted 0
 
482
}
 
483
 
 
484
Display ASTUSB {
 
485
    Driver 'ASTUSB'
 
486
    Size '20x4'
 
487
    Backlight 1
 
488
}
 
489
 
 
490
Display XWindow {
 
491
    Driver 'X11'
 
492
    Size   '120x32'
 
493
    Font   '5x8'
 
494
    Pixel  '4+1'
 
495
    Gap    '-1x-1'
 
496
    Border 20
 
497
    Buttons 2
 
498
    Foreground  '000000cc'
 
499
    Background  '00000022'
 
500
    Basecolor   '80d000'
 
501
    Bordercolor '90e000'
 
502
}
 
503
 
 
504
Display Image {
 
505
    Driver 'Image'
 
506
#   Format 'PPM'
 
507
    Format 'PNG'
 
508
    Size   '120x32'
 
509
    Font   '6x8'
 
510
    Pixel  '4+1'
 
511
    Gap    '-1x-1'
 
512
    Border 20
 
513
#   Foreground '#000000'
 
514
#   Background '#80d000'
 
515
#   Halfground '#70c000'
 
516
    Foreground '000000cc'
 
517
    Background '00000022'
 
518
    Basecolor  '80d000'
 
519
}
 
520
 
 
521
Display VNC {
 
522
    Driver       'VNC'
 
523
    Font         '6x8'
 
524
    Port         '5900'
 
525
    Xres         '320'
 
526
    Yres         '140'
 
527
    Bpp          '4'
 
528
    Maxclients   '2'
 
529
    Buttons      '4'
 
530
    Keypadxofs   '40'
 
531
    Keypadyofs   '70'
 
532
    Keypadygap   '10'
 
533
    Keypadcol    '8745877'
 
534
    Osd_showtime '2000'
 
535
#    Password     'password'
 
536
    Maxfps       '25'
 
537
#    HttpDir     '/path/to/classfiles'
 
538
    HttpPort     '5800'
 
539
}
 
540
 
 
541
#Plugin KVV {
 
542
#    StationID '12_701'
 
543
#    Refresh 30
 
544
#    Proxy 'igate'
 
545
#    Port 8080;
 
546
#}
 
547
 
 
548
Plugin Seti {
 
549
    Directory '/root/setiathome-3.08.i686-pc-linux-gnu'
 
550
}
 
551
 
 
552
 
 
553
Plugin MySQL {
 
554
    server 'gsmlandia.com'      # if none, localhost assumed
 
555
    port 3306                   # if none, MySQL default assumed
 
556
    user 'lcd4linux'            # if none, lcd4linux unix owner assumed
 
557
    password 'lcd4linux'        # if none, empty password assumed
 
558
    database 'lcd4linux'        # MUST be specified
 
559
}
 
560
 
 
561
Plugin Pop3 {
 
562
   server1 'localhost'
 
563
   port1 110
 
564
   user1 'michael'
 
565
   password1 'secret'
 
566
}
 
567
 
 
568
 
 
569
Plugin DBus {
 
570
       # signal 0 is displayed IM msg
 
571
       #
 
572
       signal0sender 'im.pidgin.purple.PurpleService'      # should be in the form com.domain.app.service,
 
573
                                                           # the :1.23 form given by dbus-monitor will NOT work,
 
574
                                                           # if unsure skip it
 
575
       signal0path '/im/pidgin/purple/PurpleObject'        # find using dbus-monitor
 
576
       signal0interface 'im.pidgin.purple.PurpleInterface' # find using dbus-monitor
 
577
       signal0member 'DisplayedImMsg'                      # find using dbus-monitor
 
578
       signal0eventname 'got_im' # make something up, all Text widgets with an
 
579
                                 # event option matching this will be updated
 
580
}
 
581
 
 
582
 
 
583
#this example prints the second argument of signal# 0
 
584
#(in this case it prints the message displayed)
 
585
Widget Pidgin {
 
586
    class 'Text'
 
587
    expression dbus::argument(0, 1) . ': ' . dbus::argument(0, 2))
 
588
    width 20    
 
589
    align 'R'   
 
590
    event 'got_im'      
 
591
}       
 
592
 
 
593
 
 
594
Widget OS {
 
595
    class 'Text'
 
596
    expression '*** '.uname('sysname').' '.uname('release').' ***'
 
597
    width 20
 
598
    align 'M'
 
599
    style 'bold'
 
600
    speed 50    
 
601
    update tick
 
602
}
 
603
 
 
604
Widget CPU {
 
605
    class  'Text'
 
606
    expression  uname('machine')
 
607
    prefix 'CPU '
 
608
    width  9
 
609
    align  'L'
 
610
    style test::onoff(7)>0?'bold':'norm'
 
611
    update tick
 
612
}
 
613
 
 
614
 
 
615
Widget CPUinfo {
 
616
    class  'Text'
 
617
    expression  cpuinfo('model name')
 
618
    prefix ''
 
619
    width  20
 
620
    align  'M'
 
621
    speed 100   
 
622
    update tick
 
623
}
 
624
 
 
625
 
 
626
Widget RAM {
 
627
    class  'Text'
 
628
    expression meminfo('MemTotal')/1024
 
629
    postfix ' MB RAM'   
 
630
    width  11
 
631
    precision 0
 
632
    align  'R'
 
633
    update tick
 
634
}
 
635
 
 
636
Widget Busy {
 
637
    class 'Text'
 
638
    expression proc_stat::cpu('busy', 500)
 
639
    prefix 'Busy'       
 
640
    postfix '%' 
 
641
    width 9     
 
642
    precision 1
 
643
    align 'R'   
 
644
    update tick 
 
645
}       
 
646
 
 
647
Widget BusyBar {
 
648
    class 'Bar'
 
649
    expression  proc_stat::cpu('busy',   500)
 
650
    expression2 proc_stat::cpu('system', 500)
 
651
    length 10   
 
652
    direction 'E'
 
653
    update tack
 
654
}
 
655
 
 
656
Widget Load {
 
657
    class 'Text'
 
658
    expression loadavg(1)
 
659
    prefix 'Load'
 
660
    postfix loadavg(1)>1.0?'!':' '
 
661
    width 10
 
662
    precision 1
 
663
    align 'R'
 
664
    update tick
 
665
}
 
666
 
 
667
Widget LoadBar {
 
668
    class 'Bar'
 
669
    expression  loadavg(1)
 
670
    max 2.0
 
671
    length 10   
 
672
    direction 'E'
 
673
    update tack
 
674
}
 
675
 
 
676
 
 
677
Widget Disk {
 
678
    class 'Text'
 
679
    # disk.[rw]blk return blocks, we assume a blocksize of 512
 
680
    # to get the number in kB/s we would do blk*512/1024, which is blk/2 
 
681
    # expression (proc_stat::disk('.*', 'rblk', 500)+proc_stat::disk('.*', 'wblk', 500))/2
 
682
    # with kernel 2.6, disk_io disappeared from /proc/stat but moved to /proc/diskstat
 
683
    # therefore you have to use another function called 'diskstats':
 
684
    expression diskstats('hd.', 'read_sectors', 500) + diskstats('hd.', 'write_sectors', 500)
 
685
    prefix 'disk'
 
686
    postfix ' '
 
687
    width 10    
 
688
    precision 0
 
689
    align 'R'   
 
690
    update tick 
 
691
}       
 
692
 
 
693
Widget DiskBar {
 
694
    class 'Bar'
 
695
    #expression  proc_stat::disk('.*', 'rblk', 500)
 
696
    #expression2 proc_stat::disk('.*', 'wblk', 500)
 
697
    # for kernel 2.6:
 
698
    expression  diskstats('hd.', 'read_sectors',  500)
 
699
    expression2 diskstats('hd.', 'write_sectors', 500)
 
700
    length 14   
 
701
    direction 'E'
 
702
    update tack
 
703
}
 
704
 
 
705
Widget Eth0 {
 
706
    class 'Text'
 
707
    expression (netdev('eth0', 'Rx_bytes', 500)+netdev('eth0', 'Tx_bytes', 500))/1024
 
708
    prefix 'eth0'
 
709
    postfix ' '
 
710
    width 10    
 
711
    precision 0
 
712
    align 'R'   
 
713
    update tick 
 
714
}       
 
715
 
 
716
Widget Eth0Bar {
 
717
    class 'Bar'
 
718
    expression  netdev('eth0', 'Rx_bytes', 500)
 
719
    expression2 netdev('eth0', 'Tx_bytes', 500)
 
720
    length 14   
 
721
    direction 'E'
 
722
    update tack
 
723
}
 
724
 
 
725
Widget PPP {
 
726
    class 'Text'
 
727
    expression (ppp('Rx:0', 500)+ppp('Tx:0', 500))
 
728
    prefix 'PPP'
 
729
    width 9
 
730
    precision 0
 
731
    align 'R'
 
732
    update tick
 
733
}
 
734
 
 
735
Widget Temp {
 
736
    class 'Text'
 
737
    expression i2c_sensors('temp_input3')*1.0324-67
 
738
    prefix 'Temp'
 
739
    width 9
 
740
    precision 1
 
741
    align 'R'
 
742
    update tick
 
743
}
 
744
 
 
745
Widget TempBar {
 
746
    class 'Bar'
 
747
    expression  i2c_sensors('temp_input3')*1.0324-67
 
748
    min 40
 
749
    max 80
 
750
    length 10
 
751
    direction 'E'
 
752
    update tack
 
753
}
 
754
 
 
755
Widget MySQLtest1 {
 
756
    class 'Text'
 
757
    expression MySQL::query('SELECT id FROM table1')
 
758
    width 20
 
759
    align 'R'
 
760
    prefix 'MySQL test:'
 
761
    update minute
 
762
}
 
763
 
 
764
Widget MySQLtest2 {
 
765
    class 'Text'
 
766
    expression MySQL::status()
 
767
    width 20
 
768
    align 'M'
 
769
    prefix 'Status: '
 
770
    update minute
 
771
}
 
772
 
 
773
Widget Uptime {
 
774
    class 'Text'
 
775
    expression uptime('%d days %H:%M:%S')
 
776
    width 20
 
777
    align 'R'
 
778
    prefix 'Up '
 
779
    update 1000
 
780
}
 
781
 
 
782
Widget mpris_TrackPosition_bar {
 
783
    class 'Bar'
 
784
    expression  mpris_dbus::method_PositionGet('org.kde.amarok')
 
785
    length 40   
 
786
    min 0
 
787
    max 100
 
788
    direction 'E'
 
789
    style 'H'
 
790
    update 200
 
791
}
 
792
 
 
793
# debugging widgets 
 
794
 
 
795
Widget BarTest {
 
796
    class 'Bar'
 
797
    # test::bar(barno,maxval,startval,delta) - move a test value between 0 and max.
 
798
    # delta= step to change value by each time it's read.
 
799
    # barno - ten different test bar values can be set up, with barno=0..9
 
800
    # if delta=0, just returns the value of bar n instead of changing it.
 
801
    expression test::bar(0,30,25,1)
 
802
    expression2 test::bar(1,30,0,1)
 
803
    length 8
 
804
    # max 50
 
805
    direction 'E'
 
806
    update 10
 
807
}
 
808
 
 
809
Widget BarTestVal {
 
810
    class 'Text'
 
811
    expression test::bar(0,100,50,0)
 
812
    prefix 'Test '
 
813
    width 9
 
814
    update 200
 
815
}
 
816
 
 
817
Widget LightningTest {
 
818
    class 'icon'
 
819
    speed 500
 
820
    visible test::onoff(0)
 
821
    bitmap {
 
822
        row1 '...***'
 
823
        row2 '..***.'
 
824
        row3 '.***..'
 
825
        row4 '.****.'
 
826
        row5 '..**..'
 
827
        row6 '.**...'
 
828
        row7 '**....'
 
829
        row8 '*.....'
 
830
    }
 
831
}
 
832
 
 
833
 
 
834
# Icons
 
835
 
 
836
Widget Heartbeat {
 
837
    class 'Icon'
 
838
    speed 800
 
839
    Bitmap {
 
840
        Row1 '.....|.....'
 
841
        Row2 '.*.*.|.*.*.'
 
842
        Row3 '*****|*.*.*'
 
843
        Row4 '*****|*...*'
 
844
        Row5 '.***.|.*.*.'
 
845
        Row6 '.***.|.*.*.'
 
846
        Row7 '..*..|..*..'
 
847
        Row8 '.....|.....'
 
848
    }
 
849
}
 
850
 
 
851
Widget EKG {
 
852
    class 'Icon'
 
853
    speed 50
 
854
    Bitmap {
 
855
        Row1 '.....|.....|.....|.....|.....|.....|.....|.....'
 
856
        Row2 '.....|....*|...*.|..*..|.*...|*....|.....|.....'
 
857
        Row3 '.....|....*|...*.|..*..|.*...|*....|.....|.....'
 
858
        Row4 '.....|....*|...**|..**.|.**..|**...|*....|.....'
 
859
        Row5 '.....|....*|...**|..**.|.**..|**...|*....|.....'
 
860
        Row6 '.....|....*|...*.|..*.*|.*.*.|*.*..|.*...|*....'
 
861
        Row7 '*****|*****|****.|***..|**..*|*..**|..***|.****'
 
862
        Row8 '.....|.....|.....|.....|.....|.....|.....|.....'
 
863
    }
 
864
}
 
865
Widget Karo {
 
866
    class 'Icon'
 
867
    speed 200
 
868
    Bitmap {
 
869
        Row1 '.....|.....|.....|.....|..*..|.....|.....|.....'
 
870
        Row2 '.....|.....|.....|..*..|.*.*.|..*..|.....|.....'
 
871
        Row3 '.....|.....|..*..|.*.*.|*...*|.*.*.|..*..|.....'
 
872
        Row4 '.....|..*..|.*.*.|*...*|.....|*...*|.*.*.|..*..'
 
873
        Row5 '.....|.....|..*..|.*.*.|*...*|.*.*.|..*..|.....'
 
874
        Row6 '.....|.....|.....|..*..|.*.*.|..*..|.....|.....'
 
875
        Row7 '.....|.....|.....|.....|..*..|.....|.....|.....'
 
876
        Row8 '.....|.....|.....|.....|.....|.....|.....|.....'
 
877
    }
 
878
}
 
879
Widget Heart {
 
880
    class 'Icon'
 
881
    speed 250
 
882
    Bitmap {
 
883
        Row1 '.....|.....|.....|.....|.....|.....'
 
884
        Row2 '.*.*.|.....|.*.*.|.....|.....|.....'
 
885
        Row3 '*****|.*.*.|*****|.*.*.|.*.*.|.*.*.'
 
886
        Row4 '*****|.***.|*****|.***.|.***.|.***.'
 
887
        Row5 '.***.|.***.|.***.|.***.|.***.|.***.'
 
888
        Row6 '.***.|..*..|.***.|..*..|..*..|..*..'
 
889
        Row7 '..*..|.....|..*..|.....|.....|.....'
 
890
        Row8 '.....|.....|.....|.....|.....|.....'
 
891
    }
 
892
}
 
893
Widget Blob {
 
894
    class 'Icon'
 
895
    speed 250
 
896
    Bitmap {
 
897
        Row1 '.....|.....|.....'
 
898
        Row2 '.....|.....|.***.'
 
899
        Row3 '.....|.***.|*...*'
 
900
        Row4 '..*..|.*.*.|*...*'
 
901
        Row5 '.....|.***.|*...*'
 
902
        Row6 '.....|.....|.***.'
 
903
        Row7 '.....|.....|.....'
 
904
        Row8 '.....|.....|.....'
 
905
    }
 
906
}
 
907
Widget Wave {
 
908
    class 'Icon'
 
909
    speed 100
 
910
    Bitmap {
 
911
        Row1 '..**.|.**..|**...|*....|.....|.....|.....|.....|....*|...**'
 
912
        Row2 '.*..*|*..*.|..*..|.*...|*....|.....|.....|....*|...*.|..*..'
 
913
        Row3 '*....|....*|...*.|..*..|.*...|*....|....*|...*.|..*..|.*...'
 
914
        Row4 '*....|....*|...*.|..*..|.*...|*....|....*|...*.|..*..|.*...'
 
915
        Row5 '*....|....*|...*.|..*..|.*...|*....|....*|...*.|..*..|.*...'
 
916
        Row6 '.....|.....|....*|...*.|..*..|.*..*|*..*.|..*..|.*...|*....'
 
917
        Row7 '.....|.....|.....|....*|...**|..**.|.**..|**...|*....|.....'
 
918
        Row8 '.....|.....|.....|.....|.....|.....|.....|.....|.....|.....'
 
919
    }
 
920
}
 
921
Widget Squirrel {
 
922
    class 'Icon'
 
923
    speed 100
 
924
    Bitmap {
 
925
        Row1 '.....|.....|.....|.....|.....|.....'
 
926
        Row2 '.....|.....|.....|.....|.....|.....'
 
927
        Row3 '.....|.....|.....|.....|.....|.....'
 
928
        Row4 '**...|.**..|..**.|...**|....*|.....'
 
929
        Row5 '*****|*****|*****|*****|*****|*****'
 
930
        Row6 '...**|..**.|.**..|**...|*....|.....'
 
931
        Row7 '.....|.....|.....|.....|.....|.....'
 
932
        Row8 '.....|.....|.....|.....|.....|.....'
 
933
    }
 
934
}
 
935
 
 
936
Widget Lightning {
 
937
    class 'icon'
 
938
    speed 100
 
939
    visible cpu('busy', 500)-50
 
940
    bitmap {
 
941
        row1 '...***'
 
942
        row2 '..***.'
 
943
        row3 '.***..'
 
944
        row4 '.****.'
 
945
        row5 '..**..'
 
946
        row6 '.**...'
 
947
        row7 '**....'
 
948
        row8 '*.....'
 
949
    }
 
950
}
 
951
 
 
952
Widget Rain {
 
953
    class 'icon'
 
954
    speed 200
 
955
    bitmap {
 
956
        row1 '...*.|.....|.....|.*...|....*|..*..|.....|*....'
 
957
        row2 '*....|...*.|.....|.....|.*...|....*|..*..|.....'
 
958
        row3 '.....|*....|...*.|.....|.....|.*...|....*|..*..'
 
959
        row4 '..*..|.....|*....|...*.|.....|.....|.*...|....*'
 
960
        row5 '....*|..*..|.....|*....|...*.|.....|.....|.*...'
 
961
        row6 '.*...|....*|..*..|.....|*....|...*.|.....|.....'
 
962
        row7 '.....|.*...|....*|..*..|.....|*....|...*.|.....'
 
963
        row8 '.....|.....|.*...|....*|..*..|.....|*....|...*.'
 
964
    }
 
965
}
 
966
 
 
967
Widget Timer {
 
968
    class 'Icon'
 
969
    speed 50
 
970
    Bitmap {
 
971
        Row1 '.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|'
 
972
        Row2 '.***.|.*+*.|.*++.|.*++.|.*++.|.*++.|.*++.|.*++.|.*++.|.*++.|.*++.|.*++.|.+++.|.+*+.|.+**.|.+**.|.+**.|.+**.|.+**.|.+**.|.+**.|.+**.|.+**.|.+**.|'
 
973
        Row3 '*****|**+**|**++*|**+++|**++.|**++.|**+++|**+++|**+++|**+++|**+++|+++++|+++++|++*++|++**+|++***|++**.|++**.|++***|++***|++***|++***|++***|*****|'
 
974
        Row4 '*****|**+**|**+**|**+**|**+++|**+++|**+++|**+++|**+++|**+++|+++++|+++++|+++++|++*++|++*++|++*++|++***|++***|++***|++***|++***|++***|*****|*****|'
 
975
        Row5 '*****|*****|*****|*****|*****|***++|***++|**+++|*++++|+++++|+++++|+++++|+++++|+++++|+++++|+++++|+++++|+++**|+++**|++***|+****|*****|*****|*****|'
 
976
        Row6 '.***.|.***.|.***.|.***.|.***.|.***.|.**+.|.*++.|.+++.|.+++.|.+++.|.+++.|.+++.|.+++.|.+++.|.+++.|.+++.|.+++.|.++*.|.+**.|.***.|.***.|.***.|.***.|'
 
977
        Row7 '.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|'
 
978
        Row8 '.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|.....|'
 
979
 
 
980
 
 
981
    }
 
982
}
 
983
 
 
984
Widget Test {
 
985
    class 'Text'
 
986
    expression '1234567890123456789012345678901234567890'
 
987
    width 40
 
988
    foreground 'ff0000ff'
 
989
}
 
990
 
 
991
Widget Test1 {
 
992
    class 'Text'
 
993
    expression 'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'
 
994
    width 40
 
995
    align 'M'
 
996
    speed 100
 
997
}
 
998
 
 
999
Widget Test2 {
 
1000
    class 'Text'
 
1001
    expression '1234567890abcdefghijklmnopqrstuvwxyz'
 
1002
    width 40
 
1003
    align 'M'
 
1004
    speed 150
 
1005
}
 
1006
 
 
1007
Widget GPO_Val1 {
 
1008
    class 'Text'
 
1009
    expression LCD::GPO(1)
 
1010
    prefix 'GPO#1'
 
1011
    width 10
 
1012
    precision 0
 
1013
    align 'R'
 
1014
    update tick
 
1015
}
 
1016
 
 
1017
Widget GPI_Val1 {
 
1018
    class 'Text'
 
1019
    expression LCD::GPI(1)
 
1020
    prefix 'GPI#1'
 
1021
    width 10
 
1022
    precision 0
 
1023
    align 'R'
 
1024
    update tick
 
1025
}
 
1026
 
 
1027
Widget GPO_Val4 {
 
1028
    class 'Text'
 
1029
    expression LCD::GPO(4)
 
1030
    prefix 'GPO#4'
 
1031
    width 10
 
1032
    precision 0
 
1033
    align 'R'
 
1034
    update tick
 
1035
}
 
1036
 
 
1037
Widget GPO_Test1 {
 
1038
    class 'GPO'
 
1039
    expression 255*test::onoff(1)
 
1040
    update 300
 
1041
}
 
1042
 
 
1043
Widget GPO_Test255 {
 
1044
    class 'GPO'
 
1045
    expression test::bar(0,255, 0, 1)
 
1046
    update 100
 
1047
}
 
1048
 
 
1049
Widget ImageTest {
 
1050
    class 'Image'
 
1051
    file 'tux.png'
 
1052
    update 1000
 
1053
    visible 1
 
1054
    inverted 0
 
1055
}
 
1056
 
 
1057
Widget KVV {
 
1058
    class 'Text'
 
1059
    expression kvv::line(0).' '.kvv::station(0)
 
1060
    width 11
 
1061
 
 
1062
    align 'L'
 
1063
    update tick
 
1064
    Foreground 'ffff00'
 
1065
    style 'bold'
 
1066
}
 
1067
 
 
1068
Widget KVV_TIME {
 
1069
    class 'Text'
 
1070
    expression kvv::time_str(0)
 
1071
    width 2
 
1072
 
 
1073
    align 'R'
 
1074
    update tick
 
1075
    foreground kvv::time(0) < 2 ? 'FF0000' : ( kvv::time(0) < 5 ? 'FFFF00' : '00FF00' )
 
1076
    style 'bold'
 
1077
}
 
1078
 
 
1079
Layout Default {
 
1080
    Row1 {
 
1081
        Col1  'OS'
 
1082
    }
 
1083
    Row2 {
 
1084
        Col1  'CPU'
 
1085
        Col10 'RAM'
 
1086
    }
 
1087
    Row3 {
 
1088
        Col1  'Busy'
 
1089
        Col10 'Rain'
 
1090
        Col11 'BusyBar'
 
1091
    }
 
1092
    Row4 {
 
1093
        Col1 'Load'
 
1094
        Col11 'LoadBar'
 
1095
    }
 
1096
    Row5 {
 
1097
        Col1  'Disk'
 
1098
        Col11 'DiskBar'
 
1099
    }
 
1100
    Row6 {
 
1101
        Col1  'Eth0'
 
1102
        Col11 'Eth0Bar'
 
1103
    }
 
1104
}
 
1105
 
 
1106
Layout TestLayer {
 
1107
    Row1 {
 
1108
        Col1  'OS'
 
1109
    }
 
1110
    Row2 {
 
1111
        Col1  'CPU'
 
1112
        Col10 'RAM'
 
1113
    }
 
1114
    Row3 {
 
1115
        Col1  'Busy'
 
1116
        Col10 'Rain'
 
1117
        Col11 'BusyBar'
 
1118
    }
 
1119
    Row4 {
 
1120
        Col1 'Load'
 
1121
        Col11 'LoadBar'
 
1122
    }
 
1123
    Row5 {
 
1124
        Col1  'Disk'
 
1125
        Col11 'DiskBar'
 
1126
    }
 
1127
    Row6 {
 
1128
        Col1  'Eth0'
 
1129
        Col11 'Eth0Bar'
 
1130
    }
 
1131
    Layer 2 {
 
1132
        X1.Y1 'ImageTest'
 
1133
    }
 
1134
}
 
1135
 
 
1136
Layout TestImage {
 
1137
    Layer 2 {
 
1138
        X1.Y1 'ImageTest'
 
1139
    }
 
1140
}
 
1141
 
 
1142
Layout L24x8 {
 
1143
    Row1 {
 
1144
        Col1  'Load'
 
1145
        Col11 'BusyBar'
 
1146
    }
 
1147
    Row2 {
 
1148
    }
 
1149
}
 
1150
 
 
1151
Layout L8x2 {
 
1152
    Row1 {
 
1153
        Col1  'Busy'
 
1154
    }
 
1155
    Row2 {
 
1156
        Col1 'BarTest'
 
1157
    }
 
1158
}
 
1159
 
 
1160
Layout L16x1 {
 
1161
    Row1 {
 
1162
        Col1  'Busy'
 
1163
        Col11 'BusyBar'
 
1164
    }
 
1165
}
 
1166
 
 
1167
Layout L16x2 {
 
1168
    Row1 {
 
1169
        Col1  'Busy'
 
1170
        Col11 'BusyBar'
 
1171
    }
 
1172
    Row2 {
 
1173
        Col1  'Disk'
 
1174
        #Col11 'DiskBar'
 
1175
        Col11 'BarTest'
 
1176
    }
 
1177
}
 
1178
 
 
1179
Layout L20x2 {
 
1180
    Row1 {
 
1181
        Col1  'CPUinfo'
 
1182
    }
 
1183
    Row2 {
 
1184
        Col1  'Busy'
 
1185
        Col11 'BusyBar'
 
1186
    }
 
1187
}
 
1188
 
 
1189
Layout L40x2 {
 
1190
    Row1 {
 
1191
        Col1  'OS'
 
1192
        Col21  'Busy'
 
1193
        Col31 'BusyBar'
 
1194
    }
 
1195
    Row2 {
 
1196
        Col1  'CPU'
 
1197
        Col10 'RAM'
 
1198
        Col21 'Load'
 
1199
        Col31 'LoadBar'
 
1200
    }
 
1201
}
 
1202
 
 
1203
Layout Test {
 
1204
    Row01.Col1 'Test1'
 
1205
    Row02.Col1 'Test1'
 
1206
    Row03.Col1 'Test1'
 
1207
    Row04.Col1 'Test1'
 
1208
    Row05.Col1 'Test1'
 
1209
    Row06.Col1 'Test1'
 
1210
    Row07.Col1 'Test1'
 
1211
    Row08.Col1 'Test1'
 
1212
    Row09.Col1 'Test1'
 
1213
    Row10.Col1 'Test1'
 
1214
    Row11.Col1 'Test1'
 
1215
    Row12.Col1 'Test1'
 
1216
    Row13.Col1 'Test1'
 
1217
    Row14.Col1 'Test1'
 
1218
    Row15.Col1 'Test1'
 
1219
    Row16.Col1 'Test1'
 
1220
    Row17.Col1 'Test1'
 
1221
    Row18.Col1 'Test1'
 
1222
    Row19.Col1 'Test1'
 
1223
    Row20.Col1 'Test1'
 
1224
    Row21.Col1 'Test1'
 
1225
    Row22.Col1 'Test1'
 
1226
    Row23.Col1 'Test1'
 
1227
    Row24.Col1 'Test1'
 
1228
}
 
1229
 
 
1230
Layout Test2 {
 
1231
    Row01.Col1 'Test1'
 
1232
    #Row02.Col1 'Rain'
 
1233
    Row02.Col1 'Test2'
 
1234
    Row03.Col1 'Test1'
 
1235
    Row04.Col1 'Test2'
 
1236
    Row05.Col1 'Test1'
 
1237
    Row06.Col1 'Test2'
 
1238
    Row07.Col1 'Test1'
 
1239
    Row08.Col1 'Test2'
 
1240
}
 
1241
 
 
1242
Layout TestGPO {
 
1243
    Row1.Col1  'GPO_Val1'
 
1244
    Row1.Col10 'GPI_Val1'
 
1245
    Row2.Col1  'GPO_Val4'
 
1246
    GPO1       'GPO_Test255'
 
1247
    GPO4       'GPO_Test1'
 
1248
}
 
1249
 
 
1250
Layout TestIcons {
 
1251
    Row1.Col1 'Timer'
 
1252
    Row1.Col2 'Rain'
 
1253
    Row1.Col3 'Squirrel'
 
1254
    Row1.Col4 'Wave'
 
1255
    Row1.Col5 'Blob'
 
1256
    Row1.Col6 'Heart'
 
1257
    Row1.Col7 'Karo'
 
1258
    Row1.Col8 'EKG'
 
1259
}
 
1260
 
 
1261
Layout testMySQL {
 
1262
        Row1 {
 
1263
                Col1 'MySQLtest1'
 
1264
        }
 
1265
        Row2 {
 
1266
                Col1 'MySQLtest2'
 
1267
        }
 
1268
}
 
1269
 
 
1270
Layout Debug {
 
1271
    #Row09.Col1 'Test'
 
1272
    Row09.Col1 'Heartbeat'
 
1273
}
 
1274
 
 
1275
 
 
1276
 
 
1277
#Display 'SerDispLib'
 
1278
#Display 'LCD-Linux'
 
1279
#Display 'LCD2041'
 
1280
#Display 'LK202'
 
1281
#Display 'LK204'
 
1282
#Display 'MI240'
 
1283
#Display 'CW12232'
 
1284
#Display 'HD44780-generic'
 
1285
#Display 'HD44780-WinAmp'
 
1286
#Display 'HD44780-4bit'
 
1287
#Display 'WDC2704M'
 
1288
#Display 'SC1602D'
 
1289
#Display 'LCM-162'
 
1290
#Display 'CF631'
 
1291
#Display 'CF632'
 
1292
#Display 'CF633'
 
1293
#Display 'Curses'
 
1294
#Display 'M50530-24x8'
 
1295
#Display 'LCDTerm'
 
1296
#Display 'SimpleLCD'
 
1297
#Display 'BA63'
 
1298
#Display 'CT20x4'
 
1299
#Display 'T6963-240x64'
 
1300
#Display 'T6963-240x128'
 
1301
#Display 'T6963-240x128D'
 
1302
#Display 'XWindow'
 
1303
#Display 'IRLCD'
 
1304
#Display 'USBLCD'
 
1305
#Display 'BWCT'
 
1306
#Display 'Image'
 
1307
#Display 'Trefon'
 
1308
#Display 'LCD2USB'
 
1309
#Display 'LPH7508-serdisplib'
 
1310
#Display 'LPH7508'
 
1311
#Display 'ctinclud'
 
1312
#Display 'picoLCD'
 
1313
#Display 'VNC'
 
1314
Display 'GLCD2USB'
 
1315
 
 
1316
#Layout 'Default'
 
1317
Layout 'TestLayer'
 
1318
#Layout 'TestImage'
 
1319
#Layout 'L8x2'
 
1320
#Layout 'L16x1'
 
1321
#Layout 'L16x2'
 
1322
#Layout 'L20x2'
 
1323
#Layout 'L40x2'
 
1324
#Layout 'Test'
 
1325
#Layout 'Test2'
 
1326
#Layout 'TestGPO'
 
1327
#Layout 'Debug'
 
1328
#Layout 'TestIcons'