Page 4 of 4

Re: Hi, Thanks, and questions about usage and features

PostPosted: Tue Aug 15, 2023 1:07 pm
by fvdw
Looks promising

Re: Hi, Thanks, and questions about usage and features

PostPosted: Wed Aug 16, 2023 5:54 pm
by RiveDC1
Sorry for the delay

I've been looking for a program which could read APCUPSD
It was a perfect RTFM moment when I noticed that APCUPSD can do that... :doh

This comes from the NAS:
Code: Select all
/$ apcaccess
APC      : 001,036,0897
DATE     : 2023-08-16 19:02:33 +0200 
HOSTNAME : bakter.workgroup
VERSION  : 3.14.14 (31 May 2016) unknown
UPSNAME  : bakter.workgroup
CABLE    : USB Cable
DRIVER   : USB UPS Driver
UPSMODE  : Stand Alone
STARTTIME: 2023-08-15 06:09:12 +0200 
MODEL    : Back-UPS XS 950U   
STATUS   : ONLINE
LINEV    : 232.0 Volts
LOADPCT  : 14.0 Percent
BCHARGE  : 100.0 Percent
TIMELEFT : 43.8 Minutes
MBATTCHG : 50 Percent
MINTIMEL : 30 Minutes
MAXTIME  : 0 Seconds
SENSE    : Medium
LOTRANS  : 155.0 Volts
HITRANS  : 280.0 Volts
ALARMDEL : 30 Seconds
BATTV    : 13.7 Volts
LASTXFER : Unacceptable line voltage changes
NUMXFERS : 0
TONBATT  : 0 Seconds
CUMONBATT: 0 Seconds
XOFFBATT : N/A
SELFTEST : NO
STATFLAG : 0x05000008
SERIALNO : 3B1638X28885 
BATTDATE : 2016-09-24
NOMINV   : 230 Volts
NOMBATTV : 12.0 Volts
NOMPOWER : 480 Watts
FIRMWARE : 925.T2 .I USB FW:T2
END APC  : 2023-08-16 19:03:09 +0200 


The same is accessible through the local network too.

I'll do a shutdown test at weekend, and I think that'll conclude the thing

Very thanks for the support!

Re: Hi, Thanks, and questions about usage and features

PostPosted: Wed Aug 16, 2023 7:29 pm
by fvdw
Oke, if the shutdown command doesn't work properly I can supply a more sophisticated one in which also delay and warnings can be send

Re: Hi, Thanks, and questions about usage and features

PostPosted: Mon Aug 21, 2023 9:09 am
by RiveDC1
... and shutdown at 50% was successful. Works like charm.

Thanks for the help :applause

One more question: how can I make the APCUPSD start automatically at every startup?

Re: Hi, Thanks, and questions about usage and features

PostPosted: Mon Aug 21, 2023 1:25 pm
by Jocko
Hi

You can easily do it by using boot jobs feature.

So load the menu "Boot jobs", set-up the feature and enable it. This will create a folder 'cron- boot' in the share fvdw
Then create here a text file with this content :
Code: Select all
#!/bin/sh
[ -f "/etc/apcupsd.conf" ] && apcupsd

Reload Boot jobs menu, you should see now your file in the job lists table. Then check the line so that the script runs at the next booting and save the boot jobs table

Re: Hi, Thanks, and questions about usage and features

PostPosted: Mon Aug 21, 2023 9:12 pm
by fvdw
Be sure the text file is in unix format and not in dos format, so not containing <LF><CR> at the of a line but only <LF>.

If it contains carriage returns the script may not be executed correctly