From: Richard <sf...@16...> - 2006-11-15 08:02:25
|
Leszek100tka wrote: > Hello, > > I have a 20x4 lcd display (of course hd44780), my config looks like something > here below (I know that it should be written in a different way, but now i > really dont know how:): > > > Widget Load1 { > class 'Text' > expression loadavg(1) > prefix 'Load: ' > # postfix loadavg(1)>1.0?'!':' ' > width 10 > precision 2 > align 'L' > update tick > } > ... > Display 'HD44780-generic' > Layout 'L20x4' > Variables { > tick 500 > tack 100 > minute 60000 > } > > and the problem is that there is something wrong with the first line on LCD. > Now I have on the first line 12:07 some spaces and at the end of the line > 6:03:15 (counting up - its uptime). I see that its really messed up, because > there should be up days 0 6:03:15. > > When i`ve uncommented Row3 / Col5 with that exec formula, the uptime line is > displayed correctly. > > Why there is some connections between I and III line? sometime i`ve noticed > that when i start lcd4linux, the display looks good, then i restart lcd4linux > and first line is messed up. > > Next i`ve problem with reading data from file, i`ve temperature in one file. > I`m trying do read it with exec and cat, no results only some garbage: > > sh: -c: line 1: syntax error near unexpected token `)' > sh: -c: line 1: `cat /home/hardtmuth/my_files/temp_temp/temp_raw.txt, 1000)' > exec error: could not read from pipe > 'cat /home/hardtmuth/my_files/temp_temp/temp_raw.txt, 1000)': Success > > and doing this in a different way, by file::readline, i get: > > Evaluator: unknown function 'file::readline' in > <file::readline('/home/hardtmuth/my_files/temp_temp/temp_raw.txt', 1000)> > > what am i doing wrong? Should I pass when i was compiling lcd4linux arguments > with plugins to include or by default all plugins are compiled in? > > Sorry for huge post, but i think that posting in one huge post is better that > few smaller :). > Hi Leszek100tka (?) Works for me on a USB 20x4 - I prefixed the text in your post with Display USBLCD20x4 { Driver 'LCD2USB' Size '20x4' asc255bug 1 Icons 1 } and replaced the first line in final stanza with # Display 'HD44780-generic' Display 'USBLCD20x4' - otherwise *exactly* as you posted. Maybe try moving the 'Display' stanza to the top? Also - check the driver is valid / installed. Now I want to get the third line to show memory & especially swap (for use on an old machine with only 256M)... BTW: I spotted a missing closing bracket ")" in the 2 lines like this: expression (netdev('eth0', 'Rx_bytes', 500)/1024) ^ ------------------------------------------------/ Works both with and without this though! Hope this is use -- Regards Richard (aka MQ) mailto:sf...@16... |