diff options
author | reinelt <> | 2004-03-20 23:09:01 +0000 |
---|---|---|
committer | reinelt <> | 2004-03-20 23:09:01 +0000 |
commit | dccc2a60656722c2f595a1b35a9ca31da8d62b5e (patch) | |
tree | 3eee48c69eb93c6ecaaa2550353ae65c9c487e20 /lcd4linux.conf.sample | |
parent | 66a82276ec8f48180f3458bfd758bc383161c739 (diff) | |
download | lcd4linux-dccc2a60656722c2f595a1b35a9ca31da8d62b5e.tar.gz |
[lcd4linux @ 2004-03-20 23:09:01 by reinelt]
MySQL plugin fixes from Javi
Diffstat (limited to 'lcd4linux.conf.sample')
-rw-r--r-- | lcd4linux.conf.sample | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/lcd4linux.conf.sample b/lcd4linux.conf.sample index e5a3f48..971e559 100644 --- a/lcd4linux.conf.sample +++ b/lcd4linux.conf.sample @@ -101,6 +101,14 @@ Plugin Seti { } +Plugin MySQL { + server 'gsmlandia.com' # if none, localhost assumed + port 3306 # if none, MySQL default assumed + user 'lcd4linux' # if none, lcd4linux unix owner assumed + password 'lcd4linux' # if none, empty password assumed + database 'lcd4linux' # MUST be specified +} + Widget OS { class 'Text' expression '*** '.uname('sysname').' '.uname('release').' ***' @@ -213,6 +221,24 @@ Widget Eth0Bar { update tack } +Widget MySQLtest1 { + class 'Text' + expression MySQLquery('SELECT id FROM table1') + width 8 + align 'R' + prefix 'MySQL' + update minute +} + +Widget MySQLtest2 { + class 'Text' + expression MySQLstatus() + width 20 + align 'M' + prefix 'Status: ' + update minute +} + Widget Heartbeat { class 'Icon' speed 800 @@ -411,6 +437,18 @@ Layout Test { # Row16.Col1 'Test' } + +Layout testMySQL { + Row1 { + Col1 'Heartbeat' + Col2 'MySQLtest1' + } + Row2 { + Col1 'MySQLtest2' + } +} + + #Display 'LK204' #Display 'HD44780-20x4' #Display 'M50530-24x8' |