Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8041

Troubleshooting • Re: Can't configure NUT to shutdown after a set time on battery.

$
0
0
Let's see what information your UPS does provide.

Replace w.x.y.z in the bash script below with the LAN IP address of your Raspberry Pi where NUT server is installed.

Then run the script and report back with its output.
[/quote]

The script when run as-is outputs the following:

Code:

Unable to retrieve UPS information
Taking the first command (sudo upsc ups@pi-home.local (where ups is the name of my ups in the .conf file)) and running it individually returns this output though:

Code:

Init SSL without certificate databasebattery.voltage: 13.60device.type: upsdriver.name: nutdrv_qxdriver.parameter.pollfreq: 30driver.parameter.pollinterval: 2driver.parameter.port: /dev/ttyUSB0driver.parameter.synchronous: autodriver.version: 2.8.0driver.version.data: Q1 0.07driver.version.internal: 0.32driver.version.usb: libusb-1.0.26 (API: 0x1000109)input.frequency: 50.0input.voltage: 235.0input.voltage.fault: 237.0output.voltage: 231.0ups.beeper.status: enabledups.delay.shutdown: 30ups.delay.start: 180ups.load: 5ups.status: OLups.temperature: 25.0ups.type: offline / line interactive

EDIT: After replacing the line and running the script properly this is the final output:

Code:

UPS model: UPS status: OL./ups_script.sh: line 20: / 60: syntax error: operand expected (error token is "/ 60")Battery charged to:  percent

Statistics: Posted by SecretRookie — Sat Jul 12, 2025 7:57 am



Viewing all articles
Browse latest Browse all 8041

Trending Articles