{"id":37117166,"url":"https://github.com/clamy54/nutw","last_synced_at":"2026-01-14T13:43:02.817Z","repository":{"id":64841757,"uuid":"576311514","full_name":"clamy54/nutw","owner":"clamy54","description":"Nutw is a NUT client for Windows.","archived":false,"fork":false,"pushed_at":"2023-11-16T10:55:06.000Z","size":16459,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-09-12T15:28:00.164Z","etag":null,"topics":["nut","ups","windows"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clamy54.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-12-09T14:24:38.000Z","updated_at":"2025-07-27T15:05:18.000Z","dependencies_parsed_at":"2023-11-16T11:39:06.051Z","dependency_job_id":"86ae4f64-e205-4f31-b7c9-af9589c8e411","html_url":"https://github.com/clamy54/nutw","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/clamy54/nutw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clamy54%2Fnutw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clamy54%2Fnutw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clamy54%2Fnutw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clamy54%2Fnutw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clamy54","download_url":"https://codeload.github.com/clamy54/nutw/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clamy54%2Fnutw/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28421796,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T13:30:50.153Z","status":"ssl_error","status_checked_at":"2026-01-14T13:29:08.907Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nut","ups","windows"],"created_at":"2026-01-14T13:43:02.210Z","updated_at":"2026-01-14T13:43:02.810Z","avatar_url":"https://github.com/clamy54.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Nutw\r\n====\r\n\r\n## About\r\n\r\nNutw is a NUT client for Windows.\r\nNutw is running as a service and probes a NUT server at regular intervals.\r\n\r\nIf ups supports battery levels probes, then Nutw shutdown the local OS if\r\ncurrent battery level is below low-battery level.\r\n\r\nIf ups doesn't battery levels probes, then Nutw shutdown the local OS if\r\nups is going on battery.\r\n\r\n## Installation\r\n\r\nJust run nutw-install.exe with administrator privileges and configure installation folder.\r\n\r\n## Configuration\r\n\r\nOpen nutw.ini (installed in the same directory as nutw.exe during installation) and configure the\r\nnutd section.\r\n\r\n| Keyword:               | Description:                                               | \r\n| ---------------------- | -----------------------------------------------------------|\r\n| `server`               | `hostname or ip adress of the upsd daemon server`          |\r\n| `port`                 | `tcp port used by the remote upsd daemon`                  |\r\n| `usetls`               | `if set to 1 then initiate tls session`                    |\r\n| `login`                | `login to use for authenticating against upsd daemon`      |\r\n| `password`             | `password to use for authenticating against upsd daemon`   |\r\n| `upsname`              | `ups device name served by upsd daemon`                    |\r\n| `interval`             | `amount of time (in seconds) between two probes`           |\r\n\r\n\r\n## Testing the configuration\r\n\r\nOpen a terminal, change directory to Nutw installation directory and run :\r\n\r\n```\r\nnutw --mode=debug\r\n```\r\n\r\nNutw logs can be checked with the help of 'Windows Event Viewer'. Just expand Applications logs and filter by ID 177.\r\n\r\n## Setting up the service\r\n\r\nNutw is running as a windows service. After configuration and testings are done, you can setup the service by opening a terminal in Administrator mode,\r\nchanging current directory to Nutw installation directory and run :\r\n\r\n```\r\nnutw --mode=install\r\n```\r\n\r\nNutw logs can be checked with the help of 'Windows Event Viewer' (see Testing section).\r\n\r\n## Nutw parameters\r\n\r\nNutw support the following mode  :\r\n\r\n| Keyword:               | Description:                                               | \r\n| ---------------------- | -----------------------------------------------------------|\r\n| `install`              | `install and run the service`                              |\r\n| `uninstall`            | `stop and uninstall the service`                           |\r\n| `start `               | `start the service (must be installed before)`             |\r\n| `stop`                 | `stop the service`                                         |\r\n| `restart`              | `restart the service (must be running)`                    |\r\n| `debug`                | `test Nutw configuration ( No OS shutdown in this mode )`  |\r\n\r\n\r\nUsage :\r\n```\r\nnutw --mode=\u003cKeyword\u003e\r\n```\r\n\r\nSome modes requires Administrator privileges.\r\n\r\n## Credits\r\n\r\nChangelog :\r\n\r\nv1.1 - Debug mode is now more verbose on default console\r\nv1.0 - Initial release\r\n\r\n## Credits\r\n\r\nNutw use [Kardianos Service module](https://github.com/kardianos/service).\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclamy54%2Fnutw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclamy54%2Fnutw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclamy54%2Fnutw/lists"}