kantlivelong / OctoPrint-UPS

Integrates a UPS monitored by NUT into OctoPrint
GNU Affero General Public License v3.0
17 stars 7 forks source link

[REQUEST] Add Basic Commands Buttons & Optional Add'l Info #6

Open InoSiX opened 2 years ago

InoSiX commented 2 years ago

Being new to NUT, I see there is a hole slew of commands available. I'm intrigued and want to investigate further. I would also love to be able to select from different parameters to add to the drop down.

Overall this is one of my new favorite plugins. Thanks for the contribution.

kantlivelong commented 2 years ago

What command buttons did you have in mind?

InoSiX commented 2 years ago

I am not sure if this is possible on your end, but I see the NUT command "upscmd -l nameOfUPS" lists out available commands. If the available commands listed in that could be automatically parsed and presented to the user from the config screen, that would probably save you the most effort. Not sure if that is possible, just a thought.

Otherwise commands like: beeper.disable / enable shutdown.return / stayoff / stop test.battery.start deep / quick test.battery.stop

These are the elements that show up for me when I use the upscmd -l. Obviously ymmv. If the -l command can be parsed, -l includes the variable name and a description, making the config screen a breeze. Simply allow the user to checkbox the commands they want and conform the UI accordingly.

As for additional items that can be added to the UI, things like DEVICE MODEL and SERIAL, VOLTAGES (IN/OUT), etc..

ekorolkov commented 2 years ago

Need to add the value of the ups.load parameter

kantlivelong commented 2 years ago

Need to add the value of the ups.load parameter

How is that related to this ticket?

ekorolkov commented 2 years ago

How is that related to this ticket?

That's about it

As for additional items that can be added to the UI, things like DEVICE MODEL and SERIAL, VOLTAGES (IN/OUT), etc..

kantlivelong commented 2 years ago

I see. 👍

ripcurl7777 commented 2 years ago

Maybe the Actual LOAD wold be also a good Information, i see there is the Runtime Info but also the actual LOAD would help to see how much Power the Printer is actually demanding.