My UPS reports some values incorrectly, but in /etc//nut/ups.conf you can define default and override values (let's say default.output.voltage.nominal = 120 or override.input.transfer.low = 96). Then the server reports the correct values when you ask it though upsc.
But every time nut-server is restarted, the config files are rewritten from the values in /etc/config/nut_server. The documentation says that you can add "default" and "override" options to that file, but I'm not at all clear about the syntax. Can anyone help?
Same problem here, I tried using the override section in several different ways but without success, I have also compiled the last snapshot but with same result. To correctly use my ups I have to delete the symlinks in /etc/nut and use the standard nut config files.
Any help in using the override section in the correct way? Or simply it doesn't work?
There was a bug in the nut-server initscript (# 13359) that caused the override/default options to be written out wrong to the nut config file. It was also backported to the 19.07 branch (# 14269).
The syntax goes like this: config override 'override_input_transfer_high' option value '140'
config default 'default_output_voltage_nominal' option value '120'
in /etc/config/nut_server becomes this in /etc/nut/ups.conf/: override.input.transfer.high = 140 default.output.voltage.nominal = 120