Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Display dpf {
- Driver 'DPF'
- Port 'usb0'
- Font '12x16'
- Foreground 'ffffff'
- Background '000000'
- Basecolor '000000'
- Orientation 3 # Orientation value from 0-3
- Backlight 2 # Backlight variable control
- }
- Display Image {
- Driver 'Image'
- Format 'PNG'
- Size '320x240'
- Font '12x16'
- Pixel '1+0'
- Gap '0x0'
- Foreground 'ffffff'
- Background '000000'
- Basecolor '000000'
- }
- Widget Date {
- class 'Text'
- expression strftime('%a %d %b %H:%M:%S',time())
- width 26
- align 'C'
- update tick
- Background '008000'
- Foreground 'ffffff'
- }
- Widget Busy {
- class 'Text'
- expression proc_stat::cpu('busy', 500)
- prefix 'Busy '
- postfix '%'
- width 11
- precision 1
- align 'R'
- update tick
- Foreground 'ffffff'
- Background 'FFFFFF00'
- }
- Widget BusyBar {
- class 'Bar'
- expression proc_stat::cpu('busy', 1000)
- expression2 proc_stat::cpu('system', 1000)
- length 13
- direction 'E'
- update tack
- Foreground 'ffffff'
- Background '00000080'
- BarColor0 '5f5fff'
- BarColor1 'ff5f5f'
- min 0
- max 100
- }
- Widget Wan {
- class 'Text'
- expression (netdev('3g-wan', 'Rx_bytes', 500)+netdev('3g-wan', 'Tx_bytes', 500))/1024
- prefix '3g-wan'
- postfix 'K'
- width 11
- precision 0
- align 'R'
- update tick
- Foreground 'ffffff'
- Background 'FFFFFF00'
- }
- Widget WanBar {
- class 'Bar'
- expression netdev('3g-wan', 'Rx_bytes', 500)/1024
- expression2 netdev('3g-wan', 'Tx_bytes', 500)/1024
- length 13
- direction 'E'
- update tack
- Foreground 'ffffff'
- Background '00000080'
- BarColor1 '5f5fff'
- BarColor0 'ff5f5f'
- max 100
- }
- Widget Uptime {
- class 'Text'
- expression 'Up: '.uptime('%d days %H:%M:%S')
- width 26
- align 'C'
- update tick
- Background '5f5fff'
- }
- Widget TempCpu {
- class 'Text'
- expression i2c_sensors('temp2_input')
- prefix 'CPU Tmp: '
- width 13
- align 'R'
- update tick
- precision 1
- }
- Widget TempMb {
- class 'Text'
- expression i2c_sensors('temp1_input')
- prefix 'Brd Tmp: '
- width 13
- align 'R'
- update tick
- precision 1
- }
- Widget WetterTmp {
- class 'Text'
- expression file::readline('/tmp/wetterParsed', 1)
- prefix 'tmp '
- postfix '°'
- width 8
- align 'R'
- update minute
- Background '00000000'
- }
- Widget WetterTmpTmr {
- class 'Text'
- expression file::readline('/tmp/wetterParsed', 10)
- postfix '°'
- width 4
- align 'R'
- update minute
- Background '00000000'
- }
- Widget WetterWnd {
- class 'Text'
- expression file::readline('/tmp/wetterParsed', 2)
- prefix 'wnd '
- width 8
- align 'R'
- update minute
- Background '00000000'
- }
- Widget WetterWndSpd {
- class 'Text'
- expression file::readline('/tmp/wetterParsed', 3)
- presission 0
- prefix 'spd '
- width 8
- align 'R'
- update minute
- Background '00000000'
- }
- Widget WetterHumid {
- class 'Text'
- expression file::readline('/tmp/wetterParsed', 4)
- prefix 'hum '
- postfix '%'
- width 8
- align 'R'
- update minute
- Background '00000000'
- }
- Widget WetterPres {
- class 'Text'
- expression file::readline('/tmp/wetterParsed', 5).file::readline('/tmp/wetterParsed', 6)
- prefix 'prs '
- width 8
- align 'R'
- update minute
- Background '00000000'
- }
- Widget WetterIcon {
- class 'Image'
- file '/mnt/sd/icons/wetter/'.file::readline('/tmp/wetterParsed', 7).'.png'
- update minute
- reload 1
- visible 1
- }
- Widget WetterIconTmr {
- class 'Image'
- file '/mnt/sd/icons/wetter/'.file::readline('/tmp/wetterParsed', 11).'.png'
- update minute
- reload 1
- visible 1
- }
- Widget WanTransfer {
- class 'Text'
- expression exec('awk -f /mnt/sd/bin/calcTransfer.awk', 600000)
- prefix 'WAN: '
- postfix ' MB'
- width 13
- align 'R'
- update tick
- precision 2
- }
- Widget WanTransferBar {
- class 'Bar'
- expression exec('awk -f /mnt/sd/bin/calcTransfer.awk', 600000)/30
- expression2 exec('awk -v today=1 -f /mnt/sd/bin/calcTransfer.awk', 600000)
- length 13
- direction 'E'
- style 'H'
- update tick
- Foreground 'ffffff'
- Background '00000080'
- BarColor0 'ff5f5f'
- BarColor1 '5f5fff'
- max 170
- }
- Widget MailIcon {
- class 'Image'
- file '/mnt/sd/icons/gmail-icon.png'
- visible (time() % 2) & (file::readline('/tmp/newMail', 1) != '0')
- update tick
- background '00000000'
- }
- Widget Clock1 {
- class 'Image'
- file '/mnt/sd/icons/digits/'.substr(strftime('%H', time()),0,1).'.png'
- visible 1
- update tick
- reload 1
- }
- Widget Clock2 {
- class 'Image'
- file '/mnt/sd/icons/digits/'.substr(strftime('%H', time()),1,1).'.png'
- visible 1
- update tick
- reload 1
- }
- Widget Clock3 {
- class 'Image'
- file '/mnt/sd/icons/digits/'.substr(strftime('%M', time()),0,1).'.png'
- visible 1
- update tick
- reload 1
- }
- Widget Clock4 {
- class 'Image'
- file '/mnt/sd/icons/digits/'.substr(strftime('%M', time()),1,1).'.png'
- visible 1
- update tick
- reload 1
- }
- Widget ClockSC {
- class 'Image'
- file '/mnt/sd/icons/digits/dp.png'
- visible 1
- update 0
- }
- Layout MainLayout {
- Row01.Col01 'Date'
- Row03.Col01 'Busy'
- Row04.Col01 'BusyBar'
- Row03.Col14 'TempCPU'
- Row04.Col14 'TempMb'
- Row05.Col01 'Wan'
- Row06.Col01 'WanBar'
- Row05.Col14 'WanTransfer'
- Row06.Col14 'WanTransferBar'
- Row09.Col01 'WetterTmp'
- Row09.Col09 'WetterTmpTmr'
- Row10.Col01 'WetterWnd'
- Row11.Col01 'WetterWndSpd'
- Row12.Col01 'WetterHumid'
- Row13.Col01 'WetterPres'
- Row15.Col01 'Uptime'
- Layer 2 {
- X105.Y275 'MailIcon'
- X93.Y50 'WetterIcon'
- X93.Y100 'WetterIconTmr'
- X145.Y135 'Clock1'
- X145.Y175 'Clock2'
- X145.Y220 'ClockSC'
- X145.Y240 'Clock3'
- X145.Y280 'Clock4'
- }
- Layer 0 {
- }
- }
- Display 'DPF'
- #Display 'Image'
- Layout 'MainLayout'
- Variables {
- tick 1000
- tack 200
- minute 60000
- hour 3600000
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement