https://github.com/nikolajlauridsen/simplesleeptimer
A simple python script and associated bat file which simplifies setting your windows computer to turn off after a given time.
https://github.com/nikolajlauridsen/simplesleeptimer
Last synced: 3 months ago
JSON representation
A simple python script and associated bat file which simplifies setting your windows computer to turn off after a given time.
- Host: GitHub
- URL: https://github.com/nikolajlauridsen/simplesleeptimer
- Owner: nikolajlauridsen
- Created: 2016-04-08T21:50:00.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-26T06:10:16.000Z (over 7 years ago)
- Last Synced: 2025-01-20T11:48:10.467Z (4 months ago)
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SimpleSleepTimer (SST)
A simple python script and associated bat file which simplifies setting your windows computer to turn off after a given time.
[](https://travis-ci.org/nikolajlauridsen/SimpleSleepTimer)The script is based upon the OS module and the windows CLI shutdown command. The first time the script is executed a .txt file will be created,
it will be used to store the shutdown time as a unix time stamp, this is used to calculate the remaining time till shutdown.
This means the script requires writes permissions.#### How to use:
Python 3 is required to run this script, download and install it from https://www.python.org/downloads/ if you haven't already.
Now simply execute the .bat file. If you wish to relocate this .bat file, you can right-click and create a shortcut, and then move that.Available commands will be displayed once you launch the script, but basic use of it is to write the desired time in hours:minutes and then hit enter.
I.E. If you want your computer to shut down after one hour and thirty minutes you'd write 1:30 and then hit enter.This script should work on any version of windows, it is however only tested on Win10.