Display 'DPF'
Layout 'mylayout'
Variables {
time_minute 60000
time_second 1000
time_tick second
time_faster 0.5
color_black '000000'
color_white 'ffffff'
color_blue '0000FF'
color_green '00FF00'
color_darkgreen '008000'
color_lightgreen '00FF0080'
color_red 'FF0000'
color_darkred '800000'
color_lightred 'FF000080'
color_transparent 'ffffff00'
color_lighter 'ffffff80'
color_darker '00000080'
color_fg '000000'
color_bg 'FFFFFF44'
color_bar_fg 'ffffff'
color_bar_bg 'FFFFFF44'
color_bar1 '3f3fff'
color_bar2 'ff3f3f'
color_top color_lightgreen
width_full 51
width_half 24
width_logo 29
}
Display dpf {
Driver 'DPF'
Port 'usb0'
Font '6x8'
Foreground color_black
Background color_black
Basecolor color_green
}
Widget Top1 {
class 'Text'
expression ' '
width width_full
align 'C'
speed 100
update time_minute
background color_top
}
Widget Top2 {
class 'Text'
expression 'Fritzbox Status (' . uname('release') .' - ' . uname('machine') . ')'
width width_full
align 'C'
speed 100
update time_minute
background color_top
}
Widget Top3 {
class 'Text'
expression exec('ctlmgr_ctl r telcfg settings/RefreshJournal', time_minute)
width width_full
align 'C'
speed 100
update time_minute
background color_top
}
Widget TIME {
class 'Text'
expression strftime('%a, %d.%m.%Y %H:%M:%S', time()) . ' | Up: ' . uptime('%dT %H:%M:%S')
width width_full
align 'C'
update time_second
background color_bg
foreground color_fg
}
Widget RAM {
class 'Text'
expression (floor(meminfo('MemFree')*10/1024)/10).' / '.(floor(meminfo('MemTotal')*10/1024)/10)
prefix 'RAM'
postfix ' MB'
width width_half
#precision 0
align 'R'
update time_second
Background color_bg
Foreground color_fg
}
Widget DF {
class 'Text'
expression statfs('/var/media/ftp', 'bavail')*statfs('/var/media/ftp', 'bsize')/1024/1024
prefix 'USB'
postfix ' MB frei'
precision 2
width width_half
align 'R'
update time_second * 10
Background color_bg
Foreground color_fg
}
Widget Busy {
class 'Text'
expression proc_stat::cpu('busy', 500)
prefix 'Busy/Sys'
postfix '%'
width width_half
precision 1
align 'R'
update time_second
Background color_bg
Foreground color_fg
}
Widget BusyBar {
class 'Bar'
expression proc_stat::cpu('busy', 500)
expression2 proc_stat::cpu('system', 500)
length width_half
direction 'E'
update time_second * time_faster
Background color_bar_bg
Foreground color_bar_fg
BarColor0 color_bar1
BarColor1 color_bar2
}
Widget Load {
class 'Text'
expression loadavg(1)
prefix 'Load'
postfix loadavg(1)>1.0?'!':' '
width width_half
precision 1
align 'R'
update time_second
Background color_bg
Foreground color_fg
}
Widget LoadBar {
class 'Bar'
expression loadavg(1)
max 5.0
length width_half
direction 'E'
update time_second * time_faster
Background color_bar_bg
Foreground color_bar_fg
BarColor0 color_bar1
BarColor1 color_bar2
}
Widget Disk {
class 'Text'
expression (diskstats('sd[a-z]$', 'read_sectors', 500) + diskstats('sd[a-z]$', 'write_sectors', 500)) / 2048
prefix 'Disk'
postfix ' MB/s'
width width_half
precision 3
align 'R'
update time_second
Background color_bg
Foreground color_fg
}
Widget DiskBar {
class 'Bar'
expression diskstats('sd[a-z]$', 'read_sectors', 500)
expression2 diskstats('sd[a-z]$', 'write_sectors', 500)
length width_half
direction 'E'
update time_second * time_faster
Background color_bar_bg
Foreground color_bar_fg
BarColor0 color_bar1
BarColor1 color_bar2
}
Widget Lan {
class 'Text'
expression (netdev('lan', 'Rx_bytes', 500)+netdev('lan', 'Tx_bytes', 500))/1024/1024
prefix 'LAN'
postfix ' ´MB/s'
width width_half
precision 1
align 'R'
update time_second
Background color_bg
Foreground color_fg
}
Widget LanBar {
class 'Bar'
expression netdev('lan', 'Rx_bytes', 500)
expression2 netdev('lan', 'Tx_bytes', 500)
length width_half
max 12500000
min 0
direction 'E'
update time_second * time_faster
Background color_bar_bg
Foreground color_bar_fg
BarColor0 color_bar1
BarColor1 color_bar2
}
Widget DSLBar {
class 'Bar'
expression netdev('dsl', 'Rx_bytes', 500)
expression2 netdev('dsl', 'Tx_bytes', 500)
length width_half
max 2000000
min 0
direction 'E'
update time_second * time_faster
Background color_bar_bg
Foreground color_bar_fg
BarColor0 color_bar1
BarColor1 color_bar2
}
Widget DSL {
class 'Text'
expression (netdev('dsl', 'Rx_bytes', 500)+netdev('dsl', 'Tx_bytes', 500))/1024
prefix 'DSL'
postfix ' ´KB/s'
width width_half
precision 1
align 'R'
update time_second
Background color_bg
Foreground color_fg
}
Widget IPv4 {
class 'Text'
expression (exec('ctlmgr_ctl r dslstatistic status/ifacestat0/connection_status', 5*time_second) eq 'connected')?exec('ctlmgr_ctl r dslstatistic status/ifacestat0/ipaddr', 5*time_second):'Keine Verbindung'
prefix 'IPv4'
width width_half
align 'R'
update 5*time_second
Background (exec('ctlmgr_ctl r dslstatistic status/ifacestat0/connection_status', 5*time_second) eq 'connected')?color_lightred:color_top
Foreground color_fg
}
Widget IPv6 {
class 'Text'
expression exec('ctlmgr_ctl r ipv6 settings/state', 5*time_second)==5?'Online':'Keine Verbindung'
prefix 'IPv6'
width width_half
align 'R'
update 5*time_second
Background exec('ctlmgr_ctl r ipv6 settings/state', 5*time_second)==5?color_lightred:color_top
Foreground color_fg
}
Widget bg_pic {
class 'Image'
file '/var/media/ftp/lcd4linux/display_bg.png'
reload 0
update 0
inverted 0
visible 1
}
Widget Lightning {
class 'icon'
bitmap {
row1 '...***'
row2 '..***.'
row3 '.***..'
row4 '.****.'
row5 '..**..'
row6 '.**...'
row7 '**....'
row8 '*.....'
}
}
Widget Blob {
class 'Icon'
speed 250
Bitmap {
Row1 '.....|.....|.....'
Row2 '.....|.....|.***.'
Row3 '.....|.***.|*...*'
Row4 '..*..|.*.*.|*...*'
Row5 '.....|.***.|*...*'
Row6 '.....|.....|.***.'
Row7 '.....|.....|.....'
Row8 '.....|.....|.....'
}
}
Widget Caller0 {
class 'Text'
prefix decode(exec('ctlmgr_ctl r telcfg settings/Journal0/Type', 5*time_second),'????', '->[]', '-X[]', '[]->')
expression exec('ctlmgr_ctl r telcfg settings/Journal0/Number', 5*time_second)
postfix ' ' . exec('ctlmgr_ctl r telcfg settings/Journal0/Name', 5*time_second)
width width_full
align 'R'
update 5*time_second
background color_bg
foreground color_fg
}
Widget Caller0Date {
class 'Text'
expression exec(' ctlmgr_ctl r telcfg settings/Journal0/Date', 5*time_second)
width width_full
align 'L'
style 'bold'
update 5*time_second
background color_bg
foreground color_fg
}
Widget Caller1 {
class 'Text'
prefix decode(exec('ctlmgr_ctl r telcfg settings/Journal1/Type', 5*time_second),'????', '->[]', '-X[]', '[]->')
expression exec('ctlmgr_ctl r telcfg settings/Journal1/Number', 5*time_second)
postfix ' ' . exec('ctlmgr_ctl r telcfg settings/Journal1/Name', 5*time_second)
width width_full
align 'R'
update 5*time_second
background color_bg
foreground color_fg
}
Widget Caller1Date {
class 'Text'
expression exec(' ctlmgr_ctl r telcfg settings/Journal1/Date', 5*time_second)
width width_full
align 'L'
style 'bold'
update 5*time_second
background color_bg
foreground color_fg
}
Widget Caller2 {
class 'Text'
prefix decode(exec('ctlmgr_ctl r telcfg settings/Journal2/Type', 5*time_second),'????', '->[]', '-X[]', '[]->')
expression exec('ctlmgr_ctl r telcfg settings/Journal2/Number', 5*time_second)
postfix ' ' . exec('ctlmgr_ctl r telcfg settings/Journal2/Name', 5*time_second)
width width_full
align 'R'
update 5*time_second
background color_bg
foreground color_fg
}
Widget Caller2Date {
class 'Text'
expression exec(' ctlmgr_ctl r telcfg settings/Journal2/Date', 5*time_second)
width width_full
align 'L'
style 'bold'
update 5*time_second
background color_bg
foreground color_fg
}
Layout mylayout {
Row01.Col02 'Top1'
Row02.Col02 'Top2'
Row03.Col02 'Top3'
Row04.Col02 'TIME'
Row06.Col02 'RAM'
Row07.Col02 'DF'
Row09.Col02 'Busy'
Row10.Col02 'BusyBar'
Row11.Col02 'Load'
Row12.Col02 'LoadBar'
Row06.Col29 'IPv4'
Row07.Col29 'IPv6'
Row09.Col29 'Lan'
Row10.Col29 'LanBar'
Row11.Col29 'DSL'
Row12.Col29 'DSLBar'
Row14.Col02 'Caller0Date'
Row15.Col02 'Caller0'
Row16.Col02 'Caller1Date'
Row17.Col02 'Caller1'
Row18.Col02 'Caller2Date'
Row19.Col02 'Caller2'
Layer 2 {
X1.Y1 'bg_pic'
}
}