Power off Windows when Plex server is not streaming.
- GUI interface
- Notifications when the app is running
- Tray icon on close
- Configurable
- Plex media server 1.27 or greater
- Windows OS
- Python 3
- Download the latest release from here.
- Place
Plex.Auto.Shutdown.exe
somewhere in your computer. - Open
Plex.Auto.Shutdown.exe
and insert your Plex server url and token, How to find your token. - Change the other settings if you want.
- Click on
Apply Settings
. - Start the script by clicking on
Toggle Auto Shutdown
.
-
Install requirements
pip install -r requirements.txt
-
Run the script
python Plex.Auto.Shutdown.py
-
Insert your Plex server url and token, How to find your token.
-
Change the other settings if you want.
-
Click on
Apply Settings
. -
Start the script by clicking on
Toggle Auto Shutdown
.
- The script checks if the computer is in idle mode using
MaxIdle
from config. - Check if Plex transcoder is not running.
- Check if there aren't any active session on Plex.
If all of the above is true then the script sets a shutdown with a ShutdownDelay
delay, while waiting for the shutdown if the script detects any new session or computer idle status reset then it cancels the shutdown.
You can also change the following variables in the config.ini: MAX_IDLE_TIME
, INTERVAL_DELAY
, SHUTDOWN_DELAY
.