mirror of
https://github.com/unixtensor/proxmox-ntfy.git
synced 2025-06-28 03:28:05 +00:00
__name__ == "__main__"
This commit is contained in:
11
src/main.py
11
src/main.py
@ -52,8 +52,9 @@ def clock_check_cpu():
|
|||||||
elif cpu_temp >= cpu_warning_temp:
|
elif cpu_temp >= cpu_warning_temp:
|
||||||
ntfy_send(f"🌡️ CPU tempature is at a high tempature. {cpu_temp}")
|
ntfy_send(f"🌡️ CPU tempature is at a high tempature. {cpu_temp}")
|
||||||
|
|
||||||
if packages_installed(["lm-sensors", "ntfy", "curl"]):
|
if __name__ == "__main__":
|
||||||
print(f"Working! {time.time()}")
|
if packages_installed(["lm-sensors", "ntfy", "curl"]):
|
||||||
while True:
|
print(f"Working! {time.time()}")
|
||||||
clock_check_cpu()
|
while True:
|
||||||
time.sleep(clock_interval_secs)
|
clock_check_cpu()
|
||||||
|
time.sleep(clock_interval_secs)
|
Reference in New Issue
Block a user