Skip to content

Detects when CPU/GPU is idle and sends a notification to phone

License

Notifications You must be signed in to change notification settings

lidonghui-ai/idle_notifier

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Idle Notifier

This script notifies the user using SimplePush when the computer is idle.

Note: This repo is for internal use only. No support will be provided, use at your own risk!!. Also, this script only works on Linux systems with Nvidia GPU.

Pre-requisites

Install SimplePush on your phone. [Android] [iOS]

Take note of your API key.

Installation

  1. First install the python package. Either

    • Clone and install in develop mode

      git clone https://github.com/yewzijian/idle_notifier.git
      pip install --upgrade -e ./idle_notifier
    • or directly install from this git repository

      pip install --upgrade git+https://github.com/yewzijian/idle_notifier.git

Then run the setup tool:

idle_notifier_setup

Follow the instructions and enter the machine name and api key when prompted. Once installed, you should receive a notification on your phone.

Uninstall

  1. Run the uninstall tool:

    idle_notifier_remove
  2. Then optionally remove the python package

    pip uninstall idle_notifier

Additional notes

  • By default, the script checks CPU/GPU usage every minute. If it falls below both thresholds of 10% CPU and GPU usage for over 30min, a notification will be sent. Currently there is no functionality to easily configure these parameters, but they can be edited manually in config.json.

  • You may check the status of the idle_notifier with the following command:

    systemctl status idle_notifier

About

Detects when CPU/GPU is idle and sends a notification to phone

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%