[Lcdproc] Changes in LCDproc CVS

Peter Marschall peter@adpm.de
Sat Oct 13 17:02:05 2007


Hi list,

in the last few days I have committed a few changes to the CVS that I
consider interesting enouth to write a little about them.

- Display of current values for all input widget types in menus.
  Up to now, only for "checkbox" and "ring" input types the current
  values were visible in a menu.

  E.g. you had a menu like the following:
	Checkbox       N
	Ring         One
	Alpha
	IP
	Numeric
	Slider

  With the changes now the current values for all widget types
  are shown in the menu containing the widgets.

  E.g. now you have
	Checkbox       N
	Ring         One
	Alpha      Input
	IP     10.10.1.2
	Numeric       -5
	Slider       550

  This change only affects how the values are displayed. The
  editing modes for these widgets havbe not been changed.

- lcdexec, the program starter in the LCDproc suite, now supports
  defining parameters to commands in the config file. There 
  parameters, that are represented as menu input widgets can then
  be changed interactively on the display.

  E.g. you can call shutdown with different options

 	[Shutdown]
	Exec="/sbin/shutdown $HALT +$WHEN"
	Parameter=HALT
	PARAMETER=WHEN

	[HALT]
	Type=checkbox
	DisplayName=Halt?
	Value=Off
	OffText="-r"
	OnText="-h"

	[WHEN]
	Type=slider
	DisplayName="Minutes"
  	Value=0
	MinValue=0
	MaxValue=15
	
  Unfortunately documentation is still a bit scarce (I haven't gotten
  round yet to writing it.)
  In case you're interested in all the config options available
  for parameters have a look at lcdexec's config file lcdexec.conf.

Please test and send your fedback to the ML so that we can shake
out bugs.

Have fun with LCDproc
Peter

-- 
Peter Marschall
peter@adpm.de