> 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

_______________________________________________
Nut-upsdev mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev

Reply via email to