{"id":26269665,"url":"https://github.com/raghur/powertool","last_synced_at":"2025-04-30T22:00:24.939Z","repository":{"id":21704674,"uuid":"93623844","full_name":"raghur/powertool","owner":"raghur","description":"Tool to wake up or suspend machines remotely by name","archived":false,"fork":false,"pushed_at":"2024-12-07T06:50:27.000Z","size":110,"stargazers_count":4,"open_issues_count":7,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-16T14:40:45.929Z","etag":null,"topics":["remote","suspend","tools","utility","wake-on-lan","wakeonlan"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raghur.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.rst","dei":null}},"created_at":"2017-06-07T10:38:38.000Z","updated_at":"2024-10-15T06:18:05.000Z","dependencies_parsed_at":"2023-02-14T15:31:36.147Z","dependency_job_id":"cc4478fd-99ad-427f-8482-d63f7dc0e571","html_url":"https://github.com/raghur/powertool","commit_stats":{"total_commits":158,"total_committers":2,"mean_commits":79.0,"dds":"0.24683544303797467","last_synced_commit":"94d75375f542bca86627d011913c255110c39e1e"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raghur%2Fpowertool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raghur%2Fpowertool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raghur%2Fpowertool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raghur%2Fpowertool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raghur","download_url":"https://codeload.github.com/raghur/powertool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251789604,"owners_count":21644084,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["remote","suspend","tools","utility","wake-on-lan","wakeonlan"],"created_at":"2025-03-14T05:15:42.982Z","updated_at":"2025-04-30T22:00:24.916Z","avatar_url":"https://github.com/raghur.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=========\npowertool\n=========\n\n\n.. image:: https://coveralls.io/repos/github/raghur/powertool/badge.svg?branch=master\n    :target: https://coveralls.io/github/raghur/powertool?branch=master\n\n.. image:: https://img.shields.io/pypi/v/powertool.svg\n   :target: https://pypi.python.org/pypi/powertool\n\n.. image:: https://travis-ci.org/raghur/powertool.svg?branch=master\n    :target: https://travis-ci.org/raghur/powertool\n\n.. image:: https://readthedocs.org/projects/powertool/badge/?version=latest\n        :target: https://powertool.readthedocs.io/en/latest/?badge=latest\n        :alt: Documentation Status\n\n.. image:: https://pyup.io/repos/github/raghur/powertool/shield.svg\n     :target: https://pyup.io/repos/github/raghur/powertool/\n     :alt: Updates\n\n.. image:: https://img.shields.io/pypi/pyversions/powertool.svg\n    :target: https://pypi.python.org/pypi/powertool\n\nPython utility to wake up(wol) and suspend Linux machines remotely\n\n\n* Free software: MIT license\n\n\nFeatures\n--------\n\n* Wake up remote machines using hostname/ip.\n* Suspend remote machines using hostname\n\nWake on lan (WOL) \n-----------------\n\nWake up feature uses WOL magic packet. Since mac addresses are hard to remember/use, this tool lets you wake up or suspend machines\nby their name or IP.\n\n1. First register your machines ::\n\n        powertool register -b 192.168.1.255 aa:bb:cc:dd:ee:ff you@host\n   \n   - `-b Broadcast_IP` - this is the subnet on which your machine's ip is. If your machine's ip is 192.168.1.xxx, then this is 192.168.1.255(default)\n   - aa:bb:cc:dd:ee:ff - your machines' mac address. You can find this on your machine or on the router's device list.\n   - you\\@host - your username on the remote host - this is used by the sleep function to do a passwordless ssh and run pm-suspend.\n\n2. `register` saves machine details so that you can later do this::\n\n        powertool wol host\n        powertool sleep host\n3. `register` just saves machine details to a `~/.powertool` as a json file.\n\nSleep/suspend\n---------------\n\nSleep/suspend feature has quite a few dependencies\n\n- you should have password-less ssh to the remote host. There are a lot of\n  guides on the internet on how to set this up - like this one\n  http://www.linuxproblem.org/art_9.html. Verify that it works by running `ssh\n  user@host` - you should not be prompted for a password.\n- You should have `pm-utils` package on your remote machine\n  http://manpages.ubuntu.com/manpages/precise/man8/pm-action.8.html\n- Your user should be able to run `sudo pm-suspend` without being prompted for\n  password. To set this up, login to the remote machine and do the following::\n\n        sudo visudo\n        # add the following - where user is your username on the remote machine\n        user ALL=(ALL) NOPASSWD: /usr/sbin/pm-suspend\n\nCredits\n---------\n\nThis package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraghur%2Fpowertool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraghur%2Fpowertool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraghur%2Fpowertool/lists"}