Jump to content

Add power usage to UPS integration


Recommended Posts

  • 2 months later...
On 8/27/2023 at 8:00 AM, Fifthy said:

Hi,

It would be great to see how much power the Unraid server has consumed monthly/weekly/daily, the information can probably quiet easily be extracted from the APC webintegration. The information could then be parsed to the dashboard.

Can you provide the output of /sbin/apcaccess

Link to comment
6 minutes ago, SimonF said:

^ This is the command to run in the terminal rather than cat or nano

 

Ofcourse, this is the output:

 

Quote

APC      : 001,044,1034
DATE     : 2023-11-26 14:10:57 +0100  
HOSTNAME : Server
VERSION  : 3.14.14 (31 May 2016) slackware
UPSNAME  : APCUPS
CABLE    : Ethernet Link
DRIVER   : SNMP UPS Driver
UPSMODE  : Stand Alone
STARTTIME: 2023-11-26 04:40:03 +0100  
MODEL    : Smart-UPS 1500
STATUS   : ONLINE 
LINEV    : 233.0 Volts
LOADPCT  : 8.0 Percent
BCHARGE  : 100.0 Percent
TIMELEFT : 129.0 Minutes
MBATTCHG : 10 Percent
MINTIMEL : 10 Minutes
MAXTIME  : 0 Seconds
MAXLINEV : 234.0 Volts
MINLINEV : 233.0 Volts
OUTPUTV  : 233.0 Volts
SENSE    : High
DWAKE    : 1000 Seconds
DSHUTD   : 120 Seconds
DLOWBATT : 5 Minutes
LOTRANS  : 207.0 Volts
HITRANS  : 253.0 Volts
ITEMP    : 31.0 C
ALARMDEL : No alarm
BATTV    : 27.0 Volts
LINEFREQ : 49.0 Hz
LASTXFER : Automatic or explicit self test
NUMXFERS : 0
TONBATT  : 0 Seconds
CUMONBATT: 0 Seconds
XOFFBATT : N/A
SELFTEST : OK
STESTI   : OFF
STATFLAG : 0x05000008
MANDATE  : 08/08/2015
SERIALNO : 3S1532X01316
BATTDATE : 03/15/2020
NOMOUTV  : 230 Volts
FIRMWARE : UPS 09.3 (ID18) 
END APC  : 2023-11-26 14:11:49 +0100  

 

Link to comment

Here are some screenshots that I consider to be interesting for this:

As you can see, there is data in the UPS that either directly tells you how much the consumption is, or there are parameters from which you can calculate it yourself (amps, voltage). How to extract them is beyond me.

 

image.png.c41e3edd6908fff2b18ea570411bc6ac.png

 

image.png.ecde1710419265400bff49fff04c4afa.png

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...