Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cyd3r/notify-free-gpu
A telegram bot that sends you a message when the GPU is in use
https://github.com/cyd3r/notify-free-gpu
gpu notification nvidia-gpu telegram telegram-bot
Last synced: 3 months ago
JSON representation
A telegram bot that sends you a message when the GPU is in use
- Host: GitHub
- URL: https://github.com/cyd3r/notify-free-gpu
- Owner: cyd3r
- Created: 2019-12-07T18:38:49.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-27T19:09:56.000Z (9 months ago)
- Last Synced: 2024-05-28T04:44:56.564Z (9 months ago)
- Topics: gpu, notification, nvidia-gpu, telegram, telegram-bot
- Language: Python
- Size: 19.5 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Get notifications via Telegram when your nvidia GPU is available again.
## How it works
+ If memory usage of the GPU drops below 200MB, you will get a message "The GPU is available"
+ If memory usage of the GPU goes above 500MB, you will get a message "The GPU is in use"If you want to know the current memory usage of the GPU, send `/gpu` to the bot and it will respond you with a message like "9376MB is in use"
## Setup
Run
pipenv install
to install the required packages. Alternatively you can manually install the packages from the `[packages]` section in the Pipfile using pip.
Next, you have to create a `config.json` file in this directory containing the bot token and a list of user ids that the bot should send messages to:
```json
{
"token": "1008150085:AAHea1JBSof0yEVRrHfkbL2W_fDg9xEs-bE",
"whitelist": [
123456789,
987654321
]
}
```If you don't know how to set up a bot or get the bot token, take a look at https://core.telegram.org/bots
If you start a chat with the bot and your user id is not listed in the whitelist, the bot will tell you:
> You are not yet on the whitelist. Add 987654321 to your config to receive notifications from me