Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bkbilly/shutdown-rest
Shutdown PC using HTTP requests
https://github.com/bkbilly/shutdown-rest
automation remote-control shutdown
Last synced: 21 days ago
JSON representation
Shutdown PC using HTTP requests
- Host: GitHub
- URL: https://github.com/bkbilly/shutdown-rest
- Owner: bkbilly
- Created: 2020-09-08T05:47:11.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-08T22:21:11.000Z (over 4 years ago)
- Last Synced: 2024-10-25T10:03:33.092Z (2 months ago)
- Topics: automation, remote-control, shutdown
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# shutdown-rest
Remotely shutdown PC from Restful commands and runs on the system tray.## Features
- Uses system notifications for informing the user that the computer is scheduled for shutdown after 60 seconds.
- Gives the option of canceling the shutdown sequence with the system tray options.
- Has the option of custom icons by adding at the same directory an image with a name `shutdown.png`.
- Works both on Windows and Linux but some linux distributions might not show the systemtray.## Usage
Install requirements:
```bash
pip install -r requirements.txt
```
On Windows you can make it executable like so: `pyinstaller --onefile -w shutdown_rest.py`.
The exe output can be copied to the folder `C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp` in order to start on windows boots.## REST Commands
To call the service these services are exposed to the network:
- http://\:5000/shutdown
- http://\:5000/cancel_shutdown