remove notifypy. only show notifications via pystray

This commit is contained in:
Yeon Vinzenz Varapragasam 2023-03-20 18:45:00 +01:00
parent 22324f0511
commit 5b21d3af2e
3 changed files with 0 additions and 12 deletions

View File

@ -2,11 +2,9 @@ hiddenimports = [
"sacn", "sacn",
"aubio", "aubio",
"numpy", "numpy",
"notifypy",
"math", "math",
"voluptuous", "voluptuous",
"numpy", "numpy",
"notifypy",
"aiohttp", "aiohttp",
"mido", "mido",
"mido.frozen", "mido.frozen",

View File

@ -2,7 +2,6 @@ import logging
from json import JSONDecodeError from json import JSONDecodeError
from aiohttp import web from aiohttp import web
from notifypy import Notify
from ledfx.api import RestEndpoint from ledfx.api import RestEndpoint
from ledfx.utils import get_icon_path from ledfx.utils import get_icon_path
@ -48,14 +47,6 @@ class NotifyEndpoint(RestEndpoint):
if self.icon is not None: if self.icon is not None:
if self.icon.HAS_NOTIFICATION: if self.icon.HAS_NOTIFICATION:
self.icon.notify(f"{title}:\n{text}") self.icon.notify(f"{title}:\n{text}")
else:
icon_location = get_icon_path("tray.png")
notification = Notify()
notification.application_name = "LedFx"
notification.title = title
notification.message = text
notification.icon = icon_location
notification.send(block=False)
response = { response = {
"status": "success", "status": "success",

View File

@ -29,7 +29,6 @@ INSTALL_REQUIRES = [
"cython>=0.29.21", "cython>=0.29.21",
"certifi>=2020.12.5", "certifi>=2020.12.5",
"multidict~=5.0.0", "multidict~=5.0.0",
"notify-py>=0.3.42",
"openrgb-python~=0.2.10", "openrgb-python~=0.2.10",
"paho-mqtt>=1.5.1", "paho-mqtt>=1.5.1",
"psutil>=5.8.0", "psutil>=5.8.0",