dedepene
(Dedepene)
January 22, 2022, 5:22pm
1
upsrw -s ups.beeper.status=disabled [email protected] :8989
Trying to torn off the beeper here, but I keep getting
Unexpected response from upsd: ERR READONLY
in response. Seems like the variables can’t be changed while the driver is active and there’s no access to ups.conf as suggested here
How does one change a variable in from the addon??
Thanks!
hopkins35
(Steve Hopkins)
July 11, 2022, 1:23pm
2
Is that variable listed when you run:
upsrw "[email protected] :8989"
I was getting the same response when attempting to set the battery date on a USB attached APC UPS, turns out the variable wasn’t available to be set but I could successfully change others that were listed. Also does your user have the “set” action privilege in the addon?
dedepene
(Dedepene)
July 12, 2022, 7:51am
3
“set” is in the config, and this command you mentioned doesn’t show anything meaningful in my context:
root@a0d7b954-nut:/# upsrw “[email protected] :8989”
[outlet.desc]
Outlet description
Type: STRING
Maximum length: 20
Value: Main Outlet
[output.voltage.nominal]
Nominal output voltage (V)
Type: ENUM
Option: “200”
Option: “208”
Option: “220”
Option: “230” SELECTED
Option: “240”
[ups.delay.shutdown]
Interval to wait after shutdown with delay command (seconds)
Type: STRING
Maximum length: 10
Value: 20
[ups.start.battery]
Allow to start UPS from battery
Type: STRING
Maximum length: 5
Value: yes
hopkins35
(Steve Hopkins)
July 12, 2022, 8:08am
4
‘outlet.desc’, ‘output.voltage.nominal’, ‘ups.delay.shutdown’ and ‘ups.start.battery’ are the only variables you will be able to change with upsrw.