Use requests module instead of curl and use python3 main.py server.com instead of --server=server.com

This commit is contained in:
2025-06-06 14:20:23 -04:00
parent 32f60194d0
commit cacc1b827f
4 changed files with 20 additions and 18 deletions

View File

@ -2,7 +2,6 @@ import argparse
def interface():
parser = argparse.ArgumentParser()
parser.add_argument("--server", required=True, help="")
parser.add_argument("--cpu-temp-critical", type=int, default=80, help="cpu tempature crtitical. default = 80")
parser.add_argument("--cpu-temp-warning", type=int, default=70, help="cpu tempature warning. default = 70")
parser.add_argument("--update-rate", type=int, default=1, help="how often updates happen in seconds. default = 1")