Display dpf {
Driver 'DPF'
Port 'usb0'
Font '6x8'
Foreground 'ffffff'
Background '000000'
Basecolor '000000'
}
Widget TIME {
class 'Text'
expression strftime('%a, %d.%m.%Y -- %H:%M', time())
width 54
align 'C'
update minute
Background '000000'
Foreground 'ffffff'
}
Widget RAM {
class 'Text'
expression (floor(((meminfo('MemTotal'))-(meminfo('Buffers'))-(meminfo('Cached'))-(meminfo('MemFree')))*10/1024)/10).' / '.(floor(meminfo('MemTotal')*10/1024)/10)
prefix 'Ram: '
postfix ' MB'
width 21
#precision 0
align 'R'
update sekunde
Foreground 'ffffff'
Background 'FFFFFF00'
}
Widget Busy {
class 'Text'
expression proc_stat::cpu('busy', 500)
prefix 'Busy'
postfix '%'
width 21
precision 1
align 'R'
update sekunde
Foreground 'ffffff'
Background 'FFFFFF00'
}
Widget BusyBar {
class 'Bar'
expression proc_stat::cpu('busy', 500)
expression2 proc_stat::cpu('system', 500)
length 21
direction 'E'
update sekunde
Foreground 'ffffff'
Background '00000080'
BarColor0 '5f5fff'
BarColor1 'ff5f5f'
}
Widget Load {
class 'Text'
expression loadavg(1)
prefix 'Load'
postfix loadavg(1)>1.0?'!':' '
width 21
precision 1
align 'R'
update sekunde
Foreground 'ffffff'
Background 'FFFFFF00'
}
Widget LoadBar {
class 'Bar'
expression loadavg(1)
max 5.0
length 21
direction 'E'
update sekunde
Foreground 'ffffff'
Background '00000080'
BarColor0 '5f5fff'
BarColor1 'ff5f5f'
}
Widget Uptime {
class 'Text'
width 52
length 31
align 'L'
expression uptime('%d days %H:%M')
prefix 'Up : '
Foreground 'ffffff'
Background 'FFFFFF00'
update minute
}
Widget BACK {
class 'Image'
file '/var/lcd/back.png'
visible 1
update 0
}
Widget IMAGE {
class 'Image'
file '/tmp/lcd.png'
align 'C'
update sekunde
reload 1
visible 1
inverted 0
}
Widget Channel {
class 'Text'
width 21
# length 21
align 'L'
expression file::readline('/tmp/lcdchan.txt', 1)
# prefix 'Sender: '
Foreground 'ffffff'
Background 'FFFFFF00'
update sekunde
}
Widget Infobar {
class 'Text'
width 62
align 'C'
expression file::readline('/tmp/infobar.txt', 1)
Foreground 'ffffff'
Background 'FFFFFF00'
update sekunde
}
Widget EPG {
class 'Text'
width 52
# length 21
#align 'C'
expression file::readline('/tmp/lcdepgt.txt', 1)
# prefix 'Sendung: '
Foreground 'ffffff'
Background 'FFFFFF00'
update sekunde
}
Widget PROGRESS {
class 'Bar'
expression file::readline('/tmp/prozent.txt', 1)
min 0
max 100
update 3000
length 42
direction 'E'
style '0'
background 'FFFFFF'
foreground '00FF00'
}
Widget PROGRESS_PROZ {
class 'Text'
expression file::readline('/tmp/prozent.txt', 1)
postfix ' %'
width 5
align 'R'
style bold
}
Display 'DPF'
Layout mylayout {
Row19.Col02 'Channel'
Row21.Col02 'EPG'
Row24.Col02 'Busy'
Row26.Col30 'RAM'
Row26.Col02 'BusyBar'
Row28.Col01 'Infobar'
Row24.Col30 'Uptime'
Row30.Col01 'TIME'
Layer 1 {
X10.Y10 'IMAGE'
}
Layer 2 {
Row17.Col4 'PROGRESS'
}
Layer 2 {
Row17.Col47 'PROGRESS_PROZ'
}
}
Layout 'mylayout'
Variables {
tick 1000
sekunde 1000
tack 500
minute 60000
}