[Nut-upsdev] new variable
Kiss Gabor (Bitman)
kissg at ssg.ki.iif.hu
Thu Oct 1 07:06:41 UTC 2009
> The question is: how could I tune the above values (42 and 1.3)
> instead of wiring hard into the program code?
> I though I need some config file that contains this:
> battery.current: 42.0
> battery.current.recharge: 1.3
> etc.
Ooops.... finally I found it.
The best place for config parameters is ups.conf:
[test1]
driver = powercut
desc = "Simulated power break"
current_discharge = 42
current_charge = 1.3
then I can retrieve them by
getval("current_discharge")
and
getval("current_charge")
Sorry for the line noise. :)
Gabor
More information about the Nut-upsdev
mailing list