Skip to content

Python script that will monitor a Plex server, and when it detects a new transcoding stream, it will pause the configured NiceHash GPU for a given time to let the transcoder start up more smoothly.

Notifications You must be signed in to change notification settings

cvandend/plexmon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plex / NiceHash Monitor

PlexMon is a Python script that will monitor a Plex server, and when it detects a new transcoding stream, it will pause the configured NiceHash GPU for a given time to let the transcoder start up more smoothly.

This script assumes that you are using the NiceHash QuickMiner on a Windows system.

Using a tweaked version of nicehash.py from:

https://github.com/nicehash/rest-clients-demo

Required Python Modules

Install running: pip install plexapi

Configuration

All the configuration items are stored in the config.json file.

Tweaking

You can tweak the following settings at the top of plexmon.py:

  • TIME_SLEEP : how often to check the Plex server for a new stream
  • TIME_RIGPAUSE : how long to pause the NiceHash rig
  • TIME_RIGCHECK : how often to check if NiceHash has crashed

About

Python script that will monitor a Plex server, and when it detects a new transcoding stream, it will pause the configured NiceHash GPU for a given time to let the transcoder start up more smoothly.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages