gawindx / WinNUT-Client

This is a NUT windows client for monitoring your ups hooked up to your favorite linux server.
GNU General Public License v3.0
386 stars 70 forks source link

External program start or BAT file. #104

Open sRspectrect68 opened 2 years ago

sRspectrect68 commented 2 years ago

It would be possible to add in the functionalities the possibility to start an external program or launch a BAT file, xxx seconds before the shutdown tanks, Spectre

gbakeman commented 2 years ago

This sounds like a great idea, thanks! I think we could have a feature where the user can specify actions that happen when certain events occur.

FileCity commented 2 years ago

Something very similar has been asked already. https://github.com/gawindx/WinNUT-Client/issues/39

sRspectrect68 commented 2 years ago

Great... Can I ask what language WinNut was written in?

gbakeman commented 2 years ago

If I recall correctly, WinNUT was originally written in AutoIT (or another scripting language), then ported to its current language of Visual Basic .Net.

sRspectrect68 commented 2 years ago

Visual Studio ?

gbakeman commented 2 years ago

I personally use it, I don't know about @gawindx or anyone else.

ArcticZero commented 2 years ago

I needed this as well. As a workaround, I set up SSH on my Windows machine, and set my NUT server's upssched script to SSH into Windows and run a batch file and turn off power-intensive processes and set MSI Afterburner to use a low power profile. It's a bit hacky, but hey, it works for now.

gbakeman commented 1 year ago

Everyone,

This repository is abandoned and no longer developed. I've reopened this issue at the current repository, here . Please close this current issue if possible and subscribe/participate in the one I linked.