Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Plugin] NUT v2 - Network UPS Tools

Featured Replies

The errors in the logs on the first screenshot are normal because the NUT driver either isn't able to read all values it expects from your UPS - seems your UPS doesn't support all those values the NUT driver is attempting to read - or USB connection wasn't 100% established yet at that point.

 

Second screenshot is not an error but NUT diagnostic messages checking if another process is already running before starting up.

 

Footer seems to be using value from ups.realpower correctly (305W), and 400VA is probably accounting for ups.power in combination with the power factor - but I'll check the code when I get home.

 

EDIT: Okay I found what you mean, it's currently approximating the VA value by calculating it with the total nominal power and the current load. But it should use the ups.power value when it's available, I'll update this in the next version. This is already an "issue" in the older version and I didn't write that code, so might take me a while to update it.

 

Edited by Rysz

  • Replies 2.1k
  • Views 457.6k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • I am stopping updates for my version of the plugin. Update to the latest version 2023.09.17 and then you can remove my version and install Rysz's from CA and it will retain your configs.   T

  • Released 2023.07.26, @ich777 is creating a new package for me to use, and I want to look to move to 2.8 as the default version but will need to check upgrade path works ok.

  • That APC BX series is known to suffer from this (what we believe to be) firmware issue and we've put patches in place to suppress this unwanted behaviour on the UPS side. Here's how you can set it up:

Posted Images

1 hour ago, Rysz said:

EDIT: Code is all correct and using values reported from UPS, possible the footer got updated automatically with newer values after you loaded the NUT settings page.

 

Strange, i was using version 2.8.0 by @SimonF  befor , and all values was the same i think.

i have 10s refresh and they all (stat+footer+nut details) refresh at the same time .

 

Screenshot_20230905_094152.png.9782c115ded4781e89288394f907ca91.pngScreenshot_20230905_094202.thumb.png.7710eb1b57326f0ace6cbd68ed63aa7b.pngScreenshot_20230905_094213.png.df657947dd2fc78cd252c7f10d35f46a.png

 

Also found atemp to reconnect may times from the slave client in Windows.

 

image.thumb.png.b4a420c5bda1e84cf766d29e91e29e74.png

I just updated my post, I found out what is happening with the VA value - I'll update this with the next version, but this should've been the same in Simon's version because that code wasn't changed.

 

Is there anything regarding the connection in the logs? I can't read the WinNUT logs so no clue what's happening there. Did this also happen with Simon's version before? If not, probably best to switch back if your UPS plays more nicely with the older NUT backend.

 

Edited by Rysz

10 hours ago, Rysz said:

I just updated my post, I found out what is happening with the VA value - I'll update this with the next version, but this should've been the same in Simon's version because that code wasn't changed.

 

Is there anything regarding the connection in the logs? I can't read the WinNUT logs so no clue what's happening there. Did this also happen with Simon's version before? If not, probably best to switch back if your UPS plays more nicely with the older NUT backend.

 

 

OK, Thanks a lot,  im not sure about lasted version of Simon's but some version befor i checked and think they was the same values.

about WinNUT maybe its my bad and its tryed to connect when server was not ready, i will check it again also with 2.8.0 version.

Thanks for you help

 

 

On 9/5/2023 at 9:54 AM, yonesmit said:

Hi,

I have a suggestion to enhance your plugin, at last for me...

My UPS when it's connected to power always display status as:

ups.status: OL CHRG

So the footer icon always is displayed as battery charging even if battery charge is 100%. I think that if value of battery.charge is 100 you should display icon as battery-full and not battery-charging. This can be easily done when you select the icon to display adding a check.

Also in this way I get a chance to get the replacement battery icon, now it will never be displayed in my UPS.

 

Thanks for your work

Best Regards,

 

 

 

Sorry this is not really a bug but what your UPS actually reports, so it's probably always float-charging... so maybe that status is not so wrong here. Most users want to know when their UPS is charging, so I can't just override because battery is at 100%.


But don't worry about the replacement notification icon, because that always takes priority over any other battery status, so you will see it and get the notification even if it is charging the battery at the same time - see example here:

 

grafik.png.c84d84015f7657a3a45aa0163c57d819.png

 

grafik.png.c44c44dc12b59bc27dc8e7c92fb0ca33.png

 

On 9/6/2023 at 7:32 AM, Masterwishx said:

 

OK, Thanks a lot,  im not sure about lasted version of Simon's but some version befor i checked and think they was the same values.

about WinNUT maybe its my bad and its tryed to connect when server was not ready, i will check it again also with 2.8.0 version.

Thanks for you help

 

 

 

The VA should display correctly with the latest update, please try it and report back here.

40 minutes ago, Rysz said:

Sorry this is not really a bug but what your UPS actually reports, so it's probably always float-charging... so maybe that status is not so wrong here. Most users want to know when their UPS is charging, so I can't just override because battery is at 100%.

I never said it was a bug, it's simply a cosmetic option I would like to have: not have the icon loading all the time. The problem is not from plugin, it comes from NUT, the own usbhid driver use this code:

	if ((ups_status & STATUS(CHRG)) &&
		!(ups_status & STATUS(FULLYCHARGED))) {
		status_set("CHRG");		/* charging */
	}

The problem is that FULLYCHARGED status is only supported by some subdrivers, the others will display always as CHRG. Note that usbhid driver is using FULLYCHARGED to stop displaying "CHRG" even the ups status is CHRG. The same i was requesting. No problem I can live with it.

So, the real fact is that the info provided by NUT is only as real as the driver used is supported. Some drivers are not fully developed or simply can't support all features. And also NUT is doing some assumptions: for example that UPS stop charging when status is FULLYCHARGED although the status is also CHRG.

May be I should request it to NUT developers.

 

Thanks for your work.

 

Edited by yonesmit

2 minutes ago, yonesmit said:

I never said it was a bug, it's simply a cosmetic option I would like to have: not have the icon loading all the time. The problem is not from plugin, it comes from NUT, the own usbhid driver use this code:

Sorry this is not really a bug but what your UPS actually reports, so it's probably always float-charging... so maybe that status is not so wrong here. Most users want to know when their UPS is charging, so I can't just override because battery is at 100%.

	if ((ups_status & STATUS(CHRG)) &&
		!(ups_status & STATUS(FULLYCHARGED))) {
		status_set("CHRG");		/* charging */
	}

The problem is that FULLYCHARGED status is only supported by some subdrivers, the others will display always as CHRG. Note that usbhid driver is using FULLYCHARGED to stop displaying "CHRG" even the ups status is CHRG. The same i was requesting. No problem I can live with it.

So, the real fact is that the info provided by NUT is only as real as the driver used is supported. Some drivers are not fully developed or simply can't support all features. And also NUT is doing some assumptions: for example that UPS stop charging when status is FULLYCHARGED although the status is also CHRG.

May be I should request it to NUT developers.

 

Thanks for your work.

 

 

Thanks for the additional information, I'll take another look at the NUT backend code in question and will give it some more thought - I'll report back here as soon as I can. 😊

23 hours ago, Rysz said:

The VA should display correctly with the latest update, please try it and report back here.

 

Thanks ,its OK now

Ok, so how are you getting the footer to display w/va values?  Mine will not do it regardless of how I have it set.  I am running 6.11.5 and an APC 1500 Smart-UPS Lithium Ion on the latest version of UPS FW and NMC2 FW.

image.png.0d6c5a98abdc78ab02b23153edc6d3a9.png

 

May have figured it out... the load is to low when my server idles with no disks spinning.  I fired up a couple of disks and it did populate.

Edited by mattw

9 minutes ago, mattw said:

Ok, so how are you getting the footer to display w/va values?  Mine will not do it regardless of how I have it set.  I am running 6.11.5 and an APC 1500 Smart-UPS Lithium Ion on the latest version of UPS FW and NMC2 FW.

image.png.0d6c5a98abdc78ab02b23153edc6d3a9.png

 

May have figured it out... the load is to low when my server idles with no disks spinning.  I fired up a couple of disks and it did populate.

 

Can you post the NUT diagnost ics file at a moment when this problem happens? Go to NUT settings and below the data table there's "Save Diagnost ics". It's possible your UPS cuts off the values when there's too little power being drawn so calculation fails.

 

Edited by Rysz

Sure, will do.  It will be Saturday...  I am pretty sure that the problem is not enough power consumption.  According to my monitored plug the server is idle at about 37-39 watts.

So Yesterday Power went off. On Switching back the Server, I got an alert that the plugin was removed because it was not compatible with my OS. Note that the Plugin has been in use for a month just fine.

 

Shouldn't Compatibility be established at the Plugin Installation Stage. Not some time down the line...

1 hour ago, Alcapone001 said:

So Yesterday Power went off. On Switching back the Server, I got an alert that the plugin was removed because it was not compatible with my OS. Note that the Plugin has been in use for a month just fine.

 

Shouldn't Compatibility be established at the Plugin Installation Stage. Not some time down the line...

 

I've never seen such an alert, besides the plugin is compatible with all UNRAID versions 6.1+. Are you sure you are using either SimonF's NUT plugin or mine (Rysz/desertwitch)? What UNRAID version are you on and where did you see this alert?

 

Edited by Rysz

1 hour ago, Alcapone001 said:

So Yesterday Power went off. On Switching back the Server, I got an alert that the plugin was removed because it was not compatible with my OS. Note that the Plugin has been in use for a month just fine.

 

Shouldn't Compatibility be established at the Plugin Installation Stage. Not some time down the line...

Plugins are installed at boot. Have you upgraded to 6.12.x recently? as the version before mine was not compatible with 6.12

2 hours ago, Rysz said:

Are you sure you are using either SimonF's NUT plugin or mine (Rysz/desertwitch)?

 

I think Simon's. Simply picked the Url posted initially here.. 

 

Will check further details once I get back home, in a few hours. 

 

2 hours ago, SimonF said:

Have you upgraded to 6.12.x recently?

 

Well, haven't upgraded or restarted the server since I installed the Plugin.. Hence my surprise seeing the alert. 

 

I think am on 6.12.3 but will check once I get home 

Edited by Alcapone001

I just ran the fix commons problems plugin and the Rysz desertswitch nut plugin came up as unknown and I was recommended to uninstall it since it may be incompatible with the server. Is this a mistake?

 

2 hours ago, rama3124 said:

I just ran the fix commons problems plugin and the Rysz desertswitch nut plugin came up as unknown and I was recommended to uninstall it since it may be incompatible with the server. Is this a mistake?

 

 

I think this is a mistake, if you uninstall it and reinstall it from Community Applications it shouldn't throw that alert anymore - in any case, you don't need to uninstall the plugin unless you're actually having problems on your server that you can't backtrace to anything else.

 

Edited by Rysz

Doesn't do it on my system....

 

But, while I'm looking at it you've got a whack of PHP 8 warnings.   My audits of plugins do not include PHP issues (and someone else around here is the PHP cop -> who hasn't noticed yet), so before spankings begin:

text  error  warn  system  array  login  

[09-Sep-2023 20:08:44 America/New_York] PHP Warning:  Undefined array key "FOOTER_STYLE" in /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(651) : eval()'d code on line 137
[09-Sep-2023 20:08:44 America/New_York] PHP Warning:  Undefined array key "diagsave" in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 27
[09-Sep-2023 20:08:44 America/New_York] PHP Warning:  Undefined variable $apparentPower in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 103
[09-Sep-2023 20:08:44 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 106
[09-Sep-2023 20:08:44 America/New_York] PHP Warning:  Undefined variable $realPower in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 109
[09-Sep-2023 20:08:44 America/New_York] PHP Warning:  Undefined array key "FOOTER_STYLE" in /usr/local/emhttp/plugins/nut/include/nut_footer.php on line 86
[09-Sep-2023 20:08:44 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 114
[09-Sep-2023 20:08:44 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 116
[09-Sep-2023 20:08:44 America/New_York] PHP Warning:  Undefined array key "FOOTER_STYLE" in /usr/local/emhttp/plugins/nut/include/nut_footer.php on line 115
[09-Sep-2023 20:08:44 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 130
[09-Sep-2023 20:08:44 America/New_York] PHP Warning:  Undefined array key "FOOTER_STYLE" in /usr/local/emhttp/plugins/nut/include/nut_footer.php on line 118
[09-Sep-2023 20:08:44 America/New_York] PHP Warning:  Undefined array key "FOOTER_STYLE" in /usr/local/emhttp/plugins/nut/include/nut_footer.php on line 149
[09-Sep-2023 20:08:44 America/New_York] PHP Warning:  Undefined array key "FOOTER_STYLE" in /usr/local/emhttp/plugins/nut/include/nut_footer.php on line 152
[09-Sep-2023 20:08:44 America/New_York] PHP Warning:  Undefined array key "FOOTER_STYLE" in /usr/local/emhttp/plugins/nut/include/nut_footer.php on line 152
[09-Sep-2023 20:09:00 America/New_York] PHP Warning:  Undefined array key "diagsave" in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 27
[09-Sep-2023 20:09:00 America/New_York] PHP Warning:  Undefined variable $apparentPower in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 103
[09-Sep-2023 20:09:00 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 106
[09-Sep-2023 20:09:00 America/New_York] PHP Warning:  Undefined variable $realPower in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 109
[09-Sep-2023 20:09:00 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 114
[09-Sep-2023 20:09:00 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 116
[09-Sep-2023 20:09:00 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 130
[09-Sep-2023 20:09:01 America/New_York] PHP Warning:  Undefined array key "FOOTER_STYLE" in /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(651) : eval()'d code on line 137
[09-Sep-2023 20:09:01 America/New_York] PHP Warning:  Undefined array key "diagsave" in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 27
[09-Sep-2023 20:09:01 America/New_York] PHP Warning:  Undefined variable $apparentPower in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 103
[09-Sep-2023 20:09:01 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 106
[09-Sep-2023 20:09:01 America/New_York] PHP Warning:  Undefined variable $realPower in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 109
[09-Sep-2023 20:09:01 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 114
[09-Sep-2023 20:09:01 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 116
[09-Sep-2023 20:09:01 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 130
[09-Sep-2023 20:09:01 America/New_York] PHP Deprecated:  Implicit conversion from float 24.5 to int loses precision in /usr/local/emhttp/plugins/nut/include/nut_footer.php on line 51
[09-Sep-2023 20:09:01 America/New_York] PHP Warning:  Undefined array key "FOOTER_STYLE" in /usr/local/emhttp/plugins/nut/include/nut_footer.php on line 86
[09-Sep-2023 20:09:01 America/New_York] PHP Warning:  Undefined array key "FOOTER_STYLE" in /usr/local/emhttp/plugins/nut/include/nut_footer.php on line 115
[09-Sep-2023 20:09:01 America/New_York] PHP Warning:  Undefined array key "FOOTER_STYLE" in /usr/local/emhttp/plugins/nut/include/nut_footer.php on line 118
[09-Sep-2023 20:09:01 America/New_York] PHP Warning:  Undefined array key "FOOTER_STYLE" in /usr/local/emhttp/plugins/nut/include/nut_footer.php on line 149
[09-Sep-2023 20:09:01 America/New_York] PHP Warning:  Undefined array key "FOOTER_STYLE" in /usr/local/emhttp/plugins/nut/include/nut_footer.php on line 152
[09-Sep-2023 20:09:01 America/New_York] PHP Warning:  Undefined array key "FOOTER_STYLE" in /usr/local/emhttp/plugins/nut/include/nut_footer.php on line 152
[09-Sep-2023 20:09:16 America/New_York] PHP Warning:  Undefined array key "diagsave" in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 27
[09-Sep-2023 20:09:16 America/New_York] PHP Warning:  Undefined variable $apparentPower in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 103
[09-Sep-2023 20:09:16 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 106
[09-Sep-2023 20:09:16 America/New_York] PHP Warning:  Undefined variable $realPower in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 109
[09-Sep-2023 20:09:16 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 114
[09-Sep-2023 20:09:16 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 116
[09-Sep-2023 20:09:16 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 130
[09-Sep-2023 20:09:31 America/New_York] PHP Warning:  Undefined array key "diagsave" in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 27
[09-Sep-2023 20:09:31 America/New_York] PHP Warning:  Undefined variable $apparentPower in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 103
[09-Sep-2023 20:09:31 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 106
[09-Sep-2023 20:09:31 America/New_York] PHP Warning:  Undefined variable $realPower in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 109
[09-Sep-2023 20:09:31 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 114
[09-Sep-2023 20:09:31 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 116
[09-Sep-2023 20:09:31 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 130
[09-Sep-2023 20:09:47 America/New_York] PHP Warning:  Undefined array key "diagsave" in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 27
[09-Sep-2023 20:09:47 America/New_York] PHP Warning:  Undefined variable $apparentPower in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 103
[09-Sep-2023 20:09:47 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 106
[09-Sep-2023 20:09:47 America/New_York] PHP Warning:  Undefined variable $realPower in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 109
[09-Sep-2023 20:09:47 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 114
[09-Sep-2023 20:09:47 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 116
[09-Sep-2023 20:09:47 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 130
[09-Sep-2023 20:10:03 America/New_York] PHP Warning:  Undefined array key "diagsave" in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 27
[09-Sep-2023 20:10:03 America/New_York] PHP Warning:  Undefined variable $apparentPower in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 103
[09-Sep-2023 20:10:03 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 106
[09-Sep-2023 20:10:03 America/New_York] PHP Warning:  Undefined variable $realPower in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 109
[09-Sep-2023 20:10:03 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 114
[09-Sep-2023 20:10:03 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 116
[09-Sep-2023 20:10:03 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 130
[09-Sep-2023 20:10:19 America/New_York] PHP Warning:  Undefined array key "diagsave" in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 27
[09-Sep-2023 20:10:19 America/New_York] PHP Warning:  Undefined variable $apparentPower in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 103
[09-Sep-2023 20:10:19 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 106
[09-Sep-2023 20:10:19 America/New_York] PHP Warning:  Undefined variable $realPower in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 109
[09-Sep-2023 20:10:19 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 114
[09-Sep-2023 20:10:19 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 116
[09-Sep-2023 20:10:19 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 130
[09-Sep-2023 20:10:35 America/New_York] PHP Warning:  Undefined array key "diagsave" in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 27
[09-Sep-2023 20:10:35 America/New_York] PHP Warning:  Undefined variable $apparentPower in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 103
[09-Sep-2023 20:10:35 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 106
[09-Sep-2023 20:10:35 America/New_York] PHP Warning:  Undefined variable $realPower in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 109
[09-Sep-2023 20:10:35 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 114
[09-Sep-2023 20:10:35 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 116
[09-Sep-2023 20:10:35 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 130
[09-Sep-2023 20:10:48 America/New_York] PHP Deprecated:  html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in /mnt/cache/GitHub/SourceCode/AppFeed/Helpers.php on line 20
[09-Sep-2023 20:10:48 America/New_York] PHP Warning:  Undefined array key "Default" in /mnt/cache/GitHub/SourceCode/AppFeed/Helpers.php on line 281
[09-Sep-2023 20:10:48 America/New_York] PHP Deprecated:  escapeshellarg(): Passing null to parameter #1 ($arg) of type string is deprecated in /mnt/cache/GitHub/SourceCode/AppFeed/Helpers.php on line 286
[09-Sep-2023 20:10:48 America/New_York] PHP Deprecated:  file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated in /mnt/cache/GitHub/SourceCode/AppFeed/Helpers.php on line 287
[09-Sep-2023 20:10:48 America/New_York] PHP Deprecated:  html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in /mnt/cache/GitHub/SourceCode/AppFeed/Helpers.php on line 20
[09-Sep-2023 20:10:48 America/New_York] PHP Warning:  Undefined array key "Default" in /mnt/cache/GitHub/SourceCode/AppFeed/Helpers.php on line 281
[09-Sep-2023 20:10:48 America/New_York] PHP Deprecated:  escapeshellarg(): Passing null to parameter #1 ($arg) of type string is deprecated in /mnt/cache/GitHub/SourceCode/AppFeed/Helpers.php on line 286
[09-Sep-2023 20:10:48 America/New_York] PHP Deprecated:  file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated in /mnt/cache/GitHub/SourceCode/AppFeed/Helpers.php on line 287
[09-Sep-2023 20:10:51 America/New_York] PHP Warning:  Undefined array key "diagsave" in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 27
[09-Sep-2023 20:10:51 America/New_York] PHP Warning:  Undefined variable $apparentPower in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 103
[09-Sep-2023 20:10:51 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 106
[09-Sep-2023 20:10:51 America/New_York] PHP Warning:  Undefined variable $realPower in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 109
[09-Sep-2023 20:10:51 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 114
[09-Sep-2023 20:10:51 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 116
[09-Sep-2023 20:10:51 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 130
[09-Sep-2023 20:11:07 America/New_York] PHP Warning:  Undefined array key "diagsave" in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 27
[09-Sep-2023 20:11:07 America/New_York] PHP Warning:  Undefined variable $apparentPower in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 103
[09-Sep-2023 20:11:07 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 106
[09-Sep-2023 20:11:07 America/New_York] PHP Warning:  Undefined variable $realPower in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 109
[09-Sep-2023 20:11:07 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 114
[09-Sep-2023 20:11:07 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 116
[09-Sep-2023 20:11:07 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 130
[09-Sep-2023 20:11:23 America/New_York] PHP Warning:  Undefined array key "diagsave" in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 27
[09-Sep-2023 20:11:23 America/New_York] PHP Warning:  Undefined variable $apparentPower in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 103
[09-Sep-2023 20:11:23 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 106
[09-Sep-2023 20:11:23 America/New_York] PHP Warning:  Undefined variable $realPower in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 109
[09-Sep-2023 20:11:23 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 114
[09-Sep-2023 20:11:23 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 116
[09-Sep-2023 20:11:23 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 130
[09-Sep-2023 20:11:39 America/New_York] PHP Warning:  Undefined array key "diagsave" in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 27
[09-Sep-2023 20:11:39 America/New_York] PHP Warning:  Undefined variable $apparentPower in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 103
[09-Sep-2023 20:11:39 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 106
[09-Sep-2023 20:11:39 America/New_York] PHP Warning:  Undefined variable $realPower in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 109
[09-Sep-2023 20:11:39 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 114
[09-Sep-2023 20:11:39 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 116
[09-Sep-2023 20:11:39 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 130
[09-Sep-2023 20:11:55 America/New_York] PHP Warning:  Undefined array key "diagsave" in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 27
[09-Sep-2023 20:11:55 America/New_York] PHP Warning:  Undefined variable $apparentPower in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 103
[09-Sep-2023 20:11:55 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 106
[09-Sep-2023 20:11:55 America/New_York] PHP Warning:  Undefined variable $realPower in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 109
[09-Sep-2023 20:11:55 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 114
[09-Sep-2023 20:11:55 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 116
[09-Sep-2023 20:11:55 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 130
^Ac[09-Sep-2023 20:12:11 America/New_York] PHP Warning:  Undefined array key "diagsave" in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 27
[09-Sep-2023 20:12:11 America/New_York] PHP Warning:  Undefined variable $apparentPower in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 103
[09-Sep-2023 20:12:11 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 106
[09-Sep-2023 20:12:11 America/New_York] PHP Warning:  Undefined variable $realPower in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 109
[09-Sep-2023 20:12:11 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 114
[09-Sep-2023 20:12:11 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 116
[09-Sep-2023 20:12:11 America/New_York] PHP Warning:  Undefined variable $powerNominal in /usr/local/emhttp/plugins/nut/include/nut_status.php on line 130

 

@Squid That's interesting, thanks, will have to be the same on @SimonF's fork because those files are 99% unchanged from his version. I'll get to fixing those PHP8 warnings right away - cheers.

 

Edited by Rysz

You were correct, reinstalling the plugin removed the error. Thanks :)

 

6 hours ago, Rysz said:

@Squid That's interesting, thanks, will have to be the same on @SimonF's fork because those files are 99% unchanged from his version. I'll get to fixing those PHP8 warnings right away - cheers.

 

Already start looking at mine. Most of the logs I was seeing was from this function in nut_footer.php but will work on others.

 

function format_time($seconds) {
  $t = round($seconds);
#  return sprintf('%02d:%02d:%02d', $t/3600,$t/60, $t%60);
return gmdate("H:i:d" ,$t ) ;
}

 

Updated line 27 in nut_status.php to be

 

 if (isset($_GET['diagsave']) && $_GET['diagsave'] == "true") {

Also looking to change user and group from 218 to 2218 to fix this error message but not sure on implications as yet.

 

useradd warning: nut's uid 218 outside of the UID_MIN 1000 and UID_MAX 60000 range

On 9/5/2023 at 10:10 AM, ich777 said:

Thanks.

 

@Rysz will you take over the NUT plugin entirely?

If yes, can you create a option so that users can choose if they want to stick with stable or a build from the latest master branch?

 

To follow up on the second question, my latest version offers three branches to choose from (on 6.10+):

  • default (recent master)
  • release (2.8.0 stable)
  • legacy (2.7.4. stable)

So @ich777 choosing the "release" branch you could now theoretically stay on the year-old stable release 2.8.0 until the next stable release 2.8.1 is integrated into the "release" branch (when it becomes available).

 

But I strongly recommend everyone else without UPS problems to stay on default (recent master) for the latest NUT bugfixes and UPS compatibility features unless you know what you are doing, what to expect from the switch and/or are desperate to get your non-functional UPS working by attempting an older version of NUT.

 

PHP8 warnings have since also been fixed, thanks to @Squid and @SimonF.

 

Edited by Rysz

On 9/10/2023 at 8:53 AM, SimonF said:

Already start looking at mine. Most of the logs I was seeing was from this function in nut_footer.php but will work on others.

 

function format_time($seconds) {
  $t = round($seconds);
#  return sprintf('%02d:%02d:%02d', $t/3600,$t/60, $t%60);
return gmdate("H:i:d" ,$t ) ;
}

 

Updated line 27 in nut_status.php to be

 

 if (isset($_GET['diagsave']) && $_GET['diagsave'] == "true") {

 

Good idea - BUT beware the typo 🙂:

return gmdate("H:i:s" ,$t ) ;

 

 

I am stopping updates for my version of the plugin. Update to the latest version 2023.09.17 and then you can remove my version and install Rysz's from CA and it will retain your configs.

 

There are some nice changes that have been added to the new version.

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.