mirror of
https://github.com/unixtensor/proxmox-ntfy.git
synced 2025-06-28 13:28:05 +00:00
Redisgned the way CPU tempature is detected and the start up notification
This commit is contained in:
@ -28,7 +28,7 @@ class Ntfy:
|
||||
if extra_headers:
|
||||
headers.update(extra_headers)
|
||||
if not self.logging_disabled:
|
||||
print_t("Ntfy OUT: " + message)
|
||||
print_t(f"Ntfy OUT: \033[0;35mtitle\033[0m={title} \033[0;35mmessage\033[0m={message} \033[0;35mheaders\033[0m={headers}")
|
||||
try:
|
||||
requests.post(self.server, data=message.encode(encoding="utf-8"), headers=headers)
|
||||
except Exception as err:
|
||||
|
Reference in New Issue
Block a user