You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 4, 2025. It is now read-only.
It should be a good idea, on a future release, to add the ability to run scripts when the UPS state is changing.
On battery = Script1.script
Back Online = Script2.script
With this we would be able to stop power hungry processes to save the batteries and resume them when the utility power returns. This is possible on Linux and it's part of the NUT package.
This can be added from inside WinNUT-Client application or triggered from a system event with the Task Scheduler ( this approach is more easier to integrate at first). Actually WinNUT-client is not registering any system events when the UPS state is changing so it's not possible for now.
Thanks.
The text was updated successfully, but these errors were encountered:
it was already planned in one side of my head, but I think it won't be for now.
I consider it a comfort (at least for now) and other modification seems more urgent to me.
In addition, adding this feature would not necessarily be in line with the changes that await me and could complicate my task.
@gawindx, no problem. It can be a nice feature to stop some services, like GPU computations, while on battery.
I fully understand your point and it's always better to add and debug features incrementally than all at once...
I am running the NUT Server on a Synology NAS so I don't have any options to run processes from the server. I have a set of PowerShell scripts (which I will be happy to contribute) that I would like to run at various points while the UPS is on battery so I am looking forward to seeing this! THANK YOU for your efforts on this!
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.
It should be a good idea, on a future release, to add the ability to run scripts when the UPS state is changing.
On battery = Script1.script
Back Online = Script2.script
With this we would be able to stop power hungry processes to save the batteries and resume them when the utility power returns. This is possible on Linux and it's part of the NUT package.
This can be added from inside WinNUT-Client application or triggered from a system event with the Task Scheduler ( this approach is more easier to integrate at first). Actually WinNUT-client is not registering any system events when the UPS state is changing so it's not possible for now.
Thanks.
The text was updated successfully, but these errors were encountered: