From: jose <jos...@ya...> - 2012-02-05 21:15:15
|
Hello. First sorry my poor english. I buy on eBay the sure-electronics LCD model "DE-LP14113". First i test on windows. Its work very well. Second, lcd its for machine with debian stable (actually version 6). I install lcd4linux (apt-get install ....) and when try to configure as matrix orbital (same as lcdsmartie) but an error appear. Next i decide do download the SVN zip from web, extract and compile (no especial requirements). Now works on debian, and this is my config file: Variables { tick 500 tack 100 minute 60000 archivo '/tmp/lcd4linux.tmp' } Display LD021 { Driver 'MatrixOrbital' Model 'DE-LD021' Port '/dev/ttyUSB0' Speed 9600 Contrast 0 BackLight 1 } Widget Busy { class 'Text' expression proc_stat::cpu('busy', 500) prefix 'CPU' postfix '%' width 10 precision 1 align 'R' update 1000 } Widget BusyBar { class 'Bar' expression proc_stat::cpu('busy', 500) expression2 proc_stat::cpu('system', 500) length 4 direction 'N' update tack } Widget Eth0BarRx { class 'Bar' expression netdev('eth0', 'Rx_bytes', 500) #expression2 netdev('eth0', 'Tx_bytes', 500) length 2 direction 'N' update tack } Widget Eth0BarTx { class 'Bar' #expression2 netdev('eth0', 'Rx_bytes', 500) expression netdev('eth0', 'Tx_bytes', 500) length 2 direction 'N' update tack } Widget Eth1BarRx { class 'Bar' expression netdev('eth1', 'Rx_bytes', 500) #expression2 netdev('eth1', 'Tx_bytes', 500) length 2 direction 'N' update tack } Widget Eth1BarTx { class 'Bar' #expression2 netdev('eth1', 'Rx_bytes', 500) expression netdev('eth1', 'Tx_bytes', 500) length 2 direction 'N' update tack } Layout discos { Row1 { Col2 'file1' Col1 'Busybar' Col19 'eth0barrx' Col20 'eth0bartx' } Row2 { Col2 'file2' } Row3 { Col2 'file3' Col19 'eth1barrx' Col20 'eth1bartx' } Row4 { Col2 'file4' } } Display 'LD021' Layout 'discos' I remove some of widgets . This sample show on left a vertical bar to cpu use and four vertical bars on rigth to check stat of two networks. On center i write the conten of '/tmp/lcd4linux.tmp' generated by a script, and auto-update every 10 minutes (crontab). Good luck. |