--cpu-temp-disabled flag

This commit is contained in:
2025-06-06 15:32:04 -04:00
parent 29825d6b3c
commit e2dcd795ab
2 changed files with 12 additions and 6 deletions

View File

@ -6,14 +6,17 @@ from typing import Optional
_ntfy_configure_prompt = """\033[4mPlease configure an ntfy url before starting.\033[0m
Examples:
\033[32mpython3 main.py 10.0.13.37:42069
python3 main.py ntfy.domain.com\033[0m"""
python3 main.py ntfy.domain.com\033[0m
Use \033[32m-h\033[0m or \033[32m--help\033[0m for a full list of options."""
class Interface:
def __init__(self):
self.parser = argparse.ArgumentParser()
self.parser.add_argument("--cpu-temp-critical", type=int, default=80, help="cpu tempature crtitical. default = 80")
self.parser.add_argument("--cpu-temp-warning", type=int, default=70, help="cpu tempature warning. default = 70")
self.parser.add_argument("--update-rate", type=int, default=1, help="how often updates happen in seconds. default = 1")
self.parser.add_argument("--cpu-temp-disabled", action="store_true", help="Disable notifications for CPU tempature.")
self.parser.add_argument("--cpu-temp-critical", type=int, default=80, help="CPU tempature for the crtitical alert. default = 80")
self.parser.add_argument("--cpu-temp-warning", type=int, default=70, help="CPU tempature for the warning alert. default = 70")
self.parser.add_argument("--update-rate", type=int, default=1, help="How often updates happen in seconds. default = 1")
def parsed_args(self):
return self.parser.parse_args()