Layout 'Dockstar'
Display 'DPF'
Variables {
# Ticks:
second 1000
minute 60 * second
hour 60 * minute
# Standard Dimensions:
linesize 53 # max line length, for status lines etc.
width100 51 # full width after padding (border)
width050 24 # 1/2 of full width
width033 17 # 1/3 of full width
width025 12 # 1/4 of full width
width010 5 # 1/10 of full width
# Colors:
black '000000'
white 'ffffff'
red 'ff0000'
tuerkis '00ffff'
darkblue '000066'
lightgray 'b2b2b2'
darkgray '191919'
barcolor0 '5f5fff'
barcolor1 'ff5f5c'
}
Display dpf {
Driver 'DPF'
Port 'usb0'
Font '6x8'
Foreground white
Background darkblue
Basecolor darkblue
}
Widget System {
class 'Text'
expression '*** ' . uname('nodename') . ' '. netinfo::ipaddr('wlan0') . ' ' . uname('machine') . ' ' . uname('release') . ' ***'
width linesize
align 'C'
update 0
Background lightgray
Foreground black
}
Widget Time {
class 'Text'
expression strftime('%a, %d.%m.%Y -- %H:%M:%S', time()) . ' -- Up: ' . uptime('%d days %H:%M:%S')
width linesize
align 'C'
update 1 * second
Background lightgray
Foreground black
}
Widget Busy {
class 'Text'
expression proc_stat::cpu('busy', 0.5 * second)
prefix 'Busy'
postfix '%'
width width050
precision 1
align 'R'
update 1 * second
}
Widget BusyBar {
class 'Bar'
expression proc_stat::cpu('busy', 0.5 * second)
expression2 proc_stat::cpu('system', 0.5 * second)
length width050
direction 'E'
update 1 * second
Background darkgray
BarColor0 barcolor0
BarColor1 barcolor1
}
Widget Load {
class 'Text'
expression loadavg(1)
prefix 'Load'
width width050
precision 1
align 'R'
update 1 * second
}
Widget LoadBar {
class 'Bar'
expression loadavg(1)
max 4.0
length width050
direction 'E'
update 1 * second
Background darkgray
BarColor0 barcolor0
BarColor1 barcolor1
}
Widget Disk {
class 'Text'
expression (diskstats('sd[a-z]$', 'read_sectors', 0.5 * second) + diskstats('sd[a-z]$', 'write_sectors', 0.5 * second)) / 2 / 1024
prefix 'HDD'
postfix ' MB/s'
width width050
precision 1
align 'R'
update 1 * second
}
Widget DiskBar {
class 'Bar'
expression diskstats('sd[a-z]$', 'read_sectors', 0.5 * second) / 2 / 1024
expression2 diskstats('sd[a-z]$', 'write_sectors', 0.5 * second) / 2 / 1024
length width050
direction 'E'
update 1 * second
Background darkgray
BarColor0 barcolor0
BarColor1 barcolor1
}
Widget Bond0 {
class 'Text'
expression (netdev('bond0', 'Rx_bytes', 0.5 * second) + netdev('bond0', 'Tx_bytes', 0.5 * second)) * 8 / 1024 / 1024
prefix 'Bond0'
postfix ' Mbit/s'
width width050
precision 1
align 'R'
update 1 * second
}
Widget Bond0Bar {
class 'Bar'
expression netdev('bond0', 'Rx_bytes', 0.5 * second) * 8 / 1024 / 1024
expression2 netdev('bond0', 'Tx_bytes', 0.5 * second) * 8 / 1024 / 1024
length width050
direction 'E'
update 1 * second
Background darkgray
BarColor0 barcolor0
BarColor1 barcolor1
}
Widget MemoryTitle {
class 'Text'
expression 'RAM-Speicher'
width width050
align 'L'
Background lightgray
Foreground black
update 0
}
Widget MemoryTotal {
class 'Text'
expression meminfo('MemTotal') / 1024
prefix 'Total '
postfix ' MB'
width width050
precision 0
align 'R'
update 0
}
Widget MemoryFree {
class 'Text'
expression (meminfo('MemFree') + meminfo('Cached')) / 1024
prefix 'Frei '
postfix ' MB'
width width050
precision 0
align 'R'
update 1 * second
}
Widget MemorySwapped {
class 'Text'
expression (meminfo('SwapTotal') - meminfo('SwapFree')) / 1024
prefix 'Swap '
postfix ' MB'
width width050
precision 0
align 'R'
update 1 * second
}
Widget HDDTempTitle {
class 'Text'
expression 'HDD-Temperatur'
width width050
align 'L'
Background lightgray
Foreground black
update 0
}
Widget HDDTemp1 {
class 'Text'
expression exec('/usr/syno/bin/smartctl -A -n standby -d ata /dev/sda | /bin/grep Temperature_Celsius | /usr/bin/awk \'{print $10}\'', 10 * second)
precision 1
prefix 'sda: '
postfix ' °C'
align 'L'
update 10 * second
}
Widget HDDTemp2 {
class 'Text'
expression exec('/usr/syno/bin/smartctl -A -n standby -d ata /dev/sdb | /bin/grep Temperature_Celsius | /usr/bin/awk \'{print $10}\'', 10 * second)
precision 1
prefix 'sdb: '
postfix ' °C'
align 'R'
update 10 * second
}
Widget HDDSmart1 {
class 'Text'
expression 'SMART sda'
width width050
postfix strstr(exec('/usr/syno/bin/smartctl -H -n standby -d ata /dev/sda | /bin/grep result', 30 * second), 'PASSED') > 0 ? 'OK!' : 'FEHLER!'
Foreground tuerkis
update 10 * second
}
Widget HDDSmart2 {
class 'Text'
expression 'SMART sdb'
width width050
postfix strstr(exec('/usr/syno/bin/smartctl -H -n standby -d ata /dev/sdb | /bin/grep result', 30 * second), 'PASSED') > 0 ? 'OK!' : 'FEHLER!'
Foreground tuerkis
update 10 * second
}
Widget FSSpaceTitle {
class 'Text'
expression 'HDD-Speicher'
width width050
align 'L'
Background lightgray
Foreground black
update 0
}
Widget FSSpace1 {
class 'Text'
expression statfs('/', 'bavail') * statfs('/', 'bsize') / 1024 / 1024 / 1024
prefix '/(Root FS)'
postfix ' GB'
width width050
precision 2
align 'R'
update 10 * second
}
Widget FSSpace2 {
class 'Text'
expression statfs('/volume1', 'bavail') * statfs('/volume1', 'bsize') / 1024 / 1024 / 1024
prefix '/volume1'
postfix ' GB'
width width050
precision 2
align 'R'
update 10 * second
}
Widget ServicesTitle {
class 'Text'
expression 'Festplatten-Status'
width width100
align 'C'
Background lightgray
Foreground black
}
Widget SWRAIDStatus {
class 'Text'
expression 'SHR-RAID '
width width050
postfix strstr(exec('cat /proc/mdstat | grep super', 10 * second), '[UU]') > 0 ? 'OK!' : 'FEHLER!'
Foreground tuerkis
update 10 * second
}
Layout Dockstar {
Row02.Col01 'System'
Row03.Col01 'Time'
Row06.Col02 'Busy'
Row07.Col02 'BusyBar'
Row09.Col02 'Load'
Row10.Col02 'LoadBar'
Row16.Col02 'Disk'
Row17.Col02 'DiskBar'
Row20.Col02 'Bond0'
Row21.Col02 'Bond0Bar'
Row06.Col28 'MemoryTitle'
Row08.Col29 'MemoryTotal'
Row09.Col29 'MemoryFree'
Row10.Col29 'MemorySwapped'
Row13.Col28 'HDDTempTitle'
Row15.Col29 'HDDTemp1'
Row15.Col42 'HDDTemp2'
Row18.Col28 'FSSpaceTitle'
Row20.Col29 'FSSpace1'
Row21.Col29 'FSSpace2'
Row25.Col02 'ServicesTitle'
Row27.Col02 'SWRAIDStatus'
Row27.Col29 'HDDSmart1'
Row29.Col29 'HDDSmart2'
}
/usr/local/bin/lcd4linux -vv
Ich teste sobald ich mal Zeit dazu finde
Hatte ich auch. Bei mir hat ein besseres USB-Kabel Abhilfe geschaffen.Habe jetzt mal eine config geschrieben, leider stürzt das Display immer nach einigen Stunden ab.
Hallo,
zum testen hast du wohl noch keine Zeit gefunden?
Habe jetzt mal eine config geschrieben, leider stürzt das Display immer nach einigen Stunden ab.
Mit deiner neuen Config läufts also?
Dann dürfte das Paket ja in Ordnung sein und alle fehlenden Libs vorhanden
Wenn du das Forum hilfreich findest oder uns unterstützen möchtest, dann gib uns doch einfach einen Kaffee aus.
Als Dankeschön schalten wir deinen Account werbefrei.